mirror of
https://github.com/aithedev/X-Bogus.git
synced 2025-04-05 06:14:56 +08:00
12 lines
300 B
Python
12 lines
300 B
Python
import execjs
|
|
import urllib.parse
|
|
|
|
# Replace the empty strings with valid values
|
|
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)
|