init script
This commit is contained in:
parent
566df3c3f3
commit
1f8cba7da2
1 changed files with 19 additions and 0 deletions
19
script.py
Normal file
19
script.py
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
from time import sleep
|
||||||
|
|
||||||
|
from scapy.all import ICMP, IP, Dot1Q, Ether, sendp
|
||||||
|
from tqdm import tqdm
|
||||||
|
|
||||||
|
a = AsyncSniffer(iface="enp5s0d1", filter="icmp")
|
||||||
|
a.start()
|
||||||
|
for i in tqdm(range(1, 4095)):
|
||||||
|
sendp(
|
||||||
|
Ether(dst="00:02:c9:27:10:73", src="00:f0:cb:ef:e0:3b")
|
||||||
|
/ Dot1Q(vlan=i)
|
||||||
|
/ IP(dst="10.0.45.45", src="10.0.45.5")
|
||||||
|
/ ICMP(id=i),
|
||||||
|
iface="enp2s0",
|
||||||
|
verbose=False,
|
||||||
|
)
|
||||||
|
sleep(1)
|
||||||
|
plist = a.stop()
|
||||||
|
print(plist)
|
||||||
Loading…
Add table
Add a link
Reference in a new issue