Posts Emdee Five for Life
Post
Cancel

Emdee Five for Life

Emdee Five For Life

The idea of this challenge is to get the string and encrypt it using MD5 as fast as possible.

Just write a small python script and get the flag from the result

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import requests, os, re
import urllib, hashlib

address = 'http://docker.hackthebox.eu:31450/' # CHANGE THIS

r = requests.session()

html = r.get(address) 
#print(html.text)

regex = r"<h3 align=\'center\'>(.*)<\/h3>"
html = re.search(regex, html.text)
print(html)
match = html.group(1)
match.encode("utf-8")

print(match)

result = r.post(address, data={'hash':hashlib.md5(str(match).encode('utf-8')).hexdigest()})
print(result.text)
This post is licensed under CC BY 4.0 by the author.