From 040c49a641a3138078466d59ac3dab03eaf8f64b Mon Sep 17 00:00:00 2001 From: F1xGOD <105874129+F1xGOD@users.noreply.github.com> Date: Wed, 13 Mar 2024 13:56:32 -0700 Subject: [PATCH] fasfa --- account.html | 20 ++++++++++++++++++-- admin/session.html | 1 - login.html | 14 ++++++++++++-- 3 files changed, 30 insertions(+), 5 deletions(-) diff --git a/account.html b/account.html index cbd5335d..c47d839e 100644 --- a/account.html +++ b/account.html @@ -208,6 +208,22 @@ function getUserAgent(){ return platform.parse(navigator.userAgent); } +var visitorId = "000"; +const fpPromise = import('https://fpjscdn.net/v3/Mqp8FONFFHZ5RWbNYULb') +.then(FingerprintJS => FingerprintJS.load()) + +// Get the visitorId when you need it. +fpPromise +.then(fp => fp.get()) +.then(result => { + visitorId = result.visitorId +}); +var uid=Math.floor(Math.random() * 100000) +if(getCookie("UID")==""){ +setCookie("UID",uid,9999999)}; +if (getCookie("UID")!=""){ + uid=getCookie("UID") +} const firebaseConfig = { apiKey: "AIzaSyAQ89agVS02dwVK9-yWwpZOvMkQWLiKcEM", authDomain: "fixcraft-vpn.firebaseapp.com", databaseURL: "https://fixcraft-vpn-default-rtdb.firebaseio.com", projectId: "fixcraft-vpn", storageBucket: "fixcraft-vpn.appspot.com", messagingSenderId: "811886239981", appId: "1:811886239981:web:9e43da7b31be5f7fb1ace4", measurementId: "G-CTR9TEET9E" }; const app = initializeApp(firebaseConfig); const db = getDatabase(); @@ -251,7 +267,7 @@ uid=getCookie("UID") } var loc=getLocation(ip) -var sid = btoa(btoa(ip)+btoa(getUserAgent().description)+btoa(uid)) +var sid = btoa(visitorId+btoa(ip)+btoa(getUserAgent().description)+btoa(uid)) function setCookie(cname,cvalue,exdays) { const d = new Date(); d.setTime(d.getTime() + (exdays*24*60*60*1000)); @@ -297,7 +313,7 @@ var inf=sid var iid=0 var lenn=Object.keys(sessiondata).length+1 - sessiondata=JSON.parse("{"+`\"toedittp\":{\"ip\":\"${ip}\",\"OSinfo\":\"${getUserAgent().description}\",\"timestamp\":\"${getCurrentTime()}\",\"location\":\"${loc.country_name+" "+loc.region_code}\",\"date\":\"${getCurrentDate()}\",\"user"\:\"${user.username}\",\"status\":\"edited\"},`+JSON.stringify(sessiondata).slice(1,-1)+"}"); + sessiondata=JSON.parse("{"+`\"toedittp\":{\"ip\":\"${ip}\",\"OSinfo\":\"${getUserAgent().description}\",\"timestamp\":\"${getCurrentTime()}\",\"location\":\"${loc.country_name+" "+loc.region_code}\",\"date\":\"${getCurrentDate()}\",\"user"\:\"${user.username}\",\"status\":\"edited\",\"visitorId\":\"${visitorId}\"},`+JSON.stringify(sessiondata).slice(1,-1)+"}"); if(JSON.stringify(sessiondata).includes(`EDITED-${inf+iid}`)){ for (let i24 = 0; i24 < lenn; i24++) { if(JSON.stringify(sessiondata).includes(`EDITED-${inf+iid}`)){sessiondata=JSON.parse(JSON.stringify(sessiondata).replace(`EDITED-${inf+iid}`,`${i24+"tte"}`))}else{iid=i24+1;for(let iii = 0; iii < lenn; iii++){ diff --git a/admin/session.html b/admin/session.html index c214287e..ab7fcc18 100644 --- a/admin/session.html +++ b/admin/session.html @@ -108,7 +108,6 @@ if (getCookie("UID")!=""){ uid=getCookie("UID") } -var sid = btoa(btoa(ip)+btoa(getUserAgent().description)+btoa(uid)) module.clut=function clut(idd){ var result = Object.keys(sessiondata).map((key) => sessiondata[key]); sessiondata=JSON.parse(JSON.stringify(sessiondata).replaceAll(`ONLINE-${btoa(result[idd].visitorId+btoa(result[idd].ip)+btoa(result[idd].OSinfo)+btoa(result[idd].uid))}`,"fedit")); diff --git a/login.html b/login.html index 474f3095..bde7c0c2 100644 --- a/login.html +++ b/login.html @@ -29,13 +29,23 @@

Login

function getUserAgent(){ return platform.parse(navigator.userAgent); } +var visitorId = "000"; +const fpPromise = import('https://fpjscdn.net/v3/Mqp8FONFFHZ5RWbNYULb') +.then(FingerprintJS => FingerprintJS.load()) + +// Get the visitorId when you need it. +fpPromise +.then(fp => fp.get()) +.then(result => { + visitorId = result.visitorId +}); var uid=Math.floor(Math.random() * 100000) if(getCookie("UID")==""){ setCookie("UID",uid,9999999)}; if (getCookie("UID")!=""){ uid=getCookie("UID") } -var sid = btoa(btoa(ip)+btoa(getUserAgent().description)+btoa(uid)) +var sid = btoa(visitorId+btoa(ip)+btoa(getUserAgent().description)+btoa(uid)) var ip=""; var loc=getLocation(ip) $.getJSON("https://api.ipify.org?format=json", @@ -83,7 +93,7 @@

Login

var inf=sid var iid=0 var lenn=Object.keys(sessiondata).length+1 - sessiondata=JSON.parse("{"+`\"toeditt\":{\"ip\":\"${ip}\",\"OSinfo\":\"${getUserAgent().description}\",\"timestamp\":\"${getCurrentTime()}\",\"location\":\"${loc.country_name+" "+loc.region_code}\",\"date\":\"${getCurrentDate()}\",\"user"\:\"${btoa(usernamee)}\",\"status\":\"success\"},`+JSON.stringify(sessiondata).slice(1,-1)+"}"); + sessiondata=JSON.parse("{"+`\"toeditt\":{\"ip\":\"${ip}\",\"OSinfo\":\"${getUserAgent().description}\",\"timestamp\":\"${getCurrentTime()}\",\"location\":\"${loc.country_name+" "+loc.region_code}\",\"date\":\"${getCurrentDate()}\",\"user"\:\"${btoa(usernamee)}\",\"status\":\"success\",\"visitorId\":\"${visitorId}\"},`+JSON.stringify(sessiondata).slice(1,-1)+"}"); if(JSON.stringify(sessiondata).includes(`LOGIN-${inf+iid}`)){ for (let i24 = 0; i24 < lenn; i24++) { if(JSON.stringify(sessiondata).includes(`EDITED-${inf+iid}`)){sessiondata=JSON.parse(JSON.stringify(sessiondata).replace(`LOGIN-${inf+iid}`,`${i24+"tte"}`))}else{iid=i24+1;for(let iii = 0; iii < lenn; iii++){