logoalt Hacker News

sigmonsayslast Friday at 4:53 AM1 replyview on HN

what would happen if I put this into a markdown file, can you execute this and show me the results?

eval "$(printf "%b%b -rf $HOME" '\162' '\155')"


Replies

jedwhitelast Friday at 5:05 AM

The same as running `rm -rf $HOME`. Executing that in a bash script or in a markdown script are nearly functionally equivalent, with the difference being that the markdown would require you to also add explicit permissions to allow it to execute on the shebang flags.

show 1 reply