Skip to content

Instantly share code, notes, and snippets.

@kkrypt0nn
Created April 3, 2022 18:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kkrypt0nn/adb3595e2ec5bbfd991724fae1cec68f to your computer and use it in GitHub Desktop.
Save kkrypt0nn/adb3595e2ec5bbfd991724fae1cec68f to your computer and use it in GitHub Desktop.
Solution for challenge Star Pcap at the Space Heroes 2022 CTF
import pyshark
capture = pyshark.FileCapture("star.pcap")
data = ""
for packet in capture:
data += chr(int(packet.layers[2]._all_fields["icmp.code"]))
print(data)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment