Untitled

mail@pastecode.io avatar
unknown
plain_text
3 years ago
480 B
2
Indexable
Never
#!/usr/bin/python3

from bs4 import BeautifulSoup
import requests
import os
import hashlib



request = requests.get('http://206.189.16.116:32721/')

html = request.text
soup = BeautifulSoup(html, "html.parser")

string = soup.body.h3.text

print(string)

result = hashlib.md5(string.encode('utf-8')).hexdigest()

print(result)
payload = {'hash':result}

post_request = requests.post('http://206.189.16.116:32721/', data=payload)
print(post_request.text)