fork download
  1. from scapy.all import *
  2.  
  3. name = 'telnet.pcap'
  4. packet = rdpcap(name)
  5.  
  6. for i in packet:
  7. if b'flag%7B' in bytes(i.payload):
  8. print(bytes(i.payload).split(b'flag%7B')[1:])
  9. break
  10. if b'flag{' in bytes(i.payload):
  11. print(bytes(i.payload).split(b'flag{')[1:])
  12. break
Runtime error #stdin #stdout #stderr 0.06s 63316KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Traceback (most recent call last):
  File "prog.py", line 1, in <module>
    from scapy.all import *
ImportError: No module named scapy