X-Bogus/example.py
2023-02-27 18:30:56 -05:00

10 lines
251 B
Python

import execjs
import urllib.parse
url = ""
user_agent = ""
query = urllib.parse.urlparse(url).query
xbogus = execjs.compile(open('./X-Bogus.js').read()).call('sign', query, user_agent)
new_url = url + "&X-Bogus=" + xbogus
print(new_url)