Based¶
Challenge¶
To get truly 1337, you must understand different data encodings, such as hexadecimal or binary. Can you get the flag from this program to prove you are on the way to becoming 1337? Connect with nc 2019shell1.picoctf.com 20836.
Solution¶
I used a bash script that utilized perl to convert binary to ascii. I would paste the array in as arguments.
1 2 3 4 5 6 7 8 9 10 11 |
|
A second string is needed and it is octal, so I created another bash script that would take the input and convert it hex, then to ascii, mainly relying on xxd
to do the ascii conversion.
1 2 3 4 5 6 7 8 9 10 11 12 |
|
Next portion was hex, and that was just a stripped version of the previous script.
1 2 3 4 5 6 7 8 9 10 11 |
|
picoCTF{learning_about_converting_values_6cdcad0d}