← Back to HWJ CTF

YOU HAVE TO REVERSE IT...

Reverse embedded comparison string before supplying password input.

Tools Used

filestringsGhidraltrace

Overview

The binary reverses user input string before comparing against hardcoded password string.

Reconnaissance

Running strings rev displays reversed string uloj_htiw_kcah.

Exploitation Strategy

Reversing uloj_htiw_kcah gives hack_with_jolu. Supplying this input triggers the flag printing logic.

Solution Code

./rev
Input: hack_with_jolu
Output: hwj{r3v3rs3_3ng1n33r1ng_1s_fun_1311d3}

Flag

hwj{r3v3rs3_3ng1n33r1ng_1s_fun_1311d3}