News for hackers. Stuff that matters.
Re:“I saw his recycling bin (/bin/). I empty it and now I ca... by thejrk on Thursday April 23, 2015 @01:58PM (#9428542)
So what commands would one have access to if /bin was deleted?
Re:“I saw his recycling bin (/bin/). I empty it and now I ca... by aidenn0 on Thursday April 23, 2015 @02:12PM (#9428656)
If you have a running shell, you will have at least the shell builtins, which include things that will let you list files (echo *) and write out data; you could, in theory, use echo or printf to generate a simple netcat binary, and then use that to restore /bin.

Probably easier to just boot from a USB stick and restore though.

[edit] And of course many systems have useful binaries in /usr/bin due to old hard drives being small.