Ensure the SSLsplit log directory exists (#18)
parent
5d005e4ba2
commit
59e27d303e
|
@ -6,5 +6,5 @@
|
||||||
"tetra"
|
"tetra"
|
||||||
],
|
],
|
||||||
"title": "SSLsplit",
|
"title": "SSLsplit",
|
||||||
"version": "1.1"
|
"version": "1.2"
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,4 +21,8 @@ sh /pineapple/modules/SSLsplit/rules/iptables
|
||||||
|
|
||||||
iptables -t nat -A POSTROUTING -j MASQUERADE
|
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
|
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
|
||||||
|
|
|
@ -8,6 +8,10 @@ MYTIME=`date +%s`
|
||||||
|
|
||||||
killall sslsplit
|
killall sslsplit
|
||||||
|
|
||||||
|
if [ ! -d /pineapple/modules/SSLsplit/log ]; then
|
||||||
|
mkdir /pineapple/modules/SSLsplit/log
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "$1" = "start" ]; then
|
if [ "$1" = "start" ]; then
|
||||||
|
|
||||||
echo '1' > /proc/sys/net/ipv4/ip_forward
|
echo '1' > /proc/sys/net/ipv4/ip_forward
|
||||||
|
|
Loading…
Reference in New Issue