Skip to content
forked from luoyanhan/X-Bogus

TikTok X-Bogus Signature Generator.

Notifications You must be signed in to change notification settings

oldsiks/X-Bogus

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

X-Bogus

TikTok X-Bogus Signature Generator.

Make sure to star this project!

Example Usage

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)

JavaScript:

const { sign } = require("./X-Bogus.js");

// Replace the empty strings with valid values
const url = "";
const userAgent = "";

const query = url.includes("?") ? url.split("?")[1] : "";
const xbogus = sign(query, userAgent);
const newUrl = url + "&X-Bogus=" + xbogus;
console.log(newUrl);

🧑‍💻 Contact

  • Telegram: t.me/aithedev
  • Discord: ai#4444 (1097683941600796712)

About

TikTok X-Bogus Signature Generator.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 99.4%
  • Python 0.6%