Replies: 4 comments 8 replies
-
|
Hey Colin, The answer is "Should" but I've said that before and been proven wrong. Am testing it out right now as I type. It sounds like you did everything correctly (points for working through the UI). The one detail I'm not sure of, assuming this is the first time you've connected to the target machine, it will be running when you connect, i.e. we don't force a break. If you select Session[0] in the Objects view and it is running, the pause button should be enabled. Commands in the Interpreter window won't work until the target is paused. Any chance this is the issue? |
Beta Was this translation helpful? Give feedback.
-
|
I think I need a few more details on what exactly you're trying, i.e. are you getting those error messages for every command or a specific command and are you executing the command that's triggering the errors from the Interpreter window or do you believe some action in the GUI is triggering them? Also, might help to know if you're connecting via the dbgeng connection or the dbgmodel connection and whether you're using the IN-VM connector or the GADP agent connection. Short answer, unfortunately, is I haven't seen those errors. We don't explicitly load those extension DLLs or the dbghelp.dll, but various functions in the kd command interface could easily trigger them. Just to be clear, when you get these errors are you attached to the kernel VM, as you were describing before, or trying to debug the system process locally using the normal attach commands? Assuming the latter, I could easily believe that, even if you start up Ghidra from an administrative cmd window or run it as administrator directly, the process that's doing the attach may not have the correct rights. Specifically, for the IN-VM case, I believe the ghidraRun script does not necessarily convey its rights to the actual Java process. I'll have to check on this, but I have a dim recollection of that being an issue. If you're running the GADP agent and spawning it from the Target view, it probably also will not have administrative privileges. One alternative is to spin up the agent directly as administrator and then connect to it using the "GADP connection over TCP" connection. I'm going to have to look/ask around though because I do not remember the command to invoke the agent as a standalone process. Might be obvious from a process list but....we should probably include that as an invokable script for just this scenario. |
Beta Was this translation helpful? Give feedback.
-
|
@colinsim1 Yeah, the download for Windbg Preview store things in a less-than-intuitive place. If I remember correctly, it ends up in %LocalAppData%\Microsoft\WindowsApps and you may have to play around with FileExplorer to get that to display. You don't need the GUI components for Ghidra, just the stuff in lib. |
Beta Was this translation helpful? Give feedback.
-
|
@colinsim1 I seem to have lost your last two comments (did you delete them?) - in any case, the modules list for the kernel modules in fact is incorrect. Have located the bug - will get it into the build soon. Thanks for pointing it out! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello! I have the latest DEV build but I can't seem to figure out how to do remote kernel debugging for a Windows 10 VM.
I have activated kernel debugging on the VM and I do seem to get a connection when I try "attach to a kernel" on my host.
I use the "-k" as a flag and fill in the options with "net:50000=port,key=encryption_key" and I get the welcome message:
Connected to target on port 50000 on local IP .
You can get the target MAC address by running .kdtargetmac command.
However any commands I enter don't generate a response. Is this currently unsupported?
Beta Was this translation helpful? Give feedback.
All reactions