update scripts
This commit is contained in:
12
Blatt02/scripts/209.py
Normal file
12
Blatt02/scripts/209.py
Normal file
@@ -0,0 +1,12 @@
|
||||
from scapy.all import *
|
||||
|
||||
def display_arp(packet):
|
||||
if packet.haslayer(ICMPv6ND_NS):
|
||||
print("NS Packet:")
|
||||
print("Source MAC", packet[Ether].hwsrc)
|
||||
print("Source IP", packet[IPv6].psrc)
|
||||
print("Target IP", packet[ICMPv6ND_NS].tgt)
|
||||
print("="*30)
|
||||
|
||||
sniff(iface="eth1", prn=display_arp, store=0)
|
||||
|
Reference in New Issue
Block a user