X-Bogus/example.js
2023-02-27 18:32:46 -05:00

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);