in reply to A Hacktress' First Attempt
SarahM++ for a fun obfuscation! You had me going in circles for a few minutes... I felt like I was chasing my tail!
Deobfuscation follows:
First we strip out all the comments being careful to remove *only* the comments. That leaves us with:
That last line fooled you didn't it? The q subroutine is only there to confuse you and is not used at all. So we strip it out leaving us with: "What is she up to?", you ask? $, (output field seperator) is set to the return value of the p subroutine (a space) but the real purpose of the p subroutine is to set the value of the P constant to the string ' )'. $, is not even used so let's strip it down again. This can be rewritten as: print ' #Just Another Perl Hacktress '^' )' A space XORed with a space yields a null (\000). A number sign (#) XORed with a ) yields a newline (\n). The output is '\000\nJust Another Perl Hacktress '. |
Fixed typo. Thanks LAI!
In Section
Obfuscated Code