EXE base64 com 4MB
Enviado: 29 Out 2024 10:36
Estou querendo deixar o EXE abaixo de 4MB em base64.
Alguma idéia do que podemos remover do fivewin ?
Alguma idéia do que podemos remover do fivewin ?
Código: Selecionar todos
/LARGEADDRESSAWARE
ou:
-GF:LARGEADDRESSAWARE
Código: Selecionar todos
C:\PECOMPACT\PEC2 /NB /EMP:Y /TM:Y /CR:Y /MC WINORCAM.Exe
Ou:
C:\UPX4\UPX.EXE --lzma WINORCAM.exe
Código: Selecionar todos
29/10/2024 17:51 3.464.696 jpa.exe
29/10/2024 17:53 3.324.408 jpa.exe
Código: Selecionar todos
Sem compactar com o PECOMPACT.exe
24.537.088 PLENOINDW.exe
Com Compactação usando o PECOMPACT.exe
10.215.424 PLENOINDW.exe
Vantagem 2, programa fica protegido contra invasão.
Código: Selecionar todos
d:\fontes\integra>upx -d jpa.exe
Ultimate Packer for eXecutables
Copyright (C) 1996 - 2024
UPX 4.2.4 Markus Oberhumer, Laszlo Molnar & John Reiser May 9th 2024
File size Ratio Format Name
-------------------- ------ ----------- -----------
12267512 <- 3636728 29.65% win32/pe jpa.exe
Unpacked 1 file.
d:\fontes\integra>upx --lzma jpa.exe
Ultimate Packer for eXecutables
Copyright (C) 1996 - 2024
UPX 4.2.4 Markus Oberhumer, Laszlo Molnar & John Reiser May 9th 2024
File size Ratio Format Name
-------------------- ------ ----------- -----------
12267512 -> 3032568 24.72% win32/pe jpa.exe
Código: Selecionar todos
FUNCTION Main(...)
LOCAL aParams, Item, cFile := ""
aParams := hb_AParams()
FOR EACH Item IN aParams
IF ".exe" $ Lower( Item )
cFile := Lower( Item )
EXIT
ENDIF
NEXT
IF ! Empty( cFile )
RUN ( "UPX_EXE.EXE --lzma " + cFile )
ENDIF
RETURN Nil
c
d:\fontes\build\build.exe
HBMK2 JPA.HBP -w3 -es2 -m -n -strip -compr -workdir=c:\temp -q -Id:\fontes\build\
hbmk2: Processing environment options: -comp=mingw
hbmk2: Processing configuration: d:\harbour\bin\hbmk.hbc
hbmk2: Triggered by #require directive: hbziparc.hbc
hbmk2: Triggered by #require directive: hbtip.hbc
Harbour 3.2.0dev (r2410180556)
Copyright (c) 1999-2024, https://harbour.github.io/
Ultimate Packer for eXecutables
Copyright (C) 1996 - 2024
UPX 4.2.4 Markus Oberhumer, Laszlo Molnar & John Reiser May 9th 2024
File size Ratio Format Name
-------------------- ------ ----------- -----------
11642368 -> 2872320 24.67% win32/pe jpa.exe
Packed 1 file.
if exist jpa.exe call assina.bat jpa.exe
For %a in (jpa.exe) do call \tools\signtool\assina %a
call \tools\signtool\assina jpa.exe
Done Adding Additional Store