Ensure the SSLsplit log directory exists (#18)

pull/22/head
trashbo4t 2018-03-14 16:13:01 -04:00 committed by Sebastian Kinne
parent 5d005e4ba2
commit 59e27d303e
3 changed files with 10 additions and 2 deletions

View File

@ -6,5 +6,5 @@
"tetra"
],
"title": "SSLsplit",
"version": "1.1"
}
"version": "1.2"
}

View File

@ -21,4 +21,8 @@ sh /pineapple/modules/SSLsplit/rules/iptables
iptables -t nat -A POSTROUTING -j MASQUERADE
if [ ! -d /pineapple/modules/SSLsplit/log ]; then
mkdir /pineapple/modules/SSLsplit/log
fi
sslsplit -D -l /pineapple/modules/SSLsplit/connections.log -L /pineapple/modules/SSLsplit/log/output_${MYTIME}.log -k /pineapple/modules/SSLsplit/cert/certificate.key -c /pineapple/modules/SSLsplit/cert/certificate.crt ssl 0.0.0.0 8443 tcp 0.0.0.0 8080

View File

@ -8,6 +8,10 @@ MYTIME=`date +%s`
killall sslsplit
if [ ! -d /pineapple/modules/SSLsplit/log ]; then
mkdir /pineapple/modules/SSLsplit/log
fi
if [ "$1" = "start" ]; then
echo '1' > /proc/sys/net/ipv4/ip_forward