A first (published) attempt at this sort of thing. Really an excessive amount of code. But it's probably not really well obfuscated.
#!/usr/bin/perl -w package DB;our $sub='main::er';sub BEGIN{$^P=1 unless$sub; $^P or $_="Not just another perl hack"}sub sub(hack){print $sub =~ /([^:]+)$/, $", or &$sub} *hacker = \⊂ package main;sub er {print ",\n"}sub just {for(split' '=>`perldoc` ){print $1 if /(\w{4})\d\w/;}}sub hack {print "hacker"}sub another { seek DATA, 0, 0;print +(/(\w{6})\W/)?$1:'' while <DATA>;DB::hacker();}sub perl { print }$_ and print "$_\n" ;foreach (qw{just another perl hack}) {$_->();}print "\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: an attempt at misdirection
by tachyon (Chancellor) on May 27, 2001 at 15:38 UTC | |
|
Re: an attempt at misdirection
by srawls (Friar) on May 27, 2001 at 18:08 UTC | |
by wog (Curate) on May 27, 2001 at 18:26 UTC | |
by tachyon (Chancellor) on May 27, 2001 at 20:56 UTC |