← Back
natas29 | Avishai’s CTF Writeups

Avishai's CTF Writeups

Yalla Balagan! A collection of my CTF writeups and solutions.

View on GitHub

We can see it gets a file and reads it, using perl.

From here piping in open function perl, we can see that if you supply | and then cmd else, it will execute cmd.

also, we need to supply %00 to null terminate the string at the end. (perl is based on C).

Okay, so let’s read the password:

Let’s try bypassing, by using regex, like nata*

I’m using more because cat, head and tail not working.

Flag: WQhx1BvcmP9irs2MP9tRnLsNaDI76YrH