-
Notifications
You must be signed in to change notification settings - Fork 117
Improve injection error reporting #74
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
Conversation
|
@dariushoule, if you have any feedback, I would be glad to ear them ! |
0f80427 to
98abd73
Compare
dariushoule
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hakril I tried this on the original machine I was having issues with and it dramatically cuts down ambiguity in troubleshooting. I think its a great improvement.
|
FYI: I have a work-in-progress pitch for you (branched off this MR) Before I get too far I wanted to get your thoughts on potentially expanding support for High-level:
Note we only apply these steps as a fallback if the original shellcode fails with an Obviously some drawbacks here as well, namely some noticeable latency and noisiness. Weighed against not working at all I'd still say its worth considering? 🧐 The branch also fixes more hard failures in the test suite than the PR I previously opened, accounting for the fact FWIW this unblocks my use case, which is using |
|
In my opinion, this approach is too intrusive to make it happen under the hood when someone only wants to execute Python. But I like that you could make it work and I am sure that your code may help other people with the same problem. Your change of I hope this solution will suit you. |
|
That's a reasonable take - it is not exactly a subtle approach and I agree there's something of a "consent" factor when making operations like that. I'd very much appreciate being able to add this as an example and documentation note. One benefit of showcasing it as a code sample is I could drop the If I'm following correctly then my current plan is:
Does this sounds good to you? |
|
Good for me ! |
After discussing injections error with
MsStore python(#72 #73). I have improved the error reporting when the injection fail with aInjectionFailedError().The new message contains the error code and error message of the
GetLastError()in case ofLoadLibraryfail.Exemple:
Return value of injection code on suspended process have also been fixed. (
perform_manual_getproc_loadlib_X).Truewas only returned when the module address was expected.Related tests have been added.