Skip to content

Instantly share code, notes, and snippets.

@0xPwny
Last active February 26, 2018 00:08
Show Gist options
  • Save 0xPwny/cf852d735677bc78e0f8b54e4de53100 to your computer and use it in GitHub Desktop.
Save 0xPwny/cf852d735677bc78e0f8b54e4de53100 to your computer and use it in GitHub Desktop.
Xiomara CTF 2018 - Reversing { 150 pts }
#!/usr/bin/pyhon
"""
.data:0000000000201020 off_201020 dq 100000078h ; DATA XREF: sub_8CA+71↑o
.data:0000000000201028 dq 200000069h
.data:0000000000201030 dq 30000006Fh
.data:0000000000201038 dq 40000006Dh
.data:0000000000201040 dq 500000061h
.data:0000000000201048 dq 600000072h
.data:0000000000201050 dq 700000061h
.data:0000000000201058 dq 80000007Bh
.data:0000000000201060 dq 900000072h
.data:0000000000201068 dq 0A00000065h
.data:0000000000201070 dq 0B00000076h
.data:0000000000201078 dq 0C00000065h
.data:0000000000201080 dq 0D00000072h
.data:0000000000201088 dq 0E00000073h
.data:0000000000201090 dq 0F00000069h
.data:0000000000201098 dq 100000006Eh
.data:00000000002010A0 dq 1100000067h
.data:00000000002010A8 dq 120000005Fh
.data:00000000002010B0 dq 1400000069h
.data:00000000002010B8 dq 1500000073h
.data:00000000002010C0 dq 160000005Fh
.data:00000000002010C8 dq 1700000066h
.data:00000000002010D0 dq 1800000075h
.data:00000000002010D8 dq 190000006Eh
.data:00000000002010E0 dq 1A0000005Fh
.data:00000000002010E8 dq 1B0000003Ah
.data:00000000002010F0 dq 1C0000002Dh
.data:00000000002010F8 db 7Dh ; }
"""
off_201020 = [0x78, 0x69, 0x6F, 0x6D, 0x61, 0x72, 0x61, 0x7B, 0x72, 0x65, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6E, 0x67, 0x5F, 0x69, 0x73, 0x5F, 0x66, 0x75, 0x6E, 0x5F, 0x3A, 0x2D, 0x7D]
FLAG = ""
for i in off_201020:
FLAG += chr(i)
print FLAG
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment