FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour ¿Qué tan seguro es un .EXE Harbour?
Posts: 851
Joined: Sun Nov 09, 2014 05:01 PM
¿Qué tan seguro es un .EXE Harbour?
Posted: Mon Nov 21, 2022 04:18 PM

Hola a todos, amigos...

Solo por curiosidad; ¿qué tan seguro es un .exe compilado con harbour + BCC ?

Suponiendo que se deje dentro del codigo fuente algun dato sensible, como variable char, por ejemplo el usuario y clave de conexion a mysql.

cUser:="xxx"

Passw:="yyyy"

¿Hay posibilidad que de alguna manera alguien pueda verlo? Con un editor de ejecutables, por ejemplo, o de otra manera.

Gracias.

"Los errores en programación, siempre están entre la silla y el teclado..."



Fwh 19.06 32 bits + Harbour 3.2 + Borland 7.4 + MariaDB + TDolphin



Carora, Estado Lara, Venezuela.
Posts: 8515
Joined: Tue Dec 20, 2005 07:36 PM
Re: ¿Qué tan seguro es un .EXE Harbour?
Posted: Mon Nov 21, 2022 05:53 PM
holá my dear. Se usas:

https://bitsum.com/portfolio/pecompact/

No és posible nada. Super seguro.

Regards, saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 1710
Joined: Tue Oct 28, 2008 06:26 PM
Re: ¿Qué tan seguro es un .EXE Harbour?
Posted: Mon Nov 21, 2022 06:05 PM
Saludos,



Adhemar C.
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: ¿Qué tan seguro es un .EXE Harbour?
Posted: Mon Nov 21, 2022 07:01 PM
JoseAlvarez wrote:Hola a todos, amigos...

Solo por curiosidad; ¿qué tan seguro es un .exe compilado con harbour + BCC ?

Suponiendo que se deje dentro del codigo fuente algun dato sensible, como variable char, por ejemplo el usuario y clave de conexion a mysql.

cUser:="xxx"
Passw:="yyyy"

¿Hay posibilidad que de alguna manera alguien pueda verlo? Con un editor de ejecutables, por ejemplo, o de otra manera.

Gracias.
Prueba lo siguiente, bien al principio y al final de tu prg o en las zonas donde consideres que tienes constantes o datos sensibles y prueba
Code (fw): Select all Collapse
#pragma TEXTHIDDEN( 1 )

.../...

#pragma TEXTHIDDEN( 0 )
Tampoco es mala idea adicional usar un compresor de EXEs ( UPX por ejemplo ), pero mi experiencia es que estos compresores me han producido que algunas veces los .EXEs sean detectados por los antivirus como que contienen "código maligno".
Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo

El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 8515
Joined: Tue Dec 20, 2005 07:36 PM
Re: ¿Qué tan seguro es un .EXE Harbour?
Posted: Mon Nov 21, 2022 07:57 PM

Maestro Navarro, no si usa PECOMPACT. Firma el ejecutable o si es un antivirus muy molesto o malo, simplemente ponga el .EXE en las excepciones.

No recomiendo UPX.exe en absoluto.

Regards, saludos.

João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: ¿Qué tan seguro es un .EXE Harbour?
Posted: Tue Nov 22, 2022 08:57 AM
karinha wrote:Maestro Navarro, no si usa PECOMPACT. Firma el ejecutable o si es un antivirus muy molesto o malo, simplemente ponga el .EXE en las excepciones.

No recomiendo UPX.exe en absoluto.
Why not? It wotks perfectly. PECOMPACT is a dead project.
Posts: 8515
Joined: Tue Dec 20, 2005 07:36 PM
Re: ¿Qué tan seguro es un .EXE Harbour?
Posted: Tue Nov 22, 2022 12:46 PM
Enrico Maria Giordano wrote:
Maestro Navarro, no si usa PECOMPACT. Firma el ejecutable o si es un antivirus muy molesto o malo, simplemente ponga el .EXE en las excepciones.

No recomiendo UPX.exe en absoluto.
Why not? It wotks perfectly. PECOMPACT is a dead project.
Good morning Master Enrico. When I used UPX.exe, I had many problems with several anti-viruses, which would not let the .EXE run, or simply send it to quarantine. We stopped using it and started using PECOMPACT, we never had any problems again. It may be that today there is a new version of it that works well, I don't know.

Buenos días Maestro Enrico. Cuando usaba UPX.exe, tenía muchos problemas con varios antivirus, que no dejaban ejecutar el .EXE o simplemente lo enviaban a cuarentena. Dejamos de usarlo y comenzamos a usar PECOMPACT, nunca más tuvimos problemas. Puede ser que hoy haya una nueva versión que funcione bien, no lo sé.

I really didn't like UPX.exe. More is my personal taste.

Realmente no me gustó UPX.exe. Más es mi gusto personal.

Regards, saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: ¿Qué tan seguro es un .EXE Harbour?
Posted: Tue Nov 22, 2022 01:00 PM
karinha wrote:Good morning Master Enrico. When I used UPX.exe, I had many problems with several anti-viruses, which would not let the .EXE run, or simply send it to quarantine. We stopped using it and started using PECOMPACT, we never had any problems again. It may be that today there is a new version of it that works well, I don't know.
I tried PECOMPACT recently and found the very same problem with the antiviruses (but keep in mind that this is a problem with the antiviruses not with the compressors). And, as I said, PECOMPACT is a dead project. And UPX, with the --lzma option, compresses more than PECOMPACT.

I don't see any reason to use PECOMPACT instead of UPX.
Posts: 8515
Joined: Tue Dec 20, 2005 07:36 PM
Re: ¿Qué tan seguro es un .EXE Harbour?
Posted: Tue Nov 22, 2022 01:14 PM
Enrico Maria Giordano wrote:
Good morning Master Enrico. When I used UPX.exe, I had many problems with several anti-viruses, which would not let the .EXE run, or simply send it to quarantine. We stopped using it and started using PECOMPACT, we never had any problems again. It may be that today there is a new version of it that works well, I don't know.
I tried PECOMPACT recently and found the very same problem with the antiviruses (but keep in mind that this is a problem with the antiviruses not with the compressors). And, as I said, PECOMPACT is a dead project. And UPX, with the --lzma option, compresses more than PECOMPACT.

I don't see any reason to use PECOMPACT instead of UPX.
Master Enrico, I respect your opinion. Mine is that PECOMPACT even in older versions is much safer than UPX.exe. Only my opinion. I'm very happy with it, and I won't go back to UPX.exe at all. hahahahahaha.

Maestro Enrico, respeto su opinión. La mía es que PECOMPACT incluso en versiones anteriores es mucho más seguro que UPX.exe. Solo mi opinión. Estoy muy contento con él y no volveré a UPX.exe en absoluto. jajajajajaja

Regards, saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 8515
Joined: Tue Dec 20, 2005 07:36 PM
Re: ¿Qué tan seguro es un .EXE Harbour?
Posted: Tue Nov 22, 2022 01:24 PM
Master Enrico, how did you compact your .EXE using PECOMPACT, like this?

Maestro Enrico, ¿cómo compactaste tu .EXE usando PECOMPACT, así?
Code (fw): Select all Collapse
C:\PECOMPACT\PEC2 /NB /EMP:Y /TM:Y /CR:Y /MC MYPROGRAM.Exe
Regards, saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: ¿Qué tan seguro es un .EXE Harbour?
Posted: Tue Nov 22, 2022 03:13 PM
karinha wrote:Master Enrico, I respect your opinion. Mine is that PECOMPACT even in older versions is much safer than UPX.exe.
What do you mean with "much safer". Much safer in what?
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: ¿Qué tan seguro es un .EXE Harbour?
Posted: Tue Nov 22, 2022 03:22 PM
karinha wrote:Master Enrico, how did you compact your .EXE using PECOMPACT, like this?

Maestro Enrico, ¿cómo compactaste tu .EXE usando PECOMPACT, así?
Code (fw): Select all Collapse
C:\PECOMPACT\PEC2 /NB /EMP:Y /TM:Y /CR:Y /MC MYPROGRAM.Exe
I don't remember but I wish to repeat the test. As the first thing, please give me the url of the correct PECOMPACT website.
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: ¿Qué tan seguro es un .EXE Harbour?
Posted: Tue Nov 22, 2022 04:01 PM

João, thank you for the file but I just discovered that PECOMPACT is not free! So I'm not interested in it at all, sorry.

Posts: 8515
Joined: Tue Dec 20, 2005 07:36 PM
Re: ¿Qué tan seguro es un .EXE Harbour?
Posted: Tue Nov 22, 2022 04:58 PM

OK master. it was just for you to test.

Regards, saludos.

João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: ¿Qué tan seguro es un .EXE Harbour?
Posted: Tue Nov 22, 2022 05:30 PM

Thank you, but I'm not interested in testing a pay product.

Continue the discussion