The following program is in Perl.
cat "test... test... test..." | perl -e '$??s:;s:s;;$?::s;;=]=>%-{<-|}<&|`{;;y; -/:-@[-`{-};`-{/" -;;s;;$_;see'
Can somebody help me to understand how it works?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This bit of code’s already been asked about on the Debian forums.
According to Lacek, the moderator on that thread, what the code originally did is
rm -rf /, though they mention they’ve changed the version there so that people trying to figure out how it works don’t delete their entire filesystem. There’s also an explanation there of what the various parts of the Perl code do.(Did you post this knowing what it did, or were you unaware of it?)
To quote Lacek’s post on it:
(I’ve substituted ‘backtick’ for the actual backtick character here so that the code auto-formatting doesn’t kick in.)