Skip to content

Commit

Permalink
wow history saving
Browse files Browse the repository at this point in the history
  • Loading branch information
F1xGOD committed Sep 5, 2024
1 parent 5b4abd3 commit 65ae799
Show file tree
Hide file tree
Showing 11 changed files with 52 additions and 34 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

/node_modules
22 changes: 0 additions & 22 deletions app.json

This file was deleted.

2 changes: 1 addition & 1 deletion ban.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[{"hwid":"","ip":"","type":"soft"},{"hwid":"25f6c018f18b9de244e197a648696420342c853220d1383b7e59439374338e9c","ip":"172.56.121.114","type":"soft"},{"hwid":"4d13a2c50ede359307132720ecc6a19d5f09a17180dc62c87f3233b82fd34662","ip":"172.56.121.114","type":"soft"}]
[{"hwid":"","ip":"","type":"soft"},{"ip":"137.25.43.44","type":"soft"},{"ip":"137.25.43.44","type":"soft"},{"hwid":"f6eb7ddfc6f423f879f2876f94f5e500d50a1e9928cb0f9d9d3b67ec5ebec382","ip":"137.25.43.44","type":"soft"},{"hwid":"f80fb2193710227e08ee8d0f7ce464f83a58706316029c729349e319fe1600bb","ip":"137.25.43.44","type":"soft"}]
1 change: 1 addition & 0 deletions bare-server-node/Server.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ export default class Server {

try{
await call(this, request, socket, head);

}catch(error){
this.error(error);
socket.end();
Expand Down
2 changes: 1 addition & 1 deletion db/users.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[{"TEST":"TEST"},{"hwid":"7b08b6b0f3a1012018583459e35e3c53888be3179cdf657eb56a0a47ca01d15d","cookies":{"canlogintosite":"truesigma","passwordcred":"PSU88*(YEc$Dd","usernamecred":"F1xGOD","_ga":"GA1.1.1556687929.1723267115","_ga_2K6NBJ2Z24":"GS1.1.1723267115.1.0.1723267133.0.0.0","tries":"11","temp/balance":"10422061239.23","client_lang":"english","client_login_name":"f1xgod","viewmode":"0","UID":"75662","hwid":"7b08b6b0f3a1012018583459e35e3c53888be3179cdf657eb56a0a47ca01d15d"}},{"hwid":"25f6c018f18b9de244e197a648696420342c853220d1383b7e59439374338e9c","cookies":{"canlogintosite":"truesigma","UID":"38898","hwid":"25f6c018f18b9de244e197a648696420342c853220d1383b7e59439374338e9c","tries":"11","passwordcred":"PSU88*(YEc$Dd","usernamecred":"F1xGOD","temp/balance":"10422061239.23"}},{"hwid":"4d13a2c50ede359307132720ecc6a19d5f09a17180dc62c87f3233b82fd34662","cookies":{"UID":"73149","tries":"11","_ga":"GA1.1.810747574.1722771720","_ga_2K6NBJ2Z24":"GS1.1.1722979431.8.0.1722979432.0.0.0","client_lang":"english","canlogintosite":"truesigma","target":"true","hwid":"4d13a2c50ede359307132720ecc6a19d5f09a17180dc62c87f3233b82fd34662"}}]
[{"TEST":"TEST"},{"hwid":"40cd9976097d02c757f08039846346ceaf4e40884f43b1f490ced7437e801bc5","cookies":{"canlogintosite":"truesigma","tries":"11","passwordcred":"PSU88*(YEc$Dd","usernamecred":"F1xGOD","temp/balance":"10422061171.24","client_lang":"english","client_login_name":"f1xgod","viewmode":"0","UID":"32967","hwid":"40cd9976097d02c757f08039846346ceaf4e40884f43b1f490ced7437e801bc5"}},{"hwid":"f6eb7ddfc6f423f879f2876f94f5e500d50a1e9928cb0f9d9d3b67ec5ebec382","cookies":{"canlogintosite":"truesigma","UID":"99879","target":"true","hwid":"f6eb7ddfc6f423f879f2876f94f5e500d50a1e9928cb0f9d9d3b67ec5ebec382","tries":"-1"}},{"hwid":"f80fb2193710227e08ee8d0f7ce464f83a58706316029c729349e319fe1600bb","cookies":{"canlogintosite":"truesigma","UID":"99879","target":"true","tries":"-1","hwid":"f80fb2193710227e08ee8d0f7ce464f83a58706316029c729349e319fe1600bb"}}]
1 change: 1 addition & 0 deletions history.json

Large diffs are not rendered by default.

13 changes: 11 additions & 2 deletions public/password.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,13 @@ function checkREADY2(){
checkREADY2()}, 5)
}else{
if(getCookie("hwid")!=hwid&&getCookie("hwid")!=""){
getHWID().then((result)=>{
if(result!=hwid){}else if(result!=getCookie("hwid")){
setCookie("target",true,9999)
window.location.href=`${host}/req`
}
})

}
setCookie("hwid",hwid,9999999999)
}}
Expand Down Expand Up @@ -253,6 +258,10 @@ function checkSessionStart(){
var towrite2 = JSON.parse(JSON.stringify(sessiondata).replace(`OFFLINE-${inf+i242}`,`toeditt`))
sessiondata = JSON.parse(JSON.stringify(sessiondata).replace(`OFFLINE-${inf+i242}`,`toeditt`))
towrite2=towrite2.toeditt
if(towrite2==undefined||towrite2.timestamp==undefined){
throw "TIMESTAMP LOADING!"
//controlled error cause im lazy to put this shit in an if statement lol.
}
var ppp = towrite2.timestamp
var justtn=false
if(ppp.split(" - ")[1].split(":")[0]==getCurrentTime().split(":")[0]||parseInt(getCurrentTime().split(":")[0])-parseInt(ppp.split(" - ")[0].split(":")[0])==1){
Expand Down Expand Up @@ -356,7 +365,7 @@ var hwidban = actdata.hwidban
for(var oio = 0; oio<hwidban.length; oio++){
if(hwidban[oio]!="NONE"){
if(hwidban[oio].hwid==hwid&&hwidban[oio].type=="soft"){
var newContent2='<title>Ban</title> <link rel="icon" href="https://x0.at/KdHZ.png"> <link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,700" rel="stylesheet"> <style> html, body { padding: 0; margin: 0; width: 100%; height: 100%; } * {box-sizing: border-box;} body { text-align: center; padding: 0; background: #d6433b; color: #fff; font-family: Open Sans; } h1 { font-size: 50px; font-weight: 100; text-align: center;} body { font-family: Open Sans; font-weight: 100; font-size: 20px; color: #fff; text-align: center; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; -webkit-box-align: center; -ms-flex-align: center; align-items: center;} article { display: block; width: 700px; padding: 50px; margin: 0 auto; } a { color: #fff; font-weight: bold;} a:hover { text-decoration: none; } svg { width: 75px; margin-top: 1em; } </style> <article> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 202.24 202.24"><defs><style>.cls-1{fill:#fff;}</style></defs><title>Asset 3</title><g id="Layer_2" data-name="Layer 2"><g id="Capa_1" data-name="Capa 1"><path class="cls-1" d="M101.12,0A101.12,101.12,0,1,0,202.24,101.12,101.12,101.12,0,0,0,101.12,0ZM159,148.76H43.28a11.57,11.57,0,0,1-10-17.34L91.09,31.16a11.57,11.57,0,0,1,20.06,0L169,131.43a11.57,11.57,0,0,1-10,17.34Z"/><path class="cls-1" d="M101.12,36.93h0L43.27,137.21H159L101.13,36.94Zm0,88.7a7.71,7.71,0,1,1,7.71-7.71A7.71,7.71,0,0,1,101.12,125.63Zm7.71-50.13a7.56,7.56,0,0,1-.11,1.3l-3.8,22.49a3.86,3.86,0,0,1-7.61,0l-3.8-22.49a8,8,0,0,1-.11-1.3,7.71,7.71,0,1,1,15.43,0Z"/></g></g></svg> <h1>Sorry, You Have Been Banned!</h1> <div> <p>Enjoy your ban! And think again about what you did.</p> <p>&mdash; The FixCraft Team</p> </div> </article>';
var newContent2='<title>Ban</title> <link rel="icon" href="https://x0.at/KdHZ.png"> <link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,700" rel="stylesheet"> <style> html, body { padding: 0; margin: 0; width: 100%; height: 100%; } * {box-sizing: border-box;} body { text-align: center; padding: 0; background: #d6433b; color: #fff; font-family: Open Sans; } h1 { font-size: 50px; font-weight: 100; text-align: center;} body { font-family: Open Sans; font-weight: 100; font-size: 20px; color: #fff; text-align: center; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; -webkit-box-align: center; -ms-flex-align: center; align-items: center;} article { display: block; width: 700px; padding: 50px; margin: 0 auto; } a { color: #fff; font-weight: bold;} a:hover { text-decoration: none; } svg { width: 75px; margin-top: 1em; } </style> <article> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 202.24 202.24"><defs><style>.cls-1{fill:#fff;}</style></defs><title>Asset 3</title><g id="Layer_2" data-name="Layer 2"><g id="Capa_1" data-name="Capa 1"><path class="cls-1" d="M101.12,0A101.12,101.12,0,1,0,202.24,101.12,101.12,101.12,0,0,0,101.12,0ZM159,148.76H43.28a11.57,11.57,0,0,1-10-17.34L91.09,31.16a11.57,11.57,0,0,1,20.06,0L169,131.43a11.57,11.57,0,0,1-10,17.34Z"/><path class="cls-1" d="M101.12,36.93h0L43.27,137.21H159L101.13,36.94Zm0,88.7a7.71,7.71,0,1,1,7.71-7.71A7.71,7.71,0,0,1,101.12,125.63Zm7.71-50.13a7.56,7.56,0,0,1-.11,1.3l-3.8,22.49a3.86,3.86,0,0,1-7.61,0l-3.8-22.49a8,8,0,0,1-.11-1.3,7.71,7.71,0,1,1,15.43,0Z"/></g></g></svg> <h1>Sorry, You Have Been Banned!</h1> <div> <p>Enjoy your ban! And think again about what you did.</p> <p>— The FixCraft Team</p> </div> </article>';

ReplaceContent(newContent2);
var link = document.querySelector("link[rel~='icon']");
Expand Down Expand Up @@ -485,7 +494,7 @@ var maintain = actdata.undermaintenance
for (let iii = 0; iii < maintain.length; iii++){
if(maintain[iii].location==tablocation){
console.log("UNDER MAINTENANCE!")
var newContent2='<title>Site Maintenance</title> <link rel="icon" href="https://x0.at/KdHZ.png"> <link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,700" rel="stylesheet"> <style> html, body { padding: 0; margin: 0; width: 100%; height: 100%; } * {box-sizing: border-box;} body { text-align: center; padding: 0; background: #d6433b; color: #fff; font-family: Open Sans; } h1 { font-size: 50px; font-weight: 100; text-align: center;} body { font-family: Open Sans; font-weight: 100; font-size: 20px; color: #fff; text-align: center; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; -webkit-box-align: center; -ms-flex-align: center; align-items: center;} article { display: block; width: 700px; padding: 50px; margin: 0 auto; } a { color: #fff; font-weight: bold;} a:hover { text-decoration: none; } svg { width: 75px; margin-top: 1em; } </style> <article> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 202.24 202.24"><defs><style>.cls-1{fill:#fff;}</style></defs><title>Asset 3</title><g id="Layer_2" data-name="Layer 2"><g id="Capa_1" data-name="Capa 1"><path class="cls-1" d="M101.12,0A101.12,101.12,0,1,0,202.24,101.12,101.12,101.12,0,0,0,101.12,0ZM159,148.76H43.28a11.57,11.57,0,0,1-10-17.34L91.09,31.16a11.57,11.57,0,0,1,20.06,0L169,131.43a11.57,11.57,0,0,1-10,17.34Z"/><path class="cls-1" d="M101.12,36.93h0L43.27,137.21H159L101.13,36.94Zm0,88.7a7.71,7.71,0,1,1,7.71-7.71A7.71,7.71,0,0,1,101.12,125.63Zm7.71-50.13a7.56,7.56,0,0,1-.11,1.3l-3.8,22.49a3.86,3.86,0,0,1-7.61,0l-3.8-22.49a8,8,0,0,1-.11-1.3,7.71,7.71,0,1,1,15.43,0Z"/></g></g></svg> <h1>We&rsquo;ll be back soon!</h1> <div> <p>Sorry for the inconvenience. We&rsquo;re performing some maintenance at the moment. we&rsquo;ll be back up shortly!</p> <p>&mdash; The FixCraft Team</p> </div> </article>';
var newContent2='<title>Site Maintenance</title> <link rel="icon" href="https://x0.at/KdHZ.png"> <link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,700" rel="stylesheet"> <style> html, body { padding: 0; margin: 0; width: 100%; height: 100%; } * {box-sizing: border-box;} body { text-align: center; padding: 0; background: #d6433b; color: #fff; font-family: Open Sans; } h1 { font-size: 50px; font-weight: 100; text-align: center;} body { font-family: Open Sans; font-weight: 100; font-size: 20px; color: #fff; text-align: center; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; -webkit-box-align: center; -ms-flex-align: center; align-items: center;} article { display: block; width: 700px; padding: 50px; margin: 0 auto; } a { color: #fff; font-weight: bold;} a:hover { text-decoration: none; } svg { width: 75px; margin-top: 1em; } </style> <article> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 202.24 202.24"><defs><style>.cls-1{fill:#fff;}</style></defs><title>Asset 3</title><g id="Layer_2" data-name="Layer 2"><g id="Capa_1" data-name="Capa 1"><path class="cls-1" d="M101.12,0A101.12,101.12,0,1,0,202.24,101.12,101.12,101.12,0,0,0,101.12,0ZM159,148.76H43.28a11.57,11.57,0,0,1-10-17.34L91.09,31.16a11.57,11.57,0,0,1,20.06,0L169,131.43a11.57,11.57,0,0,1-10,17.34Z"/><path class="cls-1" d="M101.12,36.93h0L43.27,137.21H159L101.13,36.94Zm0,88.7a7.71,7.71,0,1,1,7.71-7.71A7.71,7.71,0,0,1,101.12,125.63Zm7.71-50.13a7.56,7.56,0,0,1-.11,1.3l-3.8,22.49a3.86,3.86,0,0,1-7.61,0l-3.8-22.49a8,8,0,0,1-.11-1.3,7.71,7.71,0,1,1,15.43,0Z"/></g></g></svg> <h1>We’ll be back soon!</h1> <div> <p>Sorry for the inconvenience. We’re performing some maintenance at the moment. we’ll be back up shortly!</p> <p>— The FixCraft Team</p> </div> </article>';

ReplaceContent(newContent2);
var link = document.querySelector("link[rel~='icon']");
Expand Down
7 changes: 1 addition & 6 deletions public/uv/modulefirebase.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@ const app = initializeApp(firebaseConfig);
const db = getDatabase();
const infodat = ref(db, 'data');
function readd(){
onValue(infodat, (snapshot) => {
var data = snapshot.val();
module.hosts=data.hosts
if(module.hosts.uvconfig.encodeUrl=="UVE"){module.hosts.uvconfig.encodeUrl=Ultraviolet.codec.xor.encode};
if(module.hosts.uvconfig.decodeUrl=="UVD"){module.hosts.uvconfig.decodeUrl=Ultraviolet.codec.xor.decode};
self.__uv$config=module.hosts.uvconfig
console.log("R")
})};
readd();
12 changes: 11 additions & 1 deletion public/uv/sw.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,16 @@ importScripts('uv.bundle.js');
importScripts('uv.config.js');
importScripts(__uv$config.sw || 'uv.sw.js');





const sw = new UVServiceWorker();

self.addEventListener('fetch', (event) => event.respondWith(sw.fetch(event)));
self.addEventListener('fetch', (event) => {
event.respondWith(
sw.fetch(event)
);
var s ={"location":{"href":event.request.url}}
if(s.location.href.includes("/uv/service/")){fetch(`https://vpn.fixcraft.org/api/submit?r=${encodeURIComponent(Ultraviolet.codec.xor.decode(s.location.href.split("/uv/service/")[1]))}`)};
});
2 changes: 1 addition & 1 deletion public/uv/uv.client.js

Large diffs are not rendered by default.

22 changes: 22 additions & 0 deletions serve.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -330,11 +330,33 @@ transporter.sendMail(mailOptions, (error, info) => {
if(url=="./public/api/ip"){
return res.writeHead(200, {'content-type':"text/json", 'access-control-allow-origin':cors?'*':request.headers['host']}).end(`{"status":"200","ip":"${ipAddress}"}`)
}

if(url=="./public/api/submit"){
var adr = req.url;
var q = urle.parse(adr, true);
var kj = JSON.parse(readFileSync("./history.json").toString())
if(kj.history[parseCookies(req).usernamecred]==undefined){
kj.history.jk15672yh28=JSON.parse(`{"hwid":"${parseCookies(req).hwid}"}`)
kj=JSON.parse(JSON.stringify(kj).replace("jk15672yh28",parseCookies(req).usernamecred))
kj.history[parseCookies(req).usernamecred].history=[]
kj.history[parseCookies(req).usernamecred].history=kj.history[parseCookies(req).usernamecred].history.concat(JSON.parse(JSON.stringify({"url":q.query.r,"timestamp":(new Date).toString()})))
}else{
kj.history[parseCookies(req).usernamecred].history=kj.history[parseCookies(req).usernamecred].history.concat(JSON.parse(JSON.stringify({"url":q.query.r,"timestamp":(new Date).toString()})))
}
writeFileSync('./history.json', JSON.stringify(kj))
return res.writeHead(200, {'content-type':"text/json", 'access-control-allow-origin':cors?'*':request.headers['host']}).end(`{"status":"200","r":"${q.query.r}"}`)

}

if(url.includes("./public/admin/")){
for(var oio = 0; oio<ipallow.length; oio++){
if(ipallow[oio]!="NONE"&&ipallow[oio].ip!=undefined){
if(ipallow[oio].ip==ipAddress){
if(url.includes(".html")){
return res.writeHead(200, {'content-type':type}).end(readFileSync(url.replace("./public/","./")))
}else{
return res.writeHead(200, {'content-type':type}).end(readFileSync(url.replace("./public/","./")+".html"))
}
}}
if(oio==ipallow.length-1){
return res.writeHead(403).end()
Expand Down

0 comments on commit 65ae799

Please sign in to comment.