Reorganized

This commit is contained in:
Mari Wahl 2014-11-03 10:49:17 -05:00
parent ab54dc8e70
commit 2afd831662
281 changed files with 253 additions and 33 deletions

View file

@ -0,0 +1,14 @@
# read data
data = []
with open('hidden-message.pcap', 'rb') as f:
data = f.read()
# get bits
bits = ''
for i in xrange(75, len(data), 81):
bits += '0' if data[i:i+1]=='I' else '1'
# convert to chars
flag = ''
for i in xrange(0, len(bits), 8):
flag += chr(int(bits[i:i+8], 2))
print flag