mirror of
https://github.com/aithedev/X-Bogus.git
synced 2025-04-05 20:11:12 +08:00
10 lines
251 B
Python
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) |