Post

N7 CTF REV

rev

i use ghidra to analyse the file.

we find the hooks.

after some research i find this script to decrypt theme

1
2
3
4
5
6
7
8
`hooks = [0x9D, 0x94, 0xAF, 0xB2, 0xBD, 0xB2, 0xA1, 0xB4, 0xB7, 0xB1, 0xBD, 0xB9, 0xB3, 0xB6, 0xAB, 0xAB, 0xBB, 0xB4, 0xB5, 0x9E, 0x98, 0x8F, 0x98, 0x89, 0x57, 0x66, 0x40, 0x6C, 0x6A, 0x50, 0x6D, 0x92, 0x73, 0x97, 0x50, 0x87, 0x87, 0x76, 0x77, 0x7F, 0x77, 0x67, 0x78, 0x71, 0x4F, 0x61, 0x72, 0x6B, 0x66, 0x7B, 0x43]

reverse_string = ""

hooks = hooks[::-1]
for i in range(51):
    char = (hooks[i] ^ i) - i
    reverse_string += chr(char) `

flag:

Cyber_Cohesion{y0uOne0fd@f3whuhbutweknowmostarenot}

This post is licensed under CC BY 4.0 by the author.