Skip to content

Instantly share code, notes, and snippets.



Created May 26, 2019
What would you like to do?
#!/usr/bin/env python
import struct
def main():
l = []
with open('./flag_oct', 'r') as f:
for i in f:
l = i.split(' ')
with open('flag', 'wb') as f:
for i in l:
f.write(struct.pack("B", int(i, 8)))
if __name__ == "__main__":
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.