DEV Community

Discussion on: 9 Evil Bash Commands Explained

Collapse
 
metalmikester profile image
Michel Renaud

Oh my... This is like a BOFH toolkit! (If you don't know what BOFH is, Google it. IT entertainment from the early to mid-90s).

Collapse
 
devmount profile image
Andreas

Well, yes you can see it this way 😅 but this post was completely meant for self protection not for making it easy for attackers... So I hope there are no BOFHs here... 🙊

Collapse
 
metalmikester profile image
Michel Renaud

A few of these scared me most in how easy it would be to make that mistake.

Thread Thread
 
devmount profile image
Andreas

Yes same here. That was one of the reasons to write this post. However I read that some of these depend on the Linux distribution, but I wouldn't count on that. I was really surprised to see, that chmod and chown both have a --preserve-root and --no-preserve-root flag to prevent misuse, but the default argument is --no-preserve-root! So if you run a command without a "preserve" option, it will default to "no preserve" mode and hence change permissions on a lot of files that shouldn't be changed.

Collapse
 
trekeyus profile image
James

I was thinking the same thing. Right up there with etherkillers.
If you don't know what an etherkiller is Google it. Basically an etherkiller is a modified ethernet cable that is hooked directly to a 110/220 power cord there are variations of that theme.

Collapse
 
larrywachira profile image
Larry

Wikipedia: The Bastard Operator From Hell (BOFH) is a fictional rogue computer operator who takes out his anger on users and others who pester him with their computer problems, uses his expertise against his enemies and manipulates his employer.

Hope this saves someone a couple of keystrokes.

Collapse
 
metalmikester profile image
Michel Renaud

The idea of googling it was for people to find the jokes, not the definition. ;)