0%
Emdee five for life
1 2 3 4 5 6 7 8 9 10 11 12 13 14
| root@JIYE:~/htb/emdee import requests import hashlib import re url="http://docker.hackthebox.eu:31569/" r=requests.session() out=r.get(url) outl=re.search(r"<h3 align='center'>(\w*)</h3>",out.text) outll=hashlib.md5(outl.group(1).encode('utf8')).hexdigest() print("sending md5 : {}".format(outll)) data={'hash':outll} out=r.post(url=url,data=data) print(out.text) root@JIYE:~/htb/emdee
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
| root@JIYE:~/htb/emdee sending md5 : d92889d19659d8095201121281d6e98b <html> <head> <title>emdee five for life</title> </head> <body style="background-color:powderblue;"> <h1 align='center'>MD5 encrypt this string</h1><h3 align='center'>xcx4vl6glkWdxhQePelZ</h3><p align='center'>HTB{N1c3_ScrIpt1nG_B0i!}</p><center><form action="" method="post"> <input type="text" name="hash" placeholder="MD5" align='center'></input> </br> <input type="submit" value="Submit"></input> </form></center> </body> </html>
root@JIYE:~/htb/emdee
|
1
| HTB{N1c3_ScrIpt1nG_B0i!}
|
-------------纸短情长下次再见-------------