Skip to content

Commit bde2523

Browse files
authored
Update snfq.py
[+] HTTPS bypass added.
1 parent 624a9e7 commit bde2523

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

snfq.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ def __init__(self, process_packet_func, qnum=0, destination="forward", apache=Tr
1111
__class__.apache = apache
1212
if destination == "forward":
1313
subprocess.call("iptables -I FORWARD -j NFQUEUE --queue-num {}".format(self.qnum), shell=True)
14+
elif destination == "sslstrip":
15+
subprocess.call("iptables -I OUTPUT -j NFQUEUE --queue-num {}".format(self.qnum), shell=True)
16+
subprocess.call("iptables -I INPUT -j NFQUEUE --queue-num {}".format(self.qnum), shell=True)
17+
subprocess.call("sudo iptables -t nat -A PREROUTING -p tcp"
18+
" --destination-port 80 -j REDIRECT --to-port 10000", shell=True)
1419
elif destination == "local":
1520
subprocess.call("iptables -I OUTPUT -j NFQUEUE --queue-num {}".format(self.qnum), shell=True)
1621
subprocess.call("iptables -I INPUT -j NFQUEUE --queue-num {}".format(self.qnum), shell=True)

0 commit comments

Comments
 (0)