HTB Can you encrypt fast enough?
打开界面后如下图: 尝试MD5加密后填进输入框后提示 “Too slow!” 查看源码后推测,应该是用程序发包,构造如下Python代码:
import requests
import hashlib
import re
url="http://你的地址"
r=requests.session()
out=r.get(url)
rr = re.compile(r"<h3 align='center'>(\S+)</h3>", re.I)
str1 = rr.findall(out.text)
str2=hashlib.md5(str1[0].encode('utf-8')).hexdigest()
data={'hash': str2}
out = r.post(url = url, data = data)
print(out.text)Copy