#auth datazero
import requests
import hashlib
from bs4 import BeautifulSoup

try:
    req = requests.session()
    url = input("URL:\r\n>>> ")

    greq = req.get(url)
    html = greq.content

    soup = BeautifulSoup(html, 'html.parser')
    hval = soup.h3.get_text().encode('utf-8')

    hash = hashlib.md5(hval).hexdigest()
    data = dict(hash=hash) # Crab People
    pres = req.post(url=url,data=data)
    print("Flag:\r\n\r\n",pres.text)

except Exception as e:
    print(e)
