cscg25 continues
This commit is contained in:
12
cscg25/forensics/intro2/extract_flag.py
Normal file
12
cscg25/forensics/intro2/extract_flag.py
Normal file
@@ -0,0 +1,12 @@
|
||||
from scapy.all import rdpcap
|
||||
|
||||
packets = rdpcap("./intro-forensics-2.pcapng")
|
||||
|
||||
filterd_packets = [packet for packet in packets if len(packet) == 87]
|
||||
|
||||
flag = b""
|
||||
|
||||
for packet in filterd_packets:
|
||||
flag += bytes.fromhex(hex(packet['TCP'].dport)[2:])
|
||||
|
||||
print(flag.decode())
|
||||
Reference in New Issue
Block a user