News for hackers. Stuff that matters.
Re:Count to ten when a plane goes down by smwht on Tuesday July 22, 2014 @10:59AM (#8069313)
The important character here is the '>'. This redirects output to a file and overwrites the file. The lrwxrwxrwx will only print an error, but the redirect to the target executable will erase the target.

For example:

  $ echo "asdf" > foo
  $ cat foo
  asdf
  $ lrwxwrwxrwx 1 root root -> foo
  lrwxrwxrwx: command not found
  $ cat foo
  $
So basically, this zero'd out every executable on the system.
Re:Count to ten when a plane goes down by talmand on Tuesday July 22, 2014 @11:24AM (#8069450)
Yep, that's bad.

Out of curiosity, what was the solution to fix all that?

Re:Count to ten when a plane goes down by mianosm on Tuesday July 22, 2014 @11:50AM (#8069592)
Possibly a cp or an scp from a remote system with a working set of binaries.
Re:Count to ten when a plane goes down by kstenerud on Tuesday July 22, 2014 @11:58AM (#8069641)
scp was in /usr/bin, so we could at least copy enough basics from another system and recover the rest from a backup. Needless to say we lost the client contract.