PDA

View Full Version : Few EXE module issues



Petr Schreiber
15-12-2008, 17:31
Hi Roberto,

Issue 1
When I try to run RecurseExeSubsystem.tBasic from SampleScripts, I get run-time error telling me that EXE_PE_GETSUBSYSTEM is not defined. Did it become obsolete?

Issue 2(?)
When I use EXE_PE_Is32, EXE_PE_Is64 or EXE_PE_IsUPX for "c:\windows\system32\append.exe", it produces messagebox on attached picture.

Do you think it would be possible to handle incorrect input in other way than with msgbox? When I run script which tries to analyze whole drive, I don't want my script to "hang" on msgbox which I must confirm.

Maybe those functions should simply return %FALSE in such a cases - I think it would not mean problem, corrupted/wrong EXE really is not 32bit/64bit/UPX one.

I know Xmas are approaching, so I don't want you to fix this right now, just wanted to let you know.


Petr

RobertoBianchi
16-12-2008, 14:16
Hi Petr,

Issue 1 Sorry I forgot it.

Issue 2 Added EXE_EnableException() and EXE_DisableException() for change the behaviour, both two function return the new state for exception.

Please find the attached file that holds fixes for both issues.

Thank you very much and best regards,
Roberto

Petr Schreiber
16-12-2008, 16:11
Hi Roberto,

thanks a lot for such a fast correction!
Exceptions are interesting way to handle incorrect input.