Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception handling #19

Open
funkdubi opened this issue Dec 15, 2020 · 1 comment
Open

Exception handling #19

funkdubi opened this issue Dec 15, 2020 · 1 comment

Comments

@funkdubi
Copy link

Hey, I'm using your library to load a test compiled DLL as shellcode. To load I'm using the Native loader. everything was compiled using v141 toolset in VS2017.
The function does something simple and just echoes back a formatted string to OutputDebugString. Inside the function I've added a throw of std::exception and I'm not catching it in the respective catch clause or any other catch clause other than the ellipsis catch handler. The compiled code and shellcode are all x64 and it runs well aside from exception handling, which I saw the shellcode adds via a call to RtlAddFunctionTable.
Would love to hear what is done wrong in trying to catch the exception. Whether I need to add a hack to parse the exception structure or something the shellcode RDI needs to do to be able to handle specific exceptions.

@monoxgas
Copy link
Owner

monoxgas commented Jun 9, 2021

Thanks for reporting, this could be related to #21 as well.

Off the top of my head: I know there are a few different exception handling modes you can compile with (Eh* flags?)

I don't have a ton of bandwidth (obviously given the late response), but I'll find some time to look at both of these. If you figure anything else out, feel free to add.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants