Process
Install Interpreter/compiler-test source code feasibility-create icon-compile program-shelling
Required tools
Perl interpreter: ActivePerl
PDK Development Kit: ActiveState Perl Dev Kit
Icon Editor: http://demonalex.3322.org/download/development/pic2icon.rar
Beidou shelling tool: http://demonalex.3322.org/download/development/Nspack3.7.rar
Tool used for testing
Peid shell viewing tool: http://demonalex.3322.org/download/development/peid.rar
Install perl interpreter and Compiler
Note the order, first install the ActivePerl-5.8.7.815, and then install the PDK development kit. Why should I select this version for ActivePerl?
I downloaded the latest interpreter from the official website and found that the usage of ppm is different from that of the original one. Therefore, I highly recommend using the original version. After installation
After:
C: \> path
Path = c: \ Program Files \ ActiveState Perl Dev Kit 6.0 \ bin \; C: \ Perl \ bin \; C: \ winnt \ SY
Stem32; C: \ WINNT; C: \ winnt \ system32 \ WBEM; C: \ Program Files \ securecrt \; C: \ Program fi
Les \ support tools \; E: \ USR \ bin; E: \ Program Files \ netiq \ chariot
Note the underline Of the output content of path. The first is the path of the PDK, and the second is the path of the perl interpreter.
Test the feasibility of source code
Test feasibility this step is mainly to determine whether the program has any errors and ensure that the packages used by the program have been 'pooled '. First, in the source
The identifier '#! Add the '-W' parameter after/bin/perl' to check that the program has no syntax error. Next, confirm the program we want to compile.
If all the packages are 'pooled together ', use perlapp to compile the package once and check for the error:
------------------------------------
C: \> perlapp-F gzpia_special.pl
Perlapp 6.0.2 build 203380
Copyright (c) 1998-2005 ActiveState Corp. All rights reserved.
ActiveState is a division of Sophos PLC.
Commercial License for name <demonalex@hackermail.com> 〉
Can't locate DBI. PM in @ INC (@ INC contains: C:/program files/ActiveState Perl de
V kit 6.0/lib/C:/perl/lib C:/perl/site/lib. C:/perl/lib C:/perl/site/lib.)
Gzpia_special.pl line 3.
Begin failed -- Compilation aborted at gzpia_special.pl line 3.
'Gzpia _ special. pl 'had compilation errors.
------------------------------------
The database DBI is missing. Enter ppm in cmd to enter the PPM command mode, enter 'Install dbi', and compile again after installation:
++
C: \> perlapp-F gzpia_special.pl
Perlapp 6.0.2 build 203380
Copyright (c) 1998-2005 ActiveState Corp. All rights reserved.
ActiveState is a division of Sophos PLC.
Commercial License for name <demonalex@hackermail.com> 〉
Mldbm. PM:
Error: can't locate mldbm. PM
Refby: C: \ Perl \ site \ Lib \ DBD \ dBm. PM line 323
SQL \ statement. PM:
Error: can't locate SQL \ statement. PM
Refby: C: \ Perl \ site \ Lib \ DBI \ SQL \ Nano. PM line 27
Created 'gzpia_special.exe'
++
The system prompts that the mldbm and SQL-statement packages are missing, and the system enters the PPM command mode again.
Ll SQL-statement 'and 'exit' exit the PPM command and re-compile it once:
************************************
C: \> perlapp-F gzpia_special.pl
Perlapp 6.0.2 build 203380
Copyright (c) 1998-2005 ActiveState Corp. All rights reserved.
ActiveState is a division of Sophos PLC.
Commercial License for name <demonalex@hackermail.com> 〉
Created 'gzpia_special.exe'
************************************
Check whether the source code is correct, and all the packages are in the same format. Delete gzpia_special.exe, because the icon of the current EXE file has not been obtained.
Okay, hey.
Generate icon
Open the icon editor -- pic2icon green cracked version:
Click the "load icon" button and find the image you want to use in the pop-up file selection dialog box...
Set the length and width of the image to 32, "OK "...
Select "yes" and return to the main interface of pic2icon. Click "Save icon "...
In the "Save as" dialog box, select the path for saving the icon file, click "save", and exit the pic2icon program. The icon generation process is complete.
Compile the program
Re-compile once, but you need to add "-- icon file path ":
------------------------------------
C: \> perlapp-f -- icon c: \ compile Perl \ gzpia. ICO gzpia_special.pl
Perlapp 6.0.2 build 203380
Copyright (c) 1998-2005 ActiveState Corp. All rights reserved.
ActiveState is a division of Sophos PLC.
Commercial License for name <demonalex@hackermail.com> 〉
Created 'gzpia_special.exe'
------------------------------------
Shelling
The reason why we chose to use the Beidou shell is that it is easier to operate :). Open peid and check the program we compile now:
Hey, it shows the program compiled by vc6.0: P. Open the Beidou shelling program:
Click the OPEN button in the lower-right corner of the main interface. In the pop-up file selection dialog box, select the compiled exe program in the above operation, and then
Click the "open" button... to return to the Beidou main interface, click the "compression" button in the lower left corner...
Hey hey, I got it done. Exit the Beidou shelling program. Now let's take a look at it with peid: