Using what you learned in this section, determine the type of encoding used in the string you got at previous exercise, and decode it. To get the flag, you can send a ‘POST’ request to ‘serial.php’, and set the data as “serial=YOUR_DECODED_OUTPUT”.
I was do it and find a flag with encode using base64 the flag is 7h15_15_a_s3cr37_m3554g3
but I got an error (wrong flag)
Please help me solve this
Type your comment> @v1bhu said:
Using what you learned in this section, determine the type of encoding used in the string you got at previous exercise, and decode it. To get the flag, you can send a ‘POST’ request to ‘serial.php’, and set the data as “serial=YOUR_DECODED_OUTPUT”.
I was do it and find a flag with encode using base64 the flag is 7h15_15_a_s3cr37_m3554g3
but I got an error (wrong flag)
Please help me solve this
oh that’s because you have to set the data, which means you have to curl once again with the serial
I have the same problem, did use the next curl command but still getting the encoded reply.
curl http://157.245.46.172:30356/serial.php -X POST “serial=7h15_15_a_s3cr37_m3554g3”
curl -s http://157.245.46.172:30356/serial.php -X POST “7h15_15_a_s3cr37_m3554g3”
Response: N2gxNV8xNV9hX3MzY3IzN19tMzU1NGcz
echo N2gxNV8xNV9hX3MzY3IzN19tMzU1NGcz | base64 -d
What did i do wrong with the cURL commands?
EDIT: forgot the -d flag in the curl command.
ThnU)
Please note that " and ” are different quotation marks…