Subject: | B::Deobfuscate does not distinguish internal numeric Perl variables |
Date: | Thu, 11 Jan 2007 16:56:08 -0600 |
To: | bug-B-Deobfuscate [...] rt.cpan.org |
From: | Julián Esteves <jesteves [...] janium.com> |
Hi again Josh.
As an example of what I stated in the subject, look at this little
program (sorry if I'm a little verbose):
my $str = "hello";
$str =~ m/h(.+)/;
my $str2 = $1;
print "str2 ->$str2<-\n";
That should, of course, only print
str2 ->ello<-
But, when ran through B::Deobfuscate:
perl -MO=Deobfuscate t.pl | perl
prints
str2 -><-
That is because $1 gets mangled:
my $Low = 'hello';
$Low =~ /h(.+)/;
my $Cous = $SacramentoMountainsPricklyPoppy;
print "str2 ->$Cous<-\n";
Hope not, but I'd suspect that maybe other Perl non-numeric variables
get mangled.
Regards.
Julián