-
Notifications
You must be signed in to change notification settings - Fork 23
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 when not debugger attached to a process #10
Comments
But in general, other places in the code will throw an error if you don't have something being debugged. Like |
can't we just fully block all mona commands if |
I guess some commands should be able to run without a running executable, such as cyclic pattern or assemble. |
Yeah true, perhaps add a bool in command registration whether the command
can be run while not debugging (similar to x64dbg commands)?
…On Fri, 8 Dec 2017 at 23:02, Ray Wang ***@***.***> wrote:
I guess some commands should be able to run without an attached process,
such as cyclic pattern or assemble.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#10 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACWCmTBSLUb2LlAWgmwYKD0NL0jvgSsqks5s-bIDgaJpZM4Qz8Wa>
.
|
Cheers - the fix looks good to me! I agree adding a flag to command registration would be a good idea - just wondering though what the aim is here re. merging back to upstream mona? As in, is the plan eventually to close the x64dbg fork of mona once it's all working, and in that case, is Peter going to accept API changes like that? |
I don’t think mona is actually being actively developed anymore but the
changes aren’t too invasive, only improvements.
…On Fri, 8 Dec 2017 at 23:45, Ben Cheney ***@***.***> wrote:
Cheers - the fix looks good to me!
I agree adding a flag to command registration would be a good idea - just
wondering though what the aim is here re. merging back to upstream mona? As
in, is the plan eventually to close the x64dbg fork of mona once it's all
working, and in that case, is Peter going to accept API changes like that?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#10 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACWCmQUY2O2uwuZRI7sKZxl3SVr4P8buks5s-bvSgaJpZM4Qz8Wa>
.
|
I'm not in a hurry to get this merged upstream any time soon — I'm all for making whatever changes we need for x64dbg without worrying what happens with Immunity/WinDBG. The Immunity and WinDBG backends are rather different, anyways. |
Hi,
First of all, thanks so much for working on mona support for x64dbg - awesome job!
I got mona up and running successfully in x64dbg, and one of the first commands I tried was
pc
:The root cause here seems to be that there was nothing being debugged at the time, and so the pointer returned by
getPEBInfo
is garbage (which is then used to try and get the name of the process being debugged). I had a bit of a dig around to try and make a fix for this but was a bit unsure how to proceed - ideally I thought there might be a flag to check inx64dbgpylib.Debugger
as to whether the debugger is attached to something, but I coudn't see anything (I may just have missed it!)I also checked
getDebuggedPid
, which did return a value which I assume is also garbage. I noticed that the equivalent code in windbglib didn't have any extra checks, so I assume that the backend there behaves differently in this case?Cheers,
Ben
The text was updated successfully, but these errors were encountered: