VIDEO
.
Consequently, is a fork bomb a virus?
A fork bomb is also called a wabbit or rabbit virus that was crafted by malicious hackers to launch a denial-of-service attack on the target system. The fork bomb virus replicates itself and corrupts the available system resources.
Beside above, is Fork bomb dangerous? A fork bomb will calls the fork function indefinitely and rapidly in no time, thus exhausting all system resources. It comes in the category of Denial of Service attack due to its nature of quickly ripping up system resources and making it unusable within a very short span of time.
Hereof, how do you stop a fork bomb?
Way to prevent the fork() Bomb
- Avoid use of fork in any statement which might end up into an infinite loop.
- You can limit the process of fork as below :-
- You can try Running the command in Virtualbox if you want to run it.
- Direct power off your system just in case you have run it and not finding a way out to proceed.
How do I limit a fork bomb in Linux?
How to: Prevent a fork bomb by limiting user process
- Understanding /etc/security/limits. conf file. Each line describes a limit for a user in the form: <domain> <type> <item> <value>
- Configuration. Login as the root and open configuration file: # vi /etc/security/limits.conf.
- Test it again. Save and close the file. Test your new system by dropping a fork bomb: