OS:Windows 2000 Professional Perl:ActivePerl 5.8 C compiler:MS Visual C++ 6.0 Location:C:\pgg\ download:http://www.chinaperl.org/perlfans/pgg/download/p_cc.ple equal:perl -e encode
c:\pGG\bin>type oldcc.pl use MD5; my $md=new MD5; my $gh=MD5->hexhash("p_cc"); print $gh; c:\pGG\bin>oldcc.pl 03742820f50fb5d9d5ab876d0231eb20 c:\pGG\bin>perlcc oldcc.pl ###Error!!! ____________________________________________________________________ ###Now,try p_cc.pl. c:\pGG\bin>p_cc.pl c:\pGG\bin>type newcc.pl eval eval '"'. ('['^'.').('['^'(').('`'|'%').('{'^'[').('`'^'-').('`'^'$').('^'^('`'| +'+')).';'. ('!'^'+').('`'|'-').('['^'"').('{'^'[').'\\'.'$'.('`'|'-').('`'|'$').' +='.('`'|'. ').('`'|'%').('['^',').('{'^'[').('`'^'-').('`'^'$').('^'^('`'|'+')).' +;'.('!'^'+ ').('`'|'-').('['^'"').('{'^'[').'\\'.'$'.('`'|"'").('`'|'(').'='.('`' +^'-').('`' ^'$').('^'^('`'|'+')).'-'.'>'.('`'|'(').('`'|'%').('['^'#').('`'|'('). +('`'|'!'). ('['^'(').('`'|'(').'('.'\\'.'"'.('['^'+').'_'.('`'|'#').('`'|'#').'\\ +'.'"'.')'. ';'.('!'^'+').('['^'+').('['^')').('`'|')').('`'|'.').('['^'/').('{'^' +[').'\\'.' $'.('`'|"'").('`'|'(').';'.'"' c:\pGG\bin>perlcc newcc.pl pcccj8V3.c pcccj8V3.c(346) : warning C4101: 'targ' : unreferenced local variable pcccj8V3.c(1462) : warning C4101: 'targ' : unreferenced local variable c:\pGG\bin>a.exe 03742820f50fb5d9d5ab876d0231eb20 c:\pGG\bin> #################################################################### # p_cc.pl # #################################################################### #!c:/pgg/bin/perl.exe -w use strict; ##### Name: p_cc.pl ##### Version: 0.0.1.0 ##### Author: pGG ##### Contact: y6cme@sohu.com ##### Licence: The license of Perl ##### Updated: 2003-2-3 my $one=shift||'oldcc.pl'; my $two=shift||'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^'*')Z,q Z('{'^')')Z,q Z('{'^'(')Z, q Z('{'^'/')Z,q Z('{'^'.')Z,q Z('{'^'-')Z,q Z('{'^',')Z, q Z('{'^'#')Z,q Z('{'^'"')Z,q Z('{'^'!')Z,q Z'['Z, q Z'\\\\'.'\\\\'Z,q Z']'Z,q Z'^'Z,q Z'_'Z, q Z'`'Z,q Z('`'|'!')Z,q Z('`'|'"')Z,q Z('`'|'#')Z, q Z('`'|'$')Z,q Z('`'|'%')Z,q Z('`'|'&')Z,q Z('`'|"'")Z, q Z('`'|'(')Z,q Z('`'|')')Z,q Z('`'|'*')Z,q Z('`'|'+')Z, q Z('`'|',')Z,q Z('`'|'-')Z,q Z('`'|'.')Z,q Z('`'|'/')Z, q Z('['^'+')Z,q Z('['^'*')Z,q Z('['^')')Z,q Z('['^'(')Z, q Z('['^'/')Z,q Z('['^'.')Z,q Z('['^'-')Z,q Z('['^',')Z, q Z('['^'#')Z,q Z('['^'"')Z,q Z('['^'!')Z,q Z'\\\\'.'{'Z, q Z'|'Z,q Z'\\\\'.'}'Z,q Z'~'Z,q Z('!'^'^')Z ); push @C,map{join '.',q#'\\\\'#,$C[120],map($C[$_],unpack('C*',sprintf( +'%x',$_)))}128..255; my @D=map{chr()}0..255; my $gh="eval eval \'\"\'\."; my $mm="\'\"\'"; my @cd; for(0..255){ push(@cd,$D[$_],$C[$_]); } my %CD=@cd; open(OLD,"$one") or die "$!"; open(NEW,">$two") or die "$!"; my @array; while(<OLD>){ push(@array,$_); } my $vov=join("",@array); my $len=length($vov); print NEW "$gh\n\n\n"; for(0..$len-1){ my $str=substr($vov,$_,1); print NEW "$CD{$str}\."; } print NEW $mm; close OLD; close NEW; #enjoy it
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: p_cc.pl
by pGG (Initiate) on Feb 08, 2003 at 11:53 UTC | |
by pGG (Initiate) on Feb 09, 2003 at 09:50 UTC |