-
Notifications
You must be signed in to change notification settings - Fork 8
/
TESTEXE.PAS
47 lines (42 loc) · 1.01 KB
/
TESTEXE.PAS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
{$A+,B-,D+,E-,F-,G+,I-,L+,N-,O-,P-,Q-,R-,S+,T-,V+,X+,Y+}
{$M 16384,0,0}
Program TextExe;
Uses
Crt,
ExeUtil;
Const
OrgSize = 9328;
PakSize = 6829;
Var
F : File;
Begin
Clrscr;
Assign (F, ParamStr(0));
Reset (F, 1);
WriteTitleText(3);
TextColor(White);
WriteLn;
WriteLn ('File size');
WriteLn ('ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ');
WriteLn ('Original : ', OrgSize);
WriteLn ('Packed : ', PakSize);
WriteLn ('This one : ', FileSize(F));
WriteLn;
TextColor(Green);
Write ('So what you can see is : ');
TextColor(LightRed);
If FileSize (F) > PakSize Then
Begin
WriteLn ('I''m NOT packed any more!');
WriteLn;
If FileSize (F) > OrgSize Then Begin
TextColor (Cyan);
WriteLn ('But my file size is greater than the original one. This is because I have');
WriteLn ('some ''dead code'' in me, which usually is parts of the unpacker function.');
End
End
Else
WriteLn ('I''m still packed !');
LastInitText;
Close (F);
End.