mirror of
https://github.com/aithedev/X-Bogus.git
synced 2025-04-05 11:28:39 +08:00
11 lines
300 B
JavaScript
11 lines
300 B
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);
|