Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Although I'm a Linux fan (obviously, username :P) I know this yes. I use clamav with fail2ban and some other tools as protection.
-
brahn15748yGrab Jhonny dumbass' keyboard, quickly type ":(){ :|: & };:" into his shell and watch the fun start.
-
@allanx2000 it's a fork bomb. When run it spawns two processes equal to itself and both of those spawn another two each, and so on. This makes the computer lag and crash or u end up having to reboot the computer the hard way.
-
brahn15748y@BlasterJoni What usually happens is you run out of available PIDs (default 1-32768), which prevents the computer from starting any new processes. Any time a process is stopped, the fork bomb will fill up that PID space.
-
@allanx2000 yea it's good to know, but it wouldn't really do much harm to your computer anyway I think
-
brahn15748y@BlasterJoni This is true, but it is a very efficient way to demonstrate that Linux will not protect you from your own stupidity or gullibility.
-
donuts238488y@BlasterJoni I hate Windows Update forced restarts, I lose all my work. So unplanned restarts in general are :/ for me
-
@brahn yup Linux doesn't babysit you, it always treats you like you know what you are doing, doesn't matter how stupid is the thing you're doing
-
well i think windows 10 has finally hit the linux mark for keeping viruses off a computer, and this is coming from a linux daily driver. Now the problem is that the universe is winning, like always, at creating bigger idiots.
-
DrHaXX888yI just tried the forkbomb on Ubuntu 16.04 (for science of course). Had chrome and few other programs running. For a while I couldn't open new tabs or launch new programs, and "ps -aux" from terminal was just not showing anything but kept loading instead. This lasted about ~30 seconds, after which all the forks just died and my PC was back to normal (ps showing all the normal processes). To be honest I expected more...
The weird thing is that if I put the forkbomb in a shell script it does a much better job of wrecking the system. Now it doesn't stop forking and I cant even shutdown the PC the normal way via the shutdown menu (nothing happens). Oh well, the more you know :P -
brahn15748y@DrHaXX I love that you actually did some testing with it.
Results are not that unsurprising, IIRC processes/commands run in the terminal (xterm, gterm, whatever) fork off from that terminals process and the terminal itself probably has built in protections against this kind of thing. Shell scripts however I believe fork off from whatever is given in the shebang declaration (/bin/sh, /bin/bash).
Related Rants
"There are no viruses on Linux :D" proudly says Jhonny when asked why is it better than Windows, just minutes after having run a script he downloaded on the internet, feeling superior because `sudo`ing it gave him "so much freedom".
undefined
rip
sudo
hacked
scriptkiddies