update scripts

This commit is contained in:
2024-11-15 22:00:09 +01:00
parent eb97ca67da
commit 3e1acd6282
33 changed files with 768 additions and 19 deletions

12
Blatt02/scripts/209.py Normal file
View 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)