Jump to content
Tuts 4 You

Programmatically (using scripting) set ignored exceptions


Luca91

Recommended Posts

Posted (edited)

Hello,

I'd like to know if it's possible to programmatically configure the debugger to ignore execptions.

What I'd like to achieve is this configuration:

spacer.png

I couldn't find any script cmds to configure this aspect of the debugger. 

Is this even possible?

Thanks a lot,

Luca

Edited by Luca91
Posted (edited)

Can you explain more? do you want to add exceptions?

you can do it manually.

Edited by X0rby
  • Thanks 1
Posted
4 minutes ago, X0rby said:

Can you explain more? do you want to add exceptions?

you can do it manually.

Hi @X0rby thank you for your reply.

That's the point, I don't wan't to add them manually, but instead I'd like to know is there is any way (programmatically) to configure the debugger to ignore such range of exceptions.

I have written some scripts (OEP finders) that relies on the fact that exceptions are ingored, that's why I'm interested in this: in order to have a 100% automatic unpacking script 😝

Posted

It depends if debugger plugin API  has such a feature... (I doubt)

but I"ve got another crazy idea..

you could try to update the debugger ini file and set options you need, eg:

 

[Ignored exceptions]
Range[0]=0 ffffffff
 

Ignore illegal instructions=1
Ignore all FPU exceptions=1
Ignore all service exceptions=1
Ignore custom exception ranges=1
Call UnhandledExceptionFilter=0
Report ignored exceptions to log=1
 

 

etc

 

 

  • Like 1
Posted (edited)
11 minutes ago, jackyjask said:

It depends if debugger plugin API  has such a feature... (I doubt)

but I"ve got another crazy idea..

you could try to update the debugger ini file and set options you need, eg:

 

[Ignored exceptions]
Range[0]=0 ffffffff
 

Ignore illegal instructions=1
Ignore all FPU exceptions=1
Ignore all service exceptions=1
Ignore custom exception ranges=1
Call UnhandledExceptionFilter=0
Report ignored exceptions to log=1
 

 

etc

 

 

That's a crazy idea but a cool one to be honest! Anyway I'm looking for a programmatically way to achieve this, but within the script context!

Edited by Luca91
Posted

Hopefully, this is helpful

Snipaste_2023-05-12_16-17-30.png

Snipaste_2023-05-12_16-17-34.png

Posted
10 hours ago, minh said:

Hopefully, this is helpful

Snipaste_2023-05-12_16-17-30.png

Snipaste_2023-05-12_16-17-34.png

Hi @minh thanks for your reply, but I was looking for a way to do this from the script context (not from a plugin).

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...