Hack The Box solution: Emdee five for life

Access the page and we get:

Try submit button:

Then, we need to submit the string in MD5 really fast, we will need to code a simple program.

The page source is:

and we can extract the string with a regex:

center'>[\w]+<\/h3

Code in python3:

import requests
import hashlib
import re

url="http://167.99.86.47:31867/"

r=requests.session()
out=r.get(url)
out=re.search("center'>[\w]+<\/h3",out.text)
out=re.search(">[\w]+<",out[0])
out=re.search("[^|>|<]+",out[0])

out=hashlib.md5(out[0].encode('utf-8')).hexdigest()
data={'hash': out}
out = r.post(url = url, data = data)

print(out.text)

Flag: HTB{N1c3_ScrIpt1nG_B0i!}

Leave a comment

Design a site like this with WordPress.com
Get started