Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const axios = require("axios");
- const crypto = require("crypto");
- const cheerio = require("cheerio");
- const NodeCache = require("node-cache");
- const api = axios.create({
- headers: {
- Referer: "https://linkvertise.com/",
- "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36",
- "Accept-Language": "en-US,en;q=0.9",
- "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8",
- "Accept-Encoding": "gzip, deflate, br",
- "Connection": "keep-alive",
- "Cache-Control": "no-cache",
- "Pragma": "no-cache",
- },
- maxRedirects: 0, // Disable automatic redirects
- validateStatus: function (status) {
- return status >= 200 && status < 303; // Reject only if the status code is greater than or equal to 303
- },
- timeout: 10000, // Set a timeout of 10 seconds
- });
- const cache = new NodeCache({ stdTTL: 600 });
- const md5 = (data) => crypto.createHash("md5").update(data).digest("hex");
- const bypass = async (hwid) => {
- const hashedHwid = md5(hwid);
- const startUrl = `https://keysystem.fluxteam.net/android/checkpoint/start.php?HWID=${hwid}`;
- const check1Url = "https://fluxteam.net/android/checkpoint/check1.php";
- const mainUrl = `https://fluxteam.net/android/checkpoint/main.php`;
- try {
- await api.post(startUrl);
- await api.get(check1Url);
- const response = await api.get(mainUrl);
- const $ = cheerio.load(response.data);
- const extractedKey = $("body > main > code").text().trim();
- if (extractedKey === hashedHwid) {
- return `Success:\nKey: ${hashedHwid}`;
- } else {
- return `Error: Nuh Uhh`;
- }
- } catch (error) {
- const cachedError = cache.get(error.config.url);
- if (cachedError) {
- return cachedError;
- }
- let message;
- if (error.response) {
- message = `Request error: ${error.response.status} - ${error.response.statusText}`;
- } else if (error.request) {
- message = `No response received - ${error.request}`;
- } else {
- message = `Error: ${error.message}`;
- }
- cache.set(error.config.url, message);
- return message;
- }
- };
- module.exports = bypass;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement