Re:Simple kernel attack: Eat 100% CPU, works under guest, no...
by rcfox on Thursday November 25, 2010 @03:19PM
(#1940933)
Am I the only one who initially thought this was a sequence of emoticons?
[ Parent
| on HN ]
Re:Simple kernel attack: Eat 100% CPU, works under guest, no...
by johnswamps on Thursday November 25, 2010 @05:04PM
(#1941108)
I'm not sure why : has been chosen as the canonical fork bomb function name, but it's more readable with something like
resurse() { recurse | recurse &}; recurse
Re:Simple kernel attack: Eat 100% CPU, works under guest, no...
by marbu on Thursday November 25, 2010 @06:44PM
(#1941267)
In this example, the poor readability is a feature. Nevertheless the ":" character is bash inner function, which tells the shell to do nothing (except the arguments expansion), like pass in python. This means that you can redefine it and use it to confuse others. Most of other special characters are not functions so you are not able to redefine them that easily.
Re:Simple kernel attack: Eat 100% CPU, works under guest, no...
by kmort on Thursday November 25, 2010 @05:58PM
(#1941188)
And it's usually accompanied by the adjective "elegant", which I find rather baffling.
"Cute" or "cryptic", perhaps.
Re:Simple kernel attack: Eat 100% CPU, works under guest, no...
by zandorg on Thursday November 25, 2010 @04:02PM
(#1940993)
Confuse the computer by making it sad?
Re:Simple kernel attack: Eat 100% CPU, works under guest, no...
by chuhnk on Thursday November 25, 2010 @03:57PM
(#1940987)
haha yes I can see it now. Its a bash function that gets called recursively. Nice and simple, I've tested it in a few different environments, linux 2.4, linux 2.6, open bsd, solaris. All vanilla installs. Solaris is the only one I havent seen die.