Skip to content

Instantly share code, notes, and snippets.

@ywkw1717

ywkw1717/dump.py

Created May 26, 2019
Embed
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__":
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.