10-15-2003, 07:26 AM | #2 (permalink) |
Darth Papa
Location: Yonder
|
Here's the above, but kicked up a little bit. I put it on three lines for *koff* readability....
I call this one "Fun with tr/// Part II: Around your Ass to Get to your Elbow". Just LOOKIT that line noise in line #2! <code>$s='Lvtu Copuifs Rfsm Jbdlfs'; print "${\&t($s)}\n"; sub t{$x=shift;$x=~tr/[b-zB-Z]/[a-zA-Z]/;return($x)}</code> |
10-15-2003, 07:32 AM | #3 (permalink) |
Darth Papa
Location: Yonder
|
And here's "In Reverse Around your Ass..."
<code>sub t{$x=shift;$x=~tr/[b-zB-Z]/[a-zA-Z]/;return($x)} sub r{$b=shift;@b=split('',$b);foreach $l(@b){unshift @o,${\t($l)}};$o=join('',@o)} $b='sfldbJ msfR sfiupoC utvL'; print "${\r($b)}\n";</code> Okay, now what 'choo got??? Last edited by ratbastid; 10-15-2003 at 07:35 AM.. |
10-15-2003, 10:21 PM | #8 (permalink) |
Huggles, sir?
Location: Seattle
|
Yeah, perl is great, but it always makes me wince when I see code like that.
__________________
seretogis - sieg heil perfect little dream the kind that hurts the most, forgot how it feels well almost no one to blame always the same, open my eyes wake up in flames |
10-15-2003, 10:32 PM | #9 (permalink) |
The GrandDaddy of them all!
Location: Austin, TX
|
i dont get it at all.
wait...i barely know perl . i see that you are assigning something to a string and then outputting it in the end. that's 'bout all i get >
__________________
"Luck is what happens when preparation meets opportunity." - Darrel K Royal |
10-18-2003, 09:15 AM | #13 (permalink) |
Über-Rookie
Location: No longer, D.C
|
i love that site I dont know enough perl to truly begin to read obfuscated code, although the perlmonks website is a great resource for obfuscated perl, but it just makes me shudder to look at it
at least with obfuscated c, i can still read it
__________________
"All that we can do is just survive. .All that we can do to help ourselves is stay alive." - Rush |
10-19-2003, 02:00 AM | #14 (permalink) |
In Your Dreams
Location: City of Lights
|
Here's a couple that I've done:
$line =~ s/\\/\\\\/g; # Replaces "\" with "\\" $line =~ s/'/\\\'/g; # Replaces "'" with "\'" $line =~ s/\//\\/g; # Replaces "/" with "\" Now, nothing like above.. but I was still proud of my little work. I'm not a guru yet |
Tags |
obbbbbfuscation, perl |
|
|