• 01 December 2023 (1 messages)
  • @LockerBoss #5372 04:44 PM, 01 Dec 2023
    Joined.
  • 04 December 2023 (1 messages)
  • @100667468 #5373 05:47 AM, 04 Dec 2023
    Joined.
  • 05 December 2023 (1 messages)
  • @6749525487 #5374 06:49 AM, 05 Dec 2023
    Joined.
  • 06 December 2023 (2 messages)
  • @yy1mmbot #5375 12:24 PM, 06 Dec 2023
    Joined.
  • @yy1mmbot #5376 05:00 PM, 06 Dec 2023
    any plan run under AMD-SVM ?
  • 07 December 2023 (4 messages)
  • There is actually a project that a community member currently working on it, however, it is still in the early stages of development and far from completion.

    https://github.com/HyperDbg/RedDbg
    GitHub - HyperDbg/RedDbg: Hypervisor-based debugger for AMD processors

    Hypervisor-based debugger for AMD processors. Contribute to HyperDbg/RedDbg development by creating an account on GitHub.

  • @yy1mmbot ↶ Reply to #5377 #5378 03:34 AM, 07 Dec 2023
    tkx
  • @Nitr0_G ↶ Reply to #5376 #5379 06:40 AM, 07 Dec 2023
    The project that sina threw off is working, but there is no interface, but it is completely ready for tracing and using the type as DBI (denuvo and many other applications are quietly traced). I don't want to make a command interface and I'm making a GUI, and the GUI takes a very long time.
  • @yy1mmbot #5380 06:45 AM, 07 Dec 2023
    yes gui ned huge woks, thx for your effort
  • 08 December 2023 (4 messages)
  • @xmaple555 #5381 05:11 PM, 08 Dec 2023
    hi, does anyone know how to suspend a thread in vm-root mode?
  • @xmaple555 #5382 05:12 PM, 08 Dec 2023
    it seems like ntsuspend's IRQL is PASSIVE_LEVEL, so it is not able to use in vm-root mode
  • @Nitr0_G ↶ Reply to #5381 #5383 09:41 PM, 08 Dec 2023
    What do you need it for? Are there definitely no other solutions to this problem?
  • @Nitr0_G ↶ Reply to #5381 #5384 09:45 PM, 08 Dec 2023
    In theory, you can make a global variable or a bool array that says that you have reached the Thread Suspend condition/situation, and then in another thread that you initialized before entering VM ROOT mode, make a Thread Suspend. I kind of also when I needed to record a trace from a traceable application.
  • 09 December 2023 (20 messages)
  • @xmaple555 ↶ Reply to #5383 #5385 06:54 AM, 09 Dec 2023
    some commands will lose context , so I think maybe we can suspend the thread , and then resume the thread to restore the context
  • @xmaple555 #5386 06:56 AM, 09 Dec 2023
    maybe we don't increase the rip of the thread until the command like lm finishes ?
  • @Nitr0_G ↶ Reply to #5385 #5387 06:56 AM, 09 Dec 2023
    Did you ask about hyperdbg or specifically about hypervisors?
  • @xmaple555 ↶ Reply to #5387 #5388 06:57 AM, 09 Dec 2023
    hyperdbg
  • @Nitr0_G ↶ Reply to #5386 #5389 06:57 AM, 09 Dec 2023
    This is how the VMEXIT_EXCP_BP handler works
  • @Nitr0_G ↶ Reply to #5388 #5390 06:58 AM, 09 Dec 2023
    Ah, I get it now. I thought you were asking about the hypervisor in general -_-
  • @xmaple555 ↶ Reply to #5389 #5391 07:00 AM, 09 Dec 2023
    but some commands need to be executed in non vmx root mode, does it also work for the commands like lm ?
  • @Nitr0_G ↶ Reply to #5391 #5392 07:06 AM, 09 Dec 2023
    You need to ask sina, since I don't really use hyperdbg, since I have amd -_-

    https://github.com/HyperDbg/HyperDbg/blob/fac10fd8309bd40a43c6caa3eac2f33e4e2a1e65/hyperdbg/hprdbgctrl/code/debugger/commands/debugging-commands/lm.cpp#L385

    This command is supposed to work in nonvmx root mode. But not exactly.
    This command, as I understand it now, requests a list of modules and logically it works in non vmx root, but I don't really understand what you mean by that.
    Its direct execution does not seem to depend on vmx root mode...
    HyperDbg/hyperdbg/hprdbgctrl/code/debugger/commands/debugging-commands/lm.cpp at fac10fd8309bd40a43c6caa3eac2f33e4e2a1e65 · HyperDbg/HyperDbg

    State-of-the-art native debugging tool. Contribute to HyperDbg/HyperDbg development by creating an account on GitHub.

  • @xmaple555 ↶ Reply to #5392 #5393 07:09 AM, 09 Dec 2023
    I can to send a pull request to show how I suspend a thread later
  • @Nitr0_G ↶ Reply to #5393 #5394 07:14 AM, 09 Dec 2023
    I think it's better to write to Sina or he will answer you here himself a little later. I just thought that you were just asking about hypervisors not about hyperdbg.
  • @volo83 #5395 07:31 AM, 09 Dec 2023
    what is the windows version to be used in the guest? 10/11? what build?
  • @xmaple555 #5396 07:36 AM, 09 Dec 2023
    win 11
  • @volo83 #5397 07:38 AM, 09 Dec 2023
    build?
  • @xmaple555 #5398 07:43 AM, 09 Dec 2023
    the latest wdk
  • @xmaple555 #5399 07:43 AM, 09 Dec 2023
    Download the Windows Driver Kit (WDK) - Windows drivers

    Download instructions for the latest released version of the Windows Driver Kit (WDK)

  • @volo83 #5400 07:49 AM, 09 Dec 2023
    oh, I didn't give enough details... I mean, what is the recommended windows to be used as os (installed in guest, where debugee), I'm thinking maybe there could be some issues if I don't use some specific one
  • @volo83 #5401 07:50 AM, 09 Dec 2023
    using with vmware, I'm in the early phase, trying to grasp the basics
  • @xmaple555 #5402 07:52 AM, 09 Dec 2023
    too old version windows like 1909 will have problem, win 11 (not need to update ) and the latest win10 should be fine
  • @volo83 #5403 07:54 AM, 09 Dec 2023
    i was using 1809, a lited version and signed the driver and a few dlls using a leaked certificate, so I could bypass those F7/start with windbg
  • @volo83 ↶ Reply to #5402 #5404 07:55 AM, 09 Dec 2023
    thanks, will go with latest 10 then
  • 10 December 2023 (7 messages)
  • Sorry for the late reply, I'm super busy these days! 🤪

    Well, for this question, suspending threads in VMX-root mode doesn't make sense. It's because Windows regularly sends NMIs to all the cores to make sure if all other cores are working and running and if you suspend it from VMX-root (even though those NMIs are still delivered) but Windows cannot context switch threads and as the result the entire system will be halted (crashed).
  • So, you need an OS-specific approach. For example, changing the RIP of the thread to somewhere else (like an infinite thread). This exactly what we do previously.
  • This video.
  • It's basically a simple infinite loop.
  • @HughEverett #5409 01:56 PM, 10 Dec 2023
    Other than that, I agree that we should find a way to avoid continuing debuggee for the 'lm' command. Basically, we need to read kernel-module addresses from somewhere or some APIs that HIGH_IRQL compatible. Because from what I remember, reading user-mode modules doesn't need continuing the debuggee (though it continues the debuggee right now).
  • If you want to start with HyperDbg, you can consider this tutorial as well, might be helpful:
    https://ost2.fyi/Dbg3301
    Debuggers 3301: HyperDbg

    This class teaches you how to use HyperDbg, a virtualization-based debugger.

  • @volo83 ↶ Reply to #5410 #5411 05:40 PM, 10 Dec 2023
    thanks, watching that..
  • 11 December 2023 (2 messages)
  • @Lazarus2024 #5413 06:50 PM, 11 Dec 2023
    @HughEverett how to solve this problem bro
  • 12 December 2023 (6 messages)
  • HyperDbg doesn't support breakpoints on VMI Mode. It supports breakpoints on the Debugger Mode (VMware).
  • @HughEverett #5415 05:23 AM, 12 Dec 2023
    In future versions, we might find a way to support the 'bp' command in the VMI Mode probably only for user-mode applications but that also should work on non-system applications as pausing critical system applications will result in a halt and BSOD of the system.
  • @Lazarus2024 #5416 10:59 AM, 12 Dec 2023
    OK
  • @volo83 #5417 04:30 PM, 12 Dec 2023
    is hyperdbg going to work in virtualbox or is not worth even trying?
  • @6563395034 #5418 08:04 PM, 12 Dec 2023
    Joined.
  • @6563395034 #5419 08:04 PM, 12 Dec 2023
    Hey guys. I read in the description that hyperdbg provides feature like code coverage? But I dont see anywhere in the documentation about that. Can someone plz elaborate
  • 13 December 2023 (6 messages)
  • Last time that I checked, it wasn't working but I didn't check why. I don't have any idea what's the problem but generally should not be that hard to support virtualbox.
  • @HughEverett #5421 02:28 PM, 13 Dec 2023
    Right now it works well on both VMware Workstation pro and VMware Player (free) and other VMware products (e.g., Esxi).
  • HyperDbg has plenty of options for getting code coverage. One option is using the '!monitor' command's execution interception option.
    https://docs.hyperdbg.org/commands/extension-commands/monitor
    !monitor (monitor read/write/execute to a range of memory)

    Description of the '!monitor' command in HyperDbg.

  • Another option is using undocumented '!mode' command to intercept and measure code coverage in user-mode or kernel-mode.
  • Please also check the instrumentation step-in, and the '!track' command. These commands might also be helpful:

    https://docs.hyperdbg.org/commands/debugging-commands/i

    https://docs.hyperdbg.org/commands/extension-commands/track
    i (instrumentation step-in)

    Description of the 'i' command in HyperDbg.

  • This instrumentation step-in is also recently exported in script engine as a function which can also be used for measuring code coverage though it's not yet well-tested and not documented.
  • 14 December 2023 (1 messages)
  • @clevrf0x #5426 08:12 AM, 14 Dec 2023
    Joined.
  • 20 December 2023 (1 messages)
  • @6688934298 #5431 11:03 AM, 20 Dec 2023
    Joined.
  • 22 December 2023 (1 messages)
  • @195479802 #5432 06:49 PM, 22 Dec 2023
    Joined.
  • 24 December 2023 (1 messages)
  • @1376494095 #5433 05:48 AM, 24 Dec 2023
    @HughEverett hi, This project has time to use cmake to compile the project, support vscode and other compilers,vs takes up a lot of memory and IntelliSence has poor https://github.com/SergiusTheBest/FindWDK
    GitHub - SergiusTheBest/FindWDK: CMake module for building drivers with Windows Development Kit (WDK)

    CMake module for building drivers with Windows Development Kit (WDK) - GitHub - SergiusTheBest/FindWDK: CMake module for building drivers with Windows Development Kit (WDK)

  • 25 December 2023 (2 messages)
  • @1193889913 #5434 01:48 PM, 25 Dec 2023
    Joined.
  • Hi, thanks for sharing.
  • 26 December 2023 (1 messages)
  • @1376494095 #5436 06:54 AM, 26 Dec 2023
    You're welcome
  • 28 December 2023 (1 messages)
  • @5449895002 #5437 01:52 AM, 28 Dec 2023
    Joined.