Purpose
Solving web challenge (Emdee five for life) from Hackthebox.eu
It is not really a hacking challenge but a coding challenge ;)
Reconnaissance
Access the web page give us this page
We need to encrypt hash the text very fast.
Get information of the query with Burp:
We see that the page have a session. So we need to store this information before we send the query back.
Step to solve the challenge:
- grep the page and the session
- extract the value to hash
- hash the value
- send it back to the server with the session ID
Lets code this
It is possible to code this in several languages.
Try it in python3
Spoiler warning
1 | import requests |
output
Bash online
Just for the fun, and to show that bash is often helpfull :)
Spoiler warning
1 | curl -s -q -b /tmp/cookies.txt -d hash=$(echo -ne $(curl -q -s -c /tmp/cookies.txt http://134.209.29.219:31637/ | grep -oE "[0-9a-zA-Z7]{20}") | md5sum | awk '{print $1}') http://134.209.29.219:31637 | grep -oE "HTB{.*}" |