@hyperdbg

@hyperdbg / Public archive of HyperDbg Telegram messages.

  • 2025

    • Mar 2025 (385)
    • Feb 2025 (220)
    • Jan 2025 (167)
  • 2024

    • Dec 2024 (72)
    • Nov 2024 (235)
    • Oct 2024 (83)
    • Sep 2024 (263)
    • Aug 2024 (332)
    • Jul 2024 (403)
    • Jun 2024 (570)
    • May 2024 (245)
    • Apr 2024 (156)
    • Mar 2024 (90)
    • Feb 2024 (134)
    • Jan 2024 (309)
  • 2023

    • Dec 2023 (62)
    • Nov 2023 (326)
    • Oct 2023 (76)
    • Sep 2023 (315)
    • Aug 2023 (757)
    • Jul 2023 (2215)
    • Jun 2023 (778)
    • May 2023 (300)
    • Apr 2023 (1)
    • Feb 2023 (5)
    • Jan 2023 (1)
  • 2022

    • Nov 2022 (1)
    • Oct 2022 (2)
    • Sep 2022 (1)
    • Aug 2022 (1)
    • Jul 2022 (39)
    • Jun 2022 (23)
    • May 2022 (256)
  • 2021

    • Dec 2021 (1)
    • Oct 2021 (82)
    • Jun 2021 (1)
    • Feb 2021 (1)
    • Jan 2021 (2)
  • 2020

    • Dec 2020 (1)
    • Nov 2020 (2)
RSS feed.    Made with tg-archive
  • 1
  • 2
  • 02 August 2023 (31 messages)
  • @ricnar #3860 02:47 AM, 02 Aug 2023
    Suspending processes in Windows | j00ru//vx tech blog
    https://j00ru.vexillium.org/2009/08/suspending-processes-in-windows/
    Suspending processes in Windows | j00ru//vx tech blog

    I have been recently encountering quite a non-typical problem - playing Starcraft was hard due to the amount of active processes running on my operating system - including a few IDA instances, virtual machines and the most disturbing... Firefox web browser. As we all know, it's not only about the memory being used by Firefox

  • @ricnar #3861 02:48 AM, 02 Aug 2023
    How do You think about NtSuspendProcess method explained in this blog
  • @ricnar #3862 02:49 AM, 02 Aug 2023
    It suspends all threads of a program from kernel
  • @ricnar #3863 02:49 AM, 02 Aug 2023
    Sure there is a ntresume
  • @ricnar #3864 02:49 AM, 02 Aug 2023
    To resume all threads
  • @ricnar #3865 02:54 AM, 02 Aug 2023
    Maybe a !suspend and !resume commands in hyperdbg can call these functions
  • @ricnar #3866 02:55 AM, 02 Aug 2023
    And the user can manually manage the monitor and other commands without infinite loop
  • @ricnar #3867 02:55 AM, 02 Aug 2023
    Only using these commands
  • @ricnar #3868 02:56 AM, 02 Aug 2023
    Previous and after the use of monitor
  • @ricnar #3869 02:56 AM, 02 Aug 2023
    Or some switch context
  • @HughEverett ↶ Reply to #3860 #3870 10:09 AM, 02 Aug 2023
    I have to decompile it to see how it works. Because, we have to be sure that the NtSuspendProcess won't access a memory address which might be paged-out.
  • @ricnar #3871 10:48 AM, 02 Aug 2023
    but this api call kernel to suspend
  • @ricnar #3872 10:48 AM, 02 Aug 2023
    i think system kernel can manage this
  • @ricnar #3873 10:49 AM, 02 Aug 2023
    is an api to suspend using a pid of a process
  • @ricnar #3874 10:49 AM, 02 Aug 2023
    it can manage the pagein i think
  • @HughEverett ↶ Reply to #3872 #3875 10:50 AM, 02 Aug 2023
    No, we can't just call it and expect the suspension. Once you pause the system (CTRL+C), HyperDbg halts everything in VMX root. The problem is we can't call this function from VMX root-mode.
  • @5783380452 #3876 10:51 AM, 02 Aug 2023
    who is it https://www.youtube.com/watch?v=rmkEW5IVDyg
    Hyperdbg Instalacion en dos VM y nuevos features(Hyperdbg Instalation in two VM and new features.)

    https://drive.google.com/file/d/1S6Dz2qqYYDD3gMxDwVFf0ihobulhMrRP/view?usp=sharing empacado password a

  • @ricnar #3877 10:51 AM, 02 Aug 2023
    i am
  • @ricnar #3878 10:52 AM, 02 Aug 2023
    it will end making a !loop and !unloop command hehe
  • @HughEverett ↶ Reply to #3878 #3879 10:53 AM, 02 Aug 2023
    Yes. My current idea (which needs some time to implement) is changing the RIP.
  • @HughEverett #3880 10:53 AM, 02 Aug 2023
    And intercepting page-faults (#PF) in HyperDbg on the target process.
  • @ricnar #3881 10:54 AM, 02 Aug 2023
    maybe some fixed address ebfe hehe
  • @HughEverett #3882 10:54 AM, 02 Aug 2023
    And instead of re-injecting page-faults, just ignore them (until Windows thread scheduler decides to context-switch the process).
  • @HughEverett #3883 10:54 AM, 02 Aug 2023
    and this way implement this mechanism.
  • @ricnar #3884 10:54 AM, 02 Aug 2023
    i see
  • @ricnar #3885 10:55 AM, 02 Aug 2023
    👍
  • @HughEverett #3886 10:55 AM, 02 Aug 2023
    Exactly same as using (event_sc()) function in '!monitor x ...'
  • @HughEverett #3887 10:55 AM, 02 Aug 2023
    It just blocks the execution in the target page and won't let it run.
  • @HughEverett #3888 10:56 AM, 02 Aug 2023
    We could do the same for the '!loop' or whatever command, but we need to be cautious not blocking execution of other threads.
  • @HughEverett #3889 10:57 AM, 02 Aug 2023
    I need some time fixing a rare raise condition that happens in the 't' stepping, after that, I try to get into this mechanism and implement it.
  • @ricnar #3890 12:52 PM, 02 Aug 2023
    thats-great-kenneth-parcell.mp4
  • 03 August 2023 (17 messages)
  • @ricnar #3891 01:14 PM, 03 Aug 2023
    Could it be that on the target machine when starting hyperdbg for the first time there is a flag on the command line for example /name pepe so that it starts the process and forks it with that name and also the driver so that it is not detected by name?
  • @ricnar #3892 01:15 PM, 03 Aug 2023
    For to choose the process name and driver name?
  • @ricnar #3893 01:15 PM, 03 Aug 2023
    not to be a fixed name
  • @zero_nullptr #3894 02:36 PM, 03 Aug 2023
    Joined.
  • @ricnar #3895 03:37 PM, 03 Aug 2023
    using the last version of hyperdbg
  • @ricnar #3897 03:37 PM, 03 Aug 2023
    version: v0.4.1, build: 20230730.0658
  • @ricnar #3898 03:38 PM, 03 Aug 2023

    photo_2023-08-03_15-38-25.jpg
  • @ricnar #3899 03:38 PM, 03 Aug 2023
    some invalid packets appear
  • @ricnar #3900 03:39 PM, 03 Aug 2023
    when using .process list
  • @ricnar #3901 03:39 PM, 03 Aug 2023

    photo_2023-08-03_15-39-25.jpg
  • @ricnar #3902 03:43 PM, 03 Aug 2023

    photo_2023-08-03_15-43-18.jpg
  • @HughEverett ↶ Reply to #3891 #3903 04:15 PM, 03 Aug 2023
    Yes, this is really good advice! 👌
    I'll add it to the todo list.
  • @HughEverett ↶ Reply to #3893 #3904 04:15 PM, 03 Aug 2023
    👌
  • @HughEverett ↶ Reply to #3902 #3905 04:16 PM, 03 Aug 2023
    🤨🤨🤨
  • @HughEverett #3906 04:16 PM, 03 Aug 2023
    Is it just one time produced? Or it keeps showing this message? Can it be reproduced? 🤔
  • @ricnar #3907 04:43 PM, 03 Aug 2023
    I repeated next and works perfect seems to be the same problem in Vms but limited
  • @ricnar #3908 04:43 PM, 03 Aug 2023
    It Erratically can fail
  • 04 August 2023 (50 messages)
  • @ricnar #3909 10:26 AM, 04 Aug 2023
    i found a itrick to use monitor like i want in a user process without loop
  • @ricnar #3910 10:26 AM, 04 Aug 2023

    photo_2023-08-04_10-26-44.jpg
  • @ricnar #3911 10:26 AM, 04 Aug 2023
    first start path
  • @ricnar #3912 10:27 AM, 04 Aug 2023
    when the process starts instead of pressing G
  • @ricnar #3914 10:27 AM, 04 Aug 2023
    y type pagein 401000
  • @ricnar #3915 10:28 AM, 04 Aug 2023
    next G
  • @ricnar #3918 10:30 AM, 04 Aug 2023
    the monitor command stops at ENTRY POINT jeje
  • @ricnar #3920 10:30 AM, 04 Aug 2023
    in the PUSHAD
  • @ricnar #3921 10:30 AM, 04 Aug 2023
    and G will executes till OEP when monitor is triggered
  • @ricnar #3922 10:31 AM, 04 Aug 2023
    the pagein command and monitor are made previous to the PUSHAD entry point
  • @ricnar #3923 10:38 AM, 04 Aug 2023

    photo_2023-08-04_10-38-18.jpg
  • @ricnar #3924 10:39 AM, 04 Aug 2023
    now we are in the ENTRY POINT with the monitor command enabled
  • @ricnar #3925 10:40 AM, 04 Aug 2023
    pressing G It reaches OEP
  • @ricnar #3926 10:40 AM, 04 Aug 2023

    photo_2023-08-04_10-40-02.jpg
  • @ricnar #3927 10:40 AM, 04 Aug 2023
    without inifinite loop
  • @ricnar #3928 10:41 AM, 04 Aug 2023
    typing pagein and monitor previous press G to the Entry POINT
  • @HughEverett #3929 10:41 AM, 04 Aug 2023
    You mean the '!monitor' is executed before the trap flag?
  • @ricnar #3930 10:41 AM, 04 Aug 2023
    start path needs a G to reach entry point istead yo type pagein and monitor
  • @ricnar #3931 10:41 AM, 04 Aug 2023
    and monitor is like G
  • @ricnar #3932 10:42 AM, 04 Aug 2023
    and reaches entry point without pressing G
  • @ricnar #3933 10:42 AM, 04 Aug 2023
    and with monitor enabled
  • @HughEverett #3934 10:42 AM, 04 Aug 2023
    🤔
  • @ricnar #3935 10:42 AM, 04 Aug 2023
    it works
  • @HughEverett #3936 10:44 AM, 04 Aug 2023
    oh, got it.
  • @HughEverett ↶ Reply to #3935 #3937 10:44 AM, 04 Aug 2023
    that's a nice trick 👌
  • @ricnar #3938 10:44 AM, 04 Aug 2023
    .start path C:\Users\ricnar456\Desktop\PACKED_PRACTICA_1.exe
    pagein 401000
    !monitor x 401000 401fff pid f60
    g

    we are in entry point with monitor enabled

    00000000`00408ec0 60 pushad

    0: kHyperDbg> g
    debuggee is running...
    event 0x2 triggered
    00000000`0040146e E8 90 03 00 00 call 0x00401803
  • @ricnar #3939 10:45 AM, 04 Aug 2023
    it uses the trap flag to stop the execution of monitor
  • @HughEverett #3940 10:45 AM, 04 Aug 2023
    but even though it works, it doesn't necessarily guarantee this behavior. 🤔
    or am I wrong? 🧐
  • @ricnar #3941 10:45 AM, 04 Aug 2023
    for user mode programs it will work
  • @ricnar #3942 10:45 AM, 04 Aug 2023
    why not
  • @ricnar #3943 10:46 AM, 04 Aug 2023
    the goal is to put monitor commands before executing from Entry Point
  • @HughEverett #3944 10:47 AM, 04 Aug 2023
    you're right.
  • @HughEverett #3945 10:47 AM, 04 Aug 2023
    it should work in most of the cases.
  • @ricnar #3946 10:47 AM, 04 Aug 2023
    it stops in entry Point with the monitor command enabled previously
  • @ricnar #3947 10:49 AM, 04 Aug 2023
    using monitor like the G of start path
  • @ricnar #3948 10:49 AM, 04 Aug 2023
    and it will stops in entry point
  • @ricnar #3949 10:49 AM, 04 Aug 2023
    Some particular user mode programs (packers)
  • @ricnar #3950 10:50 AM, 04 Aug 2023
    will need this
  • @HughEverett ↶ Reply to #3946 #3951 10:50 AM, 04 Aug 2023
    By the way, you can use another trick as well. I don't know if you notified it or not but once you load a process, if you loaded it again (.start), while the previous process is not yet closed, the page tables are valid for the target process is also valid for the second process. You can use this trick too.
  • @HughEverett #3952 10:51 AM, 04 Aug 2023
    And it comes from the fact that Windows allocates memory for each process (static module codes) only once and reuse it in different instances of the same process.
  • @ricnar #3953 10:51 AM, 04 Aug 2023

    photo_2023-08-04_10-51-58.jpg
  • @ricnar #3954 10:52 AM, 04 Aug 2023
    i started a second process with the first process already running and it does not page the 401000 memory in the new process
  • @ricnar #3955 10:52 AM, 04 Aug 2023

    photo_2023-08-04_10-52-53.jpg
  • @HughEverett ↶ Reply to #3953 #3956 11:00 AM, 04 Aug 2023
    Is the target address dynamically allocated?
  • @ricnar #3957 11:01 AM, 04 Aug 2023
    nop
  • @ricnar #3958 11:01 AM, 04 Aug 2023
    aslr disabled in both
  • @HughEverett #3959 11:01 AM, 04 Aug 2023
    🤔
  • @ricnar #3960 11:02 AM, 04 Aug 2023
    i the same packed program used in demos it has aslr disabled
  • @HughEverett ↶ Reply to #3960 #3961 11:05 AM, 04 Aug 2023
    maybe I'm wrong, or it has other conditions that I do not know. 🤔
  • @bluegopher #3962 01:53 PM, 04 Aug 2023
    Joined.
  • 06 August 2023 (50 messages)
  • @6446676104 #3963 09:09 AM, 06 Aug 2023
    Joined.
  • @6446676104 #3964 09:11 AM, 06 Aug 2023
    Hi, I'm new to hyperdbg and I'm trying to set it up with two vmware fusion VMs in debugger mode. I see that adding serial ports to vmware fusion isn't as straight forward as vmware Workstation. Could someone guide me how to turn on "cpu yield on poll" option and specify which machine is the server and vice versa. Thanks
  • @HughEverett ↶ Reply to #3964 #3965 10:26 AM, 06 Aug 2023
    Hi, would you please first verify whether HyperDbg is working on VMI mode (local debugging) or not?
  • @HughEverett #3966 10:29 AM, 06 Aug 2023
    Besides that, I'm not sure if VMware fusion has some configuration similar to VMware Workstation, but in case, if it's similar, you need something like this:
  • @HughEverett #3967 10:29 AM, 06 Aug 2023

    photo_2023-08-06_10-29-47.jpg
  • @HughEverett #3968 10:29 AM, 06 Aug 2023
    https://voidsec.com/windows-kernel-debugging-exploitation/
    Windows Kernel Debugging & Exploitation Part1 – Setting up the lab - VoidSec

    How-to set up a VMware lab with Windows Kernel mode debugging enabled via Serial Port (or UART), a step by step guide.

  • @HughEverett ↶ Reply to #3967 #3969 10:30 AM, 06 Aug 2023
    Please note the third line in the configuration.
  • @6446676104 #3970 10:38 AM, 06 Aug 2023
    thanks a lot @HughEverett , i will give it a go. I haven't tried it in VMI first
  • @6446676104 ↶ Reply to #3967 #3971 10:42 AM, 06 Aug 2023
    could you also share the config for server/debugger side
  • @HughEverett ↶ Reply to #3971 #3972 11:01 AM, 06 Aug 2023
    Both of them are available in the above link.

    photo_2023-08-06_11-01-57.jpg
  • @HughEverett ↶ Reply to #3971 #3973 11:01 AM, 06 Aug 2023

    photo_2023-08-06_11-01-57.jpg
  • @6446676104 #3974 12:14 PM, 06 Aug 2023
    I am getting BSOD after running ".debug prepare serial 115200 com2"
  • @HughEverett ↶ Reply to #3974 #3975 12:20 PM, 06 Aug 2023
    Did you connect to serial?
  • @HughEverett #3976 12:21 PM, 06 Aug 2023
    because in VMI mode, the 'debug' command should not be used.
  • @6446676104 #3977 12:22 PM, 06 Aug 2023
    yes i connected in serial after adding the pipe config to .vmx
  • @6446676104 #3978 12:22 PM, 06 Aug 2023
    i now tried vmi mode and that is working fine with .connect command
  • @6446676104 #3979 12:23 PM, 06 Aug 2023
    just having BSOD with serial connection using .debug commands
  • @HughEverett ↶ Reply to #3977 #3980 12:23 PM, 06 Aug 2023
    Are you testing with the 'master' branch? or the 'dev' branch?
  • @6446676104 #3981 12:23 PM, 06 Aug 2023
    i took the latest compiled release
  • @HughEverett #3982 12:24 PM, 06 Aug 2023
    because there was a problem recently reported and fixed in the 'dev' branch but is not yet merged to the 'master'.
  • @HughEverett ↶ Reply to #3981 #3983 12:24 PM, 06 Aug 2023
    Can you compile the 'dev' branch
  • @HughEverett #3984 12:24 PM, 06 Aug 2023
    ?
  • @6446676104 #3985 12:24 PM, 06 Aug 2023
    I can try yes
  • @HughEverett #3986 12:25 PM, 06 Aug 2023
    okay, test with the 'dev' branch and let me know about the results.
  • @ricnar #3987 12:44 PM, 06 Aug 2023
    last dev compiled
  • @ricnar #3989 12:45 PM, 06 Aug 2023

    photo_2023-08-06_12-45-22.jpg
  • @HughEverett ↶ Reply to #3987 #3990 12:46 PM, 06 Aug 2023
    I think we have enough commits to release HyperDbg v0.5.
  • @HughEverett #3991 12:47 PM, 06 Aug 2023
    Let me fix a small issue I noticed in the showing context message
  • @ricnar #3992 12:47 PM, 06 Aug 2023
    optional recheck of the packages will be added?
  • @HughEverett #3993 12:47 PM, 06 Aug 2023
    and after that, will release the new version.
  • @HughEverett ↶ Reply to #3992 #3994 12:47 PM, 06 Aug 2023
    optional recheck? 🤨
  • @ricnar #3995 12:47 PM, 06 Aug 2023
    yesb to skip the err checksum fail
  • @ricnar #3996 12:48 PM, 06 Aug 2023
    check and reget the package
  • @ricnar #3997 12:48 PM, 06 Aug 2023
    the checksum error of the virtual connection
  • @ricnar #3998 12:49 PM, 06 Aug 2023
    it apprears erratically to me
  • @HughEverett #3999 12:49 PM, 06 Aug 2023
    We can release it but this needs some tests before release. So, I think it's better to release the v0.5 now to at least fix the problem with VMware workstations checksum error, and after that we'll get to this optional recheck. Is it okay?
  • @ricnar #4000 12:50 PM, 06 Aug 2023
    perfect
  • @HughEverett #4001 12:50 PM, 06 Aug 2023
    👍
  • @6446676104 #4002 09:40 PM, 06 Aug 2023
    i compiled the dev branch and I am not facing the BSOD, so thanks a lot. But now i keep getting "is the debugger listening? retry handshaking with the debugger... (timeout: 5 seconds)"
  • @6446676104 #4003 11:15 PM, 06 Aug 2023
    debugger .vmx:

    serial0.fileType = "pipe"
    serial0.yieldOnMsrRead = "TRUE"
    serial0.fileName = "\\.\pipe\KernelDbg"
    serial0.present = "True"
    serial0.tryNoRxLoss = "True"

    debuggee .vmx:

    serial0.fileType = "pipe"
    serial0.yieldOnMsrRead = "TRUE"
    serial0.fileName = "\\.\pipe\KernelDbg"
    serial0.present = "True"
    serial0.tryNoRxLoss = "True"
    serial0.pipe.endPoint = "client"

    HyperDbg> .debug remote serial 115200 com2

    HyperDbg> .debug prepare serial 115200 com2

    I have tried different combinations of comX but no use
  • @montagne1337 #4004 11:17 PM, 06 Aug 2023
    Joined.
  • @ricnar #4005 11:17 PM, 06 Aug 2023
    Server is the target, in the target you need to use debug prepare serial
  • @6446676104 #4006 11:18 PM, 06 Aug 2023
    i am doing that, ran .debug remote on debugger end
  • @6446676104 #4007 11:18 PM, 06 Aug 2023
    .debug prepare on debuggee side
  • @ricnar #4008 11:18 PM, 06 Aug 2023
    Yes
  • @ricnar #4009 11:18 PM, 06 Aug 2023
    Correct
  • @6446676104 #4010 11:18 PM, 06 Aug 2023
    issue is with the way i am setting up serial ports in vmware fusion. as it is quite different from windows counterpart (vmware workstation)
  • @montagne1337 #4011 11:19 PM, 06 Aug 2023
    hi there, anyone knows if I can somehow load the hyperdbg driver by manual mapping, I'm trying to debug a protected game but it doesn't allow me to run it with test signing enabled
  • @6446676104 #4012 11:47 PM, 06 Aug 2023
    guys if anyone can guide me how i can debug the serial ports issue. this is how i am creating them on vmware fusion

    https://communities.vmware.com/t5/VMware-Fusion-Discussions/Add-Network-Serial-Port-in-Fusion/td-p/480346
    Add Network Serial Port in Fusion

    Took awhile but I figured out how to connect to a network serial port in Fusion on my Mac. PITA. Step 1: Don't boot the VM Step 2: Add a serial port and chose a bogus file for it Step 3: Go into the VMX file. For me, I had to right click the VM file, select "Show Package Contents" then open vmN...

  • @6446676104 #4013 11:48 PM, 06 Aug 2023
    I keep getting "is the debugger listening? retry handshaking with the debugger... (timeout: 5 seconds)"
  • 07 August 2023 (123 messages)
  • @6446676104 #4014 12:01 AM, 07 Aug 2023
    Btw does the !monitor command work for memory ranges in kernel space?
  • @HughEverett ↶ Reply to #4002 #4015 12:28 AM, 07 Aug 2023
    No this simply means that the handshake mechanism which was added recently won't work. And the reason for that is the connection problem. HyperDbg cannot send data over serial.
  • @HughEverett ↶ Reply to #4014 #4016 12:29 AM, 07 Aug 2023
    Yes, it works on both user-mode and kernel-mode.
  • @HughEverett ↶ Reply to #4015 #4017 12:31 AM, 07 Aug 2023
    So, the serial configuration that I previously sent to you is problematic here. As nothing is received. You can verify it by a simple serial port monitor and send program like putty or XCTU.
  • @HughEverett ↶ Reply to #4014 #4018 12:32 AM, 07 Aug 2023
    BTW, what do you trying to know? I mean if you just want to observe the locations where RWX happens, you can create a log in the VMI mode without a serial connection.
  • @HughEverett ↶ Reply to #4011 #4019 12:33 AM, 07 Aug 2023
    What do you mean by manual mapping?
  • @invlpg ↶ Reply to #4019 #4020 12:35 AM, 07 Aug 2023
    I think he meant allocating a pool, manually relocating image/fixing imports, overwriting the allocated pool using the vuln driver
  • @invlpg #4021 12:36 AM, 07 Aug 2023
    And invoking the driver entry w/o the driver object/reg key
  • @HughEverett #4022 12:36 AM, 07 Aug 2023
    🤔
  • @invlpg #4023 12:36 AM, 07 Aug 2023
    github.com/thecruz/kdmapper
    GitHub - TheCruZ/kdmapper: KDMapper is a simple tool that exploits iqvw64e.sys Intel driver to manually map non-signed drivers in memory

    KDMapper is a simple tool that exploits iqvw64e.sys Intel driver to manually map non-signed drivers in memory - GitHub - TheCruZ/kdmapper: KDMapper is a simple tool that exploits iqvw64e.sys Intel ...

  • @invlpg #4024 12:36 AM, 07 Aug 2023
    this basically
  • @invlpg #4025 12:37 AM, 07 Aug 2023
    yet another gamehacking thingy
  • @invlpg #4026 12:37 AM, 07 Aug 2023
    not sure if you want to support it though
  • @HughEverett ↶ Reply to #4026 #4027 12:38 AM, 07 Aug 2023
    Does supporting it need any special consideration on the HyperDbg driver?
  • @invlpg ↶ Reply to #4026 #4028 12:38 AM, 07 Aug 2023
    I mean it would probably be a pain to support this and only gamehackers are going to use it like that
  • @invlpg ↶ Reply to #4027 #4029 12:39 AM, 07 Aug 2023
    Oh. I'm not sure honestly, probably not. You can treat it like a normal driver but you don't have the driver object(the one that gets passed to the DriverEntry)
  • @montagne1337 ↶ Reply to #4029 #4030 12:52 AM, 07 Aug 2023
    you also can't use SEH loading a driver this way
  • @invlpg ↶ Reply to #4030 #4031 12:53 AM, 07 Aug 2023
    I mean. You can, but it requires a lil bit of modifications to the kdmapper project driver that you are "manually mapping"
  • @montagne1337 ↶ Reply to #4031 #4032 12:58 AM, 07 Aug 2023
    interesting, I thought supporting it for manually mapped drivers is such an esoteric knowledge only known to true windows kernel wizards lol
  • @invlpg ↶ Reply to #4032 #4033 01:05 AM, 07 Aug 2023
    Not really. You can just google it, the thing is that it won't be pg-compatible, but as for the hyperdbg driver, it is using some pg detected stuff anyways so it won't be an issue lol
  • @montagne1337 #4034 01:17 AM, 07 Aug 2023
    anyways, I think adding support for this would be awesome because I don't really see any real practical use for hyperdbg except for debugging anti-cheats and also rootkits maybe? But technically speaking, anti-cheats are also rootkits lol. Please correct me if I am wrong here.
  • @blackjustinFR #4035 01:57 AM, 07 Aug 2023
    hey
  • @blackjustinFR #4036 01:57 AM, 07 Aug 2023
    anyone know for what i get CLOCK_WATCHDOG_TIEMOUT
  • @blackjustinFR #4037 01:57 AM, 07 Aug 2023
    with my HYPERVISOR
  • @blackjustinFR #4038 01:58 AM, 07 Aug 2023

    photo_2023-08-07_01-58-17.jpg
  • @HughEverett ↶ Reply to #4036 #4039 06:57 AM, 07 Aug 2023
    This can have thousands of reasons, what did you change that leads to this?
  • @6446676104 ↶ Reply to #4018 #4040 06:57 AM, 07 Aug 2023
    I need to break the kernel to figure out the location of the buffers i want to monitor for RWX
  • @HughEverett ↶ Reply to #4040 #4041 06:58 AM, 07 Aug 2023
    In VMI mode, you can view (create logs) from the changed buffers, but, you can pause the kernel.
  • @HughEverett #4042 06:59 AM, 07 Aug 2023
    Can you verify the serial connection? Is it working properly?
  • @6446676104 #4043 06:59 AM, 07 Aug 2023
    I will work on serial connection
  • @6446676104 ↶ Reply to #4041 #4044 06:59 AM, 07 Aug 2023
    Can or can't?
  • @HughEverett #4045 06:59 AM, 07 Aug 2023
    Can't halt (pause) the system in VMI mode. But you can create logs.
  • @HughEverett ↶ Reply to #4044 #4046 07:01 AM, 07 Aug 2023
    Basically, you need something like this in VMI mode:

    !monitor rw 0xfff1234 0xfff1234+100 script {
    printf("The address: %llx is modified from: %llx\n", $context, @rip);
    }
  • @HughEverett ↶ Reply to #4046 #4047 07:01 AM, 07 Aug 2023
    This script works perfectly in VMI mode.
  • @HughEverett #4049 11:18 AM, 07 Aug 2023
    HyperDbg v0.5 is released.

    https://github.com/HyperDbg/HyperDbg/releases

    Added
    The event calling stage mechanism
    New pseudo-registers ($stage) in the script engine

    Changed
    The disassembler now warns if you mistakenly used the 'u' command over a 32-bit program
    The debuggee won't load the VMM module if the debugger is not listening
    The debugger and the debuggee now perform a version/build check to prevent version mismatch
    Fix the 'eb' command's parsing issue with '0xeb' hex bytes
    Fix the connection problem with serial (checksum error) over two VMs
    Fix the 't' command's indicator of trap flags and simulatenous stepping of multiple threads
    Fix the problem with the '.kill' and '.restart' commands
    Show the stage of event once the debugger is paused
    Fix sending context, tag, and registers once '!epthook2' wants to halt the debugger
  • @HughEverett #4050 11:19 AM, 07 Aug 2023
    And also, this is the description of the new 'calling stage' mechanism:
    https://docs.hyperdbg.org/tips-and-tricks/misc/event-calling-stage
    Event calling stage

    The event calling stage in HyperDbg

  • @ricnar #4051 01:47 PM, 07 Aug 2023

    photo_2023-08-07_13-47-05.jpg
  • @ricnar #4052 01:47 PM, 07 Aug 2023
    this unpackme detects the start command
  • @ricnar #4053 01:49 PM, 07 Aug 2023

    photo_2023-08-07_13-49-25.jpg
  • @HughEverett ↶ Reply to #4053 #4054 03:46 PM, 07 Aug 2023
    Do you have any idea why? Does it have something in TLS?
  • @ricnar #4055 03:49 PM, 07 Aug 2023
    Nop
  • @ricnar #4056 03:49 PM, 07 Aug 2023
    No tls
  • @ricnar #4057 03:50 PM, 07 Aug 2023
    I will look on weekend
  • @HughEverett ↶ Reply to #4057 #4058 03:53 PM, 07 Aug 2023
    Weird, how it can find a chance to run code. 🤔

    I don't know if there is anything other than TLS, that is executed before the entrypoint. 🤨
  • @ricnar #4059 03:54 PM, 07 Aug 2023
    Do you want the exe?
  • @HughEverett ↶ Reply to #4059 #4060 03:54 PM, 07 Aug 2023
    Yeah. Send it please.
  • @ricnar #4062 03:55 PM, 07 Aug 2023
    i didn't have time to see, only opened in ida to look if it has tls
  • @6446676104 #4063 07:46 PM, 07 Aug 2023
    @sina still getting BSOD with .debug prepare command with dev branch binary and 0.5 release. what could i be doing wrong
  • @6446676104 #4064 07:49 PM, 07 Aug 2023
    listen/.connect work fine
  • @ricnar #4065 07:49 PM, 07 Aug 2023
    What system is the so of the target?
  • @ricnar #4066 07:50 PM, 07 Aug 2023
    W10 or w11?
  • @6446676104 #4067 07:50 PM, 07 Aug 2023
    both VMs win10, debugger and debuggee
  • @ricnar #4068 07:50 PM, 07 Aug 2023
    I have this problem in old w10s
  • @6446676104 #4069 07:50 PM, 07 Aug 2023
    same issue with BSOD?
  • @ricnar #4070 07:50 PM, 07 Aug 2023
    Yes
  • @ricnar #4071 07:51 PM, 07 Aug 2023
    What version of w10?
  • @ricnar #4072 07:51 PM, 07 Aug 2023
    Type winver in the search
  • @6446676104 #4073 07:51 PM, 07 Aug 2023
    Windows 10 Home 22H2
  • @ricnar #4074 07:52 PM, 07 Aug 2023
    Ah
  • @ricnar #4075 07:52 PM, 07 Aug 2023
    Not so old
  • @6446676104 #4076 07:52 PM, 07 Aug 2023
    19045.2965
  • @6446676104 #4077 07:52 PM, 07 Aug 2023
    yup
  • @ricnar #4078 07:52 PM, 07 Aug 2023
    Is not the version
  • @ricnar #4079 07:52 PM, 07 Aug 2023
    Maybe the processor
  • @ricnar #4080 07:52 PM, 07 Aug 2023
    What processor?
  • @6446676104 #4081 07:53 PM, 07 Aug 2023
    it's a 2019 intel mac
  • @6446676104 #4082 07:54 PM, 07 Aug 2023
    2.6 GHz 6-Core Intel Core i7
  • @ricnar #4083 07:55 PM, 07 Aug 2023
    Seems that the issue might be related to 9 gen processors, but it's kinda weird why you encountered error.
  • @ricnar #4084 07:56 PM, 07 Aug 2023
    Do you have a 9 gen processor?
  • @ricnar #4085 07:56 PM, 07 Aug 2023
    I7?
  • @ricnar #4086 07:57 PM, 07 Aug 2023
    Some problems are related to this specific version
  • @ricnar #4087 07:57 PM, 07 Aug 2023
    Oldest and newest work fine
  • @6446676104 #4088 07:57 PM, 07 Aug 2023
    i7-9750H
  • @6446676104 #4089 07:57 PM, 07 Aug 2023
    damn
  • @6446676104 #4090 07:57 PM, 07 Aug 2023
    bad luck
  • @ricnar #4092 07:58 PM, 07 Aug 2023
    Is the affected version
  • @6446676104 #4093 07:59 PM, 07 Aug 2023
    that's extremely unlucky on my part
  • @6446676104 #4094 07:59 PM, 07 Aug 2023
    i am in dire need of !monitor functionality as hardware breakpoints can't help me
  • @6446676104 #4095 07:59 PM, 07 Aug 2023
    you know of some other tool or technique that i could use?
  • @6446676104 #4096 07:59 PM, 07 Aug 2023
    need to monitor a buffer for reads
  • @ricnar #4097 08:00 PM, 07 Aug 2023
    Some systems works in this processor
  • @ricnar #4098 08:00 PM, 07 Aug 2023
    Maybe trying w11 can work
  • @ricnar #4099 08:00 PM, 07 Aug 2023
    Do you have a w11 VM to try?
  • @ricnar #4100 08:01 PM, 07 Aug 2023
    I had the same processor
  • @6446676104 #4101 08:01 PM, 07 Aug 2023
    I don't but I could set one up. The research that i am conducting has been with win 10 so far so switching OS won't be an option for me
  • @ricnar #4102 08:01 PM, 07 Aug 2023
    And I changed targets and it's working now in VMware workstation and w11
  • @6446676104 #4103 08:01 PM, 07 Aug 2023
    did you have the same issue? .connect works but not .debug
  • @ricnar #4104 08:02 PM, 07 Aug 2023
    Yes
  • @ricnar #4105 08:02 PM, 07 Aug 2023
    Maybe trying with VM workstation and w11 can help
  • @ricnar #4106 08:02 PM, 07 Aug 2023
    I have the same processor
  • @ricnar #4107 08:03 PM, 07 Aug 2023
    And works for me in this combination
  • @6446676104 #4108 08:03 PM, 07 Aug 2023
    got it
  • @6446676104 #4109 08:03 PM, 07 Aug 2023
    thanks
  • @6446676104 #4110 08:13 PM, 07 Aug 2023
    @HughEverett could anything be done to fix this issue for this specific processor+win10?
  • @ricnar #4111 08:21 PM, 07 Aug 2023

    photo_2023-08-07_20-21-20.jpg
  • @ricnar #4112 08:23 PM, 07 Aug 2023
    : kd> g
    Break instruction exception - code 80000003 (first chance)
    hprdbghv+0x8cf9:
    fffff801`24958cf9 cc int 3
    2: kd> g
    Break instruction exception - code 80000003 (first chance)
    hprdbghv+0x8cf9:
    fffff801`24958cf9 cc int 3
    0: kd> g
    KDTARGET: Refreshing KD connection

    *** Fatal System Error: 0x0000003b
    (0x00000000C000001D,0xFFFFF80124958D52,0xFFFFF9072196F840,0x0000000000000000)

    Break instruction exception - code 80000003 (first chance)

    A fatal system error has occurred.
    Debugger entered on first try; Bugcheck callbacks have not been invoked.

    A fatal system error has occurred.

    nt!DbgBreakPointWithStatus:
    fffff807`3d5cbc90 cc int 3
    0: kd> g
  • @ricnar #4113 08:26 PM, 07 Aug 2023
    new 1.txt
  • @ricnar #4114 08:26 PM, 07 Aug 2023
    maybe is jumping two or three lines for the source mode
  • @ricnar #4115 08:26 PM, 07 Aug 2023
    i will disable source mode
  • @ricnar #4116 08:26 PM, 07 Aug 2023
    in the next try
  • @ricnar #4117 08:26 PM, 07 Aug 2023
    Okay, I'll get it, the VMLAUNCH is failed.
  • @ricnar #4118 08:26 PM, 07 Aug 2023

    photo_2023-08-07_20-26-09.jpg
  • @ricnar ↶ Reply to #4118 #4119 08:26 PM, 07 Aug 2023
    As VMLAUNCH is failed, the entire virtualization routine will be failed.
  • @ricnar #4120 08:26 PM, 07 Aug 2023
    Now, the question is why this VMLAUNCH is failed? After running it gives an error code. Which CPU-ish error code.
  • @ricnar #4121 08:26 PM, 07 Aug 2023
    The next step is putting removing all the currently breakpoint that we insert into the HyperDbg and put a breakpoint right after running the VMLAUNCH intrinsic function to read the CPU error code
  • @ricnar #4122 08:26 PM, 07 Aug 2023
    I hope we won't conclude error code 7. 😄
    Because it's the worst CPU error code.
  • @ricnar #4123 08:27 PM, 07 Aug 2023
    where do you want the int 3
  • @ricnar #4124 08:27 PM, 07 Aug 2023
    VCpu->HasLaunched = TRUE;

    __vmx_vmlaunch();
  • @ricnar #4125 08:27 PM, 07 Aug 2023
    after that?
  • @ricnar #4126 08:27 PM, 07 Aug 2023
    Here:
  • @ricnar #4127 08:27 PM, 07 Aug 2023
    VCpu->HasLaunched = TRUE;

    __vmx_vmlaunch();

    //
    // ******** if Vmlaunch succeed will never be here ! ********
    //

    //
    // If failed, then indicate that current core is not currently virtualized
    //
    VCpu->HasLaunched = FALSE;

    //
    // Read error code firstly
    //
    __vmx_vmread(VMCS_VM_INSTRUCTION_ERROR, &ErrorCode);

    LogError("Err, unable to execute VMLAUNCH, status : 0x%llx", ErrorCode);
  • @ricnar #4128 08:27 PM, 07 Aug 2023

    photo_2023-08-07_20-27-10.jpg
  • @ricnar #4129 08:27 PM, 07 Aug 2023
    We need to read the result of this:
    LogError("Err, unable to execute VMLAUNCH, status : 0x%llx", ErrorCode);
  • @ricnar #4130 08:27 PM, 07 Aug 2023
    Use DbgPrint instead of LogError. And before running hyperdbg, run the following command in windbg:

    eb nt!Kd_DEFAULT_Mask ff ff ff ff
  • @ricnar #4131 08:27 PM, 07 Aug 2023

    photo_2023-08-07_20-27-17.jpg
  • @ricnar #4132 08:27 PM, 07 Aug 2023

    photo_2023-08-07_20-27-18.jpg
  • @ricnar #4133 08:28 PM, 07 Aug 2023
    Setting device major functionsHyperDbg's device and major functions are loadedErr, unable to execute VMLAUNCH, status : 0x7Break instruction exception - code 80000003 (first chance)
    hprdbghv!AsmVmxSaveState+0x29:
    fffff803`2e2a8d09 cc int 3
  • @ricnar #4134 08:28 PM, 07 Aug 2023
    We investigated the error
  • @ricnar #4135 08:31 PM, 07 Aug 2023
    I can't copy days of tries and investigation
  • @ricnar #4136 08:31 PM, 07 Aug 2023
    But the conclusion
  • @ricnar #4137 08:31 PM, 07 Aug 2023
    Not fixable
  • @ricnar #4138 08:32 PM, 07 Aug 2023
    No, it's an Intel-ish issue with the layout of hypervisor.

    https://rayanfam.com/topics/hypervisor-from-scratch-part-5/#checking-vmcs-layout
    Hypervisor From Scratch – Part 5: Setting up VMCS & Running Guest Code

    We write about Windows Internals, Hypervisors, Linux, and Networks.

  • @ricnar #4139 08:32 PM, 07 Aug 2023
    These problems are really hard to find/solve. Because generally once a hypervisor works on an older/newer machine, it should also work on mid-range generations of Intel processors too. Which is kinda weird.
  • 08 August 2023 (21 messages)
  • @HughEverett ↶ Reply to #4110 #4141 02:44 AM, 08 Aug 2023
    Probably no, as long as I don't have a physical access to such a computer. But as @ricnar mentioned, the problem with this version is really weird, I don't know what's happening there that VMLANCH fails to execute.
    But, one thing that was interesting for me was the fact that you said the '.connect' works, basically there is no difference between the '.debug' and the '.connect'. Are you loading the driver successfully? 'load vmm'? Or just connecting without loading the driver?
  • @6446676104 ↶ Reply to #4141 #4142 01:09 PM, 08 Aug 2023
    I just run .debug commands on both sides and get bsod. in case of .connect i do the same, i start listen command on debuggee and then run .connect on the other
  • @HughEverett ↶ Reply to #4142 #4143 01:24 PM, 08 Aug 2023
    and the '.connect' bsod the debuggee too? or not?
  • @6446676104 #4144 01:26 PM, 08 Aug 2023
    Nope
  • @HughEverett ↶ Reply to #4144 #4145 01:27 PM, 08 Aug 2023
    😳
  • @6446676104 #4146 01:27 PM, 08 Aug 2023
    Just .debug BSODs the debuggee
  • @6446676104 #4147 01:27 PM, 08 Aug 2023
    I am exporting the VMs to a different laptop for now
  • @HughEverett #4148 01:27 PM, 08 Aug 2023
    So, this is not same as the problem @ricnar mentioned.
  • @6446676104 #4149 01:27 PM, 08 Aug 2023
    I'm not sure what processor that one has
  • @HughEverett ↶ Reply to #4146 #4150 01:28 PM, 08 Aug 2023
    This problem could be fixed, if you can setup a WinDbg (kdnet) to test it.
  • @6446676104 #4151 01:28 PM, 08 Aug 2023
    Ahan
  • @HughEverett ↶ Reply to #4147 #4153 01:30 PM, 08 Aug 2023
    Do you have visual studio (+WDK)? If you can allocate some time for it, we could debug HyperDbg together step-by-step here to find the problem and fix it.
  • @6446676104 #4154 01:35 PM, 08 Aug 2023
    I do have it setup. VS+wdk. But it's on my debugger VM. Which is also win 10
  • @6446676104 #4155 01:35 PM, 08 Aug 2023
    I can confirm first if that VM gets BSOD or not
  • @HughEverett ↶ Reply to #4154 #4156 02:02 PM, 08 Aug 2023
    Windows 10 is pretty okay. Once HyperDbg crashes the system, WinDbg will detect it. After that, we can investigate through the '!analayze -v' results.
  • @sariaki #4157 06:18 PM, 08 Aug 2023
    Hey, I'm trying to make a python script in which I load the HyperDbg DLLs and use them to send commands and receive their outputs. Specifically, I want this to work with scripts.
    Ex:
    HyperDbgInterpreter('? printf(@rax); ')

    ---> Callback:
    read() -> "123"

    Sadly, neither HPRDBGCTRL.HyperDbgInterpreter(), nor script-engine.ScriptEngineSetTextMessageCallback() are triggered for PRINTF() or PRINT().

    Any help?
  • @sariaki #4158 06:19 PM, 08 Aug 2023
    here's my current script:

    import ctypes

    def test_callback(txt: ctypes.c_char_p) -> int:
    print("AAAAAAAAAAAAAAAAAAAAA")
    return 0

    if __name__ == "__main__":
    # Load HyperDbgCTRL into memory
    hdbg_script_dll = ctypes.cdll.LoadLibrary("./script-engine.dll")

    proto_callback = ctypes.WINFUNCTYPE(
    ctypes.c_int, # Return type
    ctypes.c_char_p # Param 1
    )

    cb = proto_callback(test_callback)
    hdbg_script_dll.ScriptEngineSetTextMessageCallback(cb)
    hdbg_dll = ctypes.cdll.LoadLibrary("./HPRDBGCTRL.dll")
    # hdbg_dll.HyperDbgSetTextMessageCallback(cb) <-- also doesn't work

    hdbg_dll.HyperDbgInterpreter(ctypes.c_char_p(b"!? printf(\"asdasdyasd\");"))
  • @sariaki #4159 07:43 PM, 08 Aug 2023
    Looked into it further and
    ScriptEngineFunctionPrint(UINT64 Tag, BOOLEAN ImmediateMessagePassing, UINT64 Value)
    {
    #ifdef SCRIPT_ENGINE_USER_MODE
    ShowMessages("%llx\n", Value);
    #endif // SCRIPT_ENGINE_USER_MODE

    #ifdef SCRIPT_ENGINE_KERNEL_MODE

    //
    // Prepare a buffer to bypass allocating a huge stack space for logging
    //
    char TempBuffer[20] = {0};
    UINT32 TempBufferLen = sprintf(TempBuffer, "%llx", Value);

    LogSimpleWithTag(Tag, ImmediateMessagePassing, TempBuffer, TempBufferLen + 1);

    #endif // SCRIPT_ENGINE_KERNEL_MODE
    }

    should internally be calling g_MessageHandler() in ShowMessages() ??
  • @sariaki #4160 08:43 PM, 08 Aug 2023
    Ah wait scripts are interpreted in the debuggee I think
  • @sariaki #4161 08:44 PM, 08 Aug 2023
    Think I'll just be fowarding everything over sockets
  • @6446676104 ↶ Reply to #4156 #4162 10:26 PM, 08 Aug 2023
    Would it work if we analyze the crash on debuggee VM that doesn't have VS? I can attach windbg to it over network as i already do

    Or do I need VS+wdk in the machine being analyzed for crash
  • 09 August 2023 (186 messages)
  • @HughEverett ↶ Reply to #4157 #4163 08:20 AM, 09 Aug 2023
    Hi, you need to register your custom 'printf-like' function there. You used ScriptEngineSetTextMessageCallback, but that's wrong, this function should be called instead: HyperDbgSetTextMessageCallback.
  • @HughEverett ↶ Reply to #4163 #4164 08:20 AM, 09 Aug 2023

    photo_2023-08-09_08-20-41.jpg
  • @HughEverett #4165 08:21 AM, 09 Aug 2023
    And ShowMessages() will eventually call it.

    photo_2023-08-09_08-21-18.jpg
  • @HughEverett ↶ Reply to #4162 #4166 08:29 AM, 09 Aug 2023
    VS+WDK makes us able to test and fix codes with more flexibility but it's not necessary. Only having WinDbg '!analyze -v' results most of the times works as well.
  • @6446676104 #4167 08:30 AM, 09 Aug 2023
    I'll send you the output of the command
  • @6446676104 ↶ Reply to #4167 #4169 01:19 PM, 09 Aug 2023
    Setup info: win10 debugger vm running windbg and hyperdbg .debug remote command
    debuggee VM being debugged by the first VM and i launch .debug prepare

    output:

    HyperDbg> .debug prepare serial 115200 com1
    current processor vendor is : GenuineIntel
    virtualization technology is vt-x
    vmx operation is supported by your processor
    err, a device attached to the system is not functioning
    vmx feature might be disabled from BIOS or VBS/HVCI is active
    failed to install or load the driver
  • @6446676104 #4170 01:19 PM, 09 Aug 2023
    vt-x is enabled from vmware
  • @6446676104 #4171 01:19 PM, 09 Aug 2023
    i don't see an option for vmx in vmware bios
  • @HughEverett #4172 01:36 PM, 09 Aug 2023
    Driver signature enforcement is disabled?
  • @HughEverett #4173 01:36 PM, 09 Aug 2023
    Yes
  • @HughEverett #4174 01:36 PM, 09 Aug 2023
    How did you disable it?
  • @HughEverett #4175 01:36 PM, 09 Aug 2023
    I did once during startup and once through cmd bcdedit + restart
  • @HughEverett ↶ Reply to #4171 #4176 01:37 PM, 09 Aug 2023
    Can you verify it in the "System Information"?
  • @HughEverett #4177 01:37 PM, 09 Aug 2023

    photo_2023-08-09_13-37-31.jpg
  • @HughEverett ↶ Reply to #4177 #4178 01:37 PM, 09 Aug 2023
    This one.
  • @6446676104 #4179 01:37 PM, 09 Aug 2023
    I checked in the task manager under processor and it didn't show up there. Just said virtual processor: 1
  • @6446676104 #4180 01:37 PM, 09 Aug 2023
    Let me check
  • @6446676104 #4181 01:42 PM, 09 Aug 2023
    Screenshot 2023-08-09 at 6.41.41 PM.png
  • @HughEverett #4182 01:42 PM, 09 Aug 2023
    You run the Windows with Test Mode?
  • @HughEverett #4183 01:42 PM, 09 Aug 2023
    Am I right?
  • @6446676104 #4184 01:43 PM, 09 Aug 2023
    i don't think so. in this case to debug using windbg i run in debug mode
  • @6446676104 #4185 01:43 PM, 09 Aug 2023
    when i was getting BSOD i was not running in debug mode
  • @HughEverett #4186 01:43 PM, 09 Aug 2023
    WinDbg is connected to the VM?
  • @6446676104 #4187 01:43 PM, 09 Aug 2023
    yes right now
  • @6446676104 #4188 01:43 PM, 09 Aug 2023
    and no BSOD since windbg is connected
  • @HughEverett #4189 01:44 PM, 09 Aug 2023
    And you cannot load HyperDbg driver?
  • @HughEverett ↶ Reply to #4188 #4190 01:44 PM, 09 Aug 2023
    🤨🤨🤨
  • @6446676104 #4191 01:44 PM, 09 Aug 2023
    how do i do that manually? i am just running .debug prepare and getting that error
  • @HughEverett #4192 01:45 PM, 09 Aug 2023
    I didn't get the point. WinDbg is connectd to the guest but you get this error?
  • @6446676104 #4193 01:45 PM, 09 Aug 2023
    yes
  • @HughEverett ↶ Reply to #4169 #4194 01:45 PM, 09 Aug 2023
    this one.
  • @6446676104 #4195 01:45 PM, 09 Aug 2023
    yes
  • @HughEverett #4196 01:45 PM, 09 Aug 2023
    It's super weird 🙂
  • @6446676104 #4197 01:46 PM, 09 Aug 2023

    photo_2023-08-09_13-46-27.jpg
  • @HughEverett ↶ Reply to #4197 #4198 01:47 PM, 09 Aug 2023
    The right picture is in the VMware?
  • @HughEverett #4199 01:48 PM, 09 Aug 2023
    VBS is disabled in both sides?
  • @6446676104 #4200 01:48 PM, 09 Aug 2023
    yes, two separate VMs
  • @6446676104 #4201 01:48 PM, 09 Aug 2023
    VBS might be on on debugger side let me confirm
  • @6446676104 #4202 01:48 PM, 09 Aug 2023
    it is disabled on both ends
  • @HughEverett #4203 01:50 PM, 09 Aug 2023
    and also can you confirm that the debugger VM (WinDbg) is able to pause the debuggee VM?
  • @6446676104 #4204 01:50 PM, 09 Aug 2023
    it is
  • @HughEverett #4205 01:51 PM, 09 Aug 2023
    This is weird, maybe previously loaded HyperDbg driver which not yet unloaded?
  • @6446676104 #4206 01:52 PM, 09 Aug 2023
    could be
  • @HughEverett #4207 01:52 PM, 09 Aug 2023
    Can you delete HyperDbg files (including drivers) without annotations (like it's used by other process)?
  • @HughEverett #4208 01:53 PM, 09 Aug 2023
    I'm gonna see whether the driver files are previously loaded or not.
  • @6446676104 #4209 01:53 PM, 09 Aug 2023
    i have 3 different release folder on this system
  • @6446676104 #4210 01:53 PM, 09 Aug 2023
    i should delete all 3?
  • @HughEverett #4211 01:53 PM, 09 Aug 2023
    yes
  • @6446676104 #4212 01:53 PM, 09 Aug 2023
    0.4 and 0.5 and dev
  • @6446676104 #4213 01:53 PM, 09 Aug 2023
    ok
  • @HughEverett #4214 01:54 PM, 09 Aug 2023
    because we don't know which one is still loaded in the system.
  • @6446676104 #4215 01:54 PM, 09 Aug 2023
    aha, latest release folder not being deleted
  • @6446676104 #4216 01:54 PM, 09 Aug 2023
    files in use
  • @HughEverett ↶ Reply to #4216 #4217 01:55 PM, 09 Aug 2023
    Go on the same file (that won't be deleted), then use 'connect local' and 'load vmm'
  • @HughEverett #4218 01:55 PM, 09 Aug 2023
    after that, run 'unload remove vmm'
  • @HughEverett #4219 01:55 PM, 09 Aug 2023
    to delete the drivers.
  • @6446676104 #4220 01:56 PM, 09 Aug 2023
    cli exe deleted
  • @6446676104 #4221 01:56 PM, 09 Aug 2023
    just left with drivers in that folder
  • @HughEverett #4222 01:56 PM, 09 Aug 2023
    no worries, copy the cli from whatever version you have
  • @6446676104 #4223 01:56 PM, 09 Aug 2023
    ok
  • @6446676104 #4224 01:59 PM, 09 Aug 2023
    HyperDbg> connect local
    local debugging (vmi-mode)

    HyperDbg> load vmm
    loading the vmm driver
    current processor vendor is : GenuineIntel
    virtualization technology is vt-x
    vmx operation is supported by your processor
    err, a device attached to the system is not functioning
    vmx feature might be disabled from BIOS or VBS/HVCI is active
    failed to install or load the driver

    HyperDbg> unload remove vmm
    there is nothing to unload
    the driver is removed

    HyperDbg>
  • @6446676104 #4225 01:59 PM, 09 Aug 2023
    deleted the folder and now it is deleted
  • @6446676104 #4226 02:01 PM, 09 Aug 2023
    should i try .debug prepare now
  • @6446676104 #4227 02:01 PM, 09 Aug 2023
    or just load vmm first
  • @HughEverett #4228 02:01 PM, 09 Aug 2023
    yes
  • @HughEverett #4229 02:01 PM, 09 Aug 2023
    I think it's better to first run it locally 'connect local' 'load vmm'
  • @HughEverett #4230 02:01 PM, 09 Aug 2023
    to make sure that it works in VMI Mode.
  • @HughEverett #4231 02:01 PM, 09 Aug 2023
    After that 'unload remove vmm'
  • @HughEverett #4232 02:02 PM, 09 Aug 2023
    Once we confirm that it works in VMI Mode, we will get to the '.debug' problem.
  • @6446676104 #4233 02:02 PM, 09 Aug 2023
    one more question
  • @6446676104 #4234 02:02 PM, 09 Aug 2023
    should i do thiss with windbg connected
  • @HughEverett ↶ Reply to #4234 #4235 02:02 PM, 09 Aug 2023
    yes
  • @6446676104 #4236 02:02 PM, 09 Aug 2023
    ok
  • @6446676104 #4237 02:08 PM, 09 Aug 2023
    HyperDbg> connect local
    local debugging (vmi-mode)

    HyperDbg> load vmm
    loading the vmm driver
    current processor vendor is : GenuineIntel
    virtualization technology is vt-x
    vmx operation is supported by your processor
    err, a device attached to the system is not functioning
    vmx feature might be disabled from BIOS or VBS/HVCI is active
    failed to install or load the driver
  • @6446676104 #4238 02:08 PM, 09 Aug 2023
    😕
  • @6446676104 #4239 02:08 PM, 09 Aug 2023
    with windbg connected driver sig option shouldn't be an issue right?
  • @HughEverett ↶ Reply to #4239 #4240 02:09 PM, 09 Aug 2023
    yes
  • @HughEverett #4241 02:09 PM, 09 Aug 2023
    that's why I say it's weird
  • @HughEverett #4242 02:10 PM, 09 Aug 2023
    Generally, HyperDbg shows this message only if the error message of driver loading indicates an integrity error.
  • @HughEverett #4243 02:10 PM, 09 Aug 2023
    I don't have any idea which component is preventing it from running
  • @6446676104 #4244 02:13 PM, 09 Aug 2023
    debuggee vm has an AV installed, debugger vm doesn't. will try load vmm on debugger vm
  • @6446676104 #4245 02:35 PM, 09 Aug 2023
    same issue sadly, testsigning on still this. no AV here either

    HyperDbg> .connect local
    local debugging (vmi-mode)

    HyperDbg> load vmm
    loading the vmm driver
    err, failed loading driver
    it's because either the driver signature enforcement is enabled or HVCI prevents the driver from loading
    you should disable the driver signature enforcement by attaching WinDbg or from the boot menu
    if the driver signature enforcement is disabled, HVCI might prevent the driver from loading
    HyperDbg is not compatible with Virtualization Based Security (VBS)
    please follow the instructions from: https://docs.hyperdbg.org/getting-started/build-and-install
    unable to install VMM driver
    failed to install or load the driver
    Build & Install

    This document helps you to build and install HyperDbg

  • @6446676104 #4246 03:01 PM, 09 Aug 2023
    is there a way to confirm driver sig enforcement being off?
  • @HughEverett ↶ Reply to #4246 #4247 03:01 PM, 09 Aug 2023
    🤔
  • @6446676104 #4248 03:02 PM, 09 Aug 2023
    any way to confirm this "Driver signature enforcement is disabled?"
  • @HughEverett ↶ Reply to #4248 #4249 03:02 PM, 09 Aug 2023
    Did you also test this method?
    https://www.tenforums.com/tutorials/156602-how-enable-disable-driver-signature-enforcement-windows-10-a.html
    How to Enable or Disable Driver Signature Enforcement in Windows 10 - Windows 10 Help Forums

    How to Enable or Disable Driver Signature Enforcement and Test Mode in Windows 10

  • @6446676104 #4250 03:02 PM, 09 Aug 2023
    bcdedit /set testsigning on
  • @HughEverett ↶ Reply to #4250 #4251 03:03 PM, 09 Aug 2023
    No, I mean pressing shift and restarting
  • @6446676104 #4252 03:03 PM, 09 Aug 2023
    this method is in there
  • @6446676104 #4253 03:03 PM, 09 Aug 2023
    i can try that
  • @6446676104 #4254 03:03 PM, 09 Aug 2023
    lemme see
  • @HughEverett #4255 03:03 PM, 09 Aug 2023

    photo_2023-08-09_15-03-32.jpg
  • @HughEverett ↶ Reply to #4255 #4256 03:03 PM, 09 Aug 2023
    This one
  • @6446676104 #4257 03:03 PM, 09 Aug 2023
    yes let me try on this VM
  • @6446676104 #4258 03:03 PM, 09 Aug 2023
    i did try this before
  • @6446676104 #4259 03:05 PM, 09 Aug 2023
    i tried this method and now i have BSOD
  • @6446676104 #4260 03:06 PM, 09 Aug 2023
    means driver probably got loaded but i got BSOD
  • @HughEverett #4261 03:06 PM, 09 Aug 2023
    yes, it means that HyperDbg's driver is loaded
  • @HughEverett #4262 03:06 PM, 09 Aug 2023
    yes
  • @6446676104 #4263 03:06 PM, 09 Aug 2023
    yes
  • @6446676104 #4264 03:06 PM, 09 Aug 2023
    i now need to recreate with windbg connected
  • @HughEverett #4265 03:06 PM, 09 Aug 2023
    Did you run '.connect' or '.debug'?
  • @6446676104 #4266 03:06 PM, 09 Aug 2023
    i did load vmm after .connect local
  • @HughEverett ↶ Reply to #4143 #4267 03:07 PM, 09 Aug 2023
    .
  • @HughEverett ↶ Reply to #4266 #4268 03:07 PM, 09 Aug 2023
    Are experiencing this BSOD on '.connect' for the first time?
  • @6446676104 #4269 03:08 PM, 09 Aug 2023
    only on load vmm
  • @HughEverett #4270 03:08 PM, 09 Aug 2023
    I thought the problem is only for the '.debug'.
  • @6446676104 #4271 03:08 PM, 09 Aug 2023
    i guess it is with driver being loaded
  • @6446676104 #4272 03:09 PM, 09 Aug 2023
    when i did .connect in past
  • @6446676104 #4273 03:09 PM, 09 Aug 2023
    i did not do local VMI
  • @6446676104 #4274 03:09 PM, 09 Aug 2023
    i did remote
  • @6446676104 #4275 03:09 PM, 09 Aug 2023
    and no BSOD occurred
  • @6446676104 #4276 03:09 PM, 09 Aug 2023
    i did not load driver manually with "load vmm" either
  • @HughEverett ↶ Reply to #4276 #4277 03:10 PM, 09 Aug 2023
    Okay, I hope that we don't conclude that the error is because of 'error number 7', with 'Guest Invalid State' of the VMLAUNCH instruction.
  • @HughEverett #4278 03:11 PM, 09 Aug 2023
    Because, this is something that processor doesn't give more information about what exactly happened and can have thousands of reasons.
  • @6446676104 #4279 03:12 PM, 09 Aug 2023
    !analyze -v won't help debug this?
  • @HughEverett ↶ Reply to #4279 #4280 03:14 PM, 09 Aug 2023
    If this is a CPU error, then no. It won't help. It's not a software error, CPU throws it without further information. WinDbg can tell us that the reason for error is because CPU gave this error, but it doesn't have further information why this error happens.
  • @6446676104 #4281 03:14 PM, 09 Aug 2023
    i see
  • @6446676104 #4282 03:14 PM, 09 Aug 2023
    maybe i should try importing my VMs to a separate PC them
  • @6446676104 #4283 03:14 PM, 09 Aug 2023
    then*
  • @6446676104 #4284 04:56 PM, 09 Aug 2023
    can't believe my luck 🙁 both my laptops have the exact same CPU, macbook pro i7-9750H and XPS 7590 with i7-9750H
  • @ricnar #4285 04:58 PM, 09 Aug 2023
    Maybe using the target nested into the host can help?
  • @ricnar #4286 04:58 PM, 09 Aug 2023
    Did you try this option?
  • @ricnar #4287 04:59 PM, 09 Aug 2023
    Two vms
  • @ricnar #4288 04:59 PM, 09 Aug 2023
    The target nested into the host
  • @6446676104 #4289 04:59 PM, 09 Aug 2023
    maybe i could try that yes
  • @6446676104 #4290 04:59 PM, 09 Aug 2023
    thanks for the suggestion
  • @ricnar #4291 05:00 PM, 09 Aug 2023
    I didn't try
  • @ricnar #4292 05:01 PM, 09 Aug 2023
    I changed the target to w11 and it worked for me in the same processor
  • @ricnar #4293 05:02 PM, 09 Aug 2023
    I don't know why
  • @HughEverett ↶ Reply to #4292 #4294 05:05 PM, 09 Aug 2023
    🤨🤨🤨
  • @HughEverett #4295 05:05 PM, 09 Aug 2023
    Really? It works on Win 11 with a 9 gen Intel processor?
  • @HughEverett #4296 05:05 PM, 09 Aug 2023
    What could be wrong 🤔
  • @6446676104 #4297 05:05 PM, 09 Aug 2023
    @HughEverett just attached windbg to the crashed VM, will share crash logs
  • @ricnar ↶ Reply to #4296 #4298 05:07 PM, 09 Aug 2023
    I don't know
  • @HughEverett ↶ Reply to #4298 #4299 05:07 PM, 09 Aug 2023
    This shows that, something is changed in Windows that we didn't notice. 🤔🤔🤔
  • @ricnar #4300 05:08 PM, 09 Aug 2023
    Changing the VM target solved my problem
  • @6446676104 #4301 05:08 PM, 09 Aug 2023
    i really hope this can be fixed for windows 10 plus same cpu :p
  • @ricnar #4302 05:08 PM, 09 Aug 2023
    Your w10s is updated?
  • @6446676104 #4303 05:08 PM, 09 Aug 2023
    not for the past 3 4 months
  • @6446676104 #4304 05:09 PM, 09 Aug 2023
    but i can't update it now
  • @ricnar #4305 05:09 PM, 09 Aug 2023
    Hmm
  • @6446676104 #4306 05:09 PM, 09 Aug 2023
    can't change the research setup
  • @ricnar #4307 05:09 PM, 09 Aug 2023
    I can't be sure if this can solve but you can try
  • @HughEverett ↶ Reply to #4300 #4308 05:09 PM, 09 Aug 2023
    But it's kinda weird, because the first release of HyperDbg was developed on a Skylake 6 gen Intel CPU. After that, I moved to a 12 gen Alder Lake processor. But, I didn't change anything special since then. That's why it should be compatible with older processors as well.
  • @6446676104 #4309 05:10 PM, 09 Aug 2023
    crash_dump.txt
  • @6446676104 #4310 05:11 PM, 09 Aug 2023
    say something that gives hope now :p
  • @HughEverett ↶ Reply to #4309 #4311 05:12 PM, 09 Aug 2023
    Can you load the pdb file of the hprdbghv and get the result of '!analyze -v' again?
  • @6446676104 #4312 05:12 PM, 09 Aug 2023
    could share the pdb files for release 0.5?
  • @HughEverett ↶ Reply to #4312 #4313 05:13 PM, 09 Aug 2023
    Yes
  • @6446676104 #4314 05:13 PM, 09 Aug 2023
    more than happy to
  • @HughEverett ↶ Reply to #4312 #4315 05:13 PM, 09 Aug 2023
    Of course, use the pdb file of the version that you used in VM
  • @HughEverett ↶ Reply to #4314 #4316 05:13 PM, 09 Aug 2023
    Why? 😅
  • @6446676104 #4317 05:14 PM, 09 Aug 2023
    i mean i am happy to load pdbs to debug the issue :p
  • @HughEverett #4318 05:14 PM, 09 Aug 2023
    It doesn't necessarily lead to solving the issue 😁😅
  • @6446676104 #4319 05:14 PM, 09 Aug 2023
    i hope it does :p
  • @HughEverett ↶ Reply to #4319 #4320 05:16 PM, 09 Aug 2023
    Debugging HyperDbg is really hard. I can't count the number of times, HyperDbg crashed random processes in the system without a clue of what's happening there. 🤪
  • @6446676104 #4321 05:16 PM, 09 Aug 2023
    understandable it isnt a small program
  • @HughEverett ↶ Reply to #4320 #4322 05:17 PM, 09 Aug 2023
    There are some facilities there like 'LogInfo' macro function designed to debug HyperDbg by sending the information out in the serial port before crashing the entire system.
  • @6446676104 #4323 05:25 PM, 09 Aug 2023
    failed to reproduce crash but running load vmm produced this in windbg

    kd> g
    Break instruction exception - code 80000003 (first chance)
    hprdbghv!AsmVmxSaveState+0x29:
    fffff800`22388cf9 cc int 3
  • @6446676104 #4324 05:25 PM, 09 Aug 2023
    i think i haven't been able to produce the crash with windbg attached
  • @ricnar #4325 05:26 PM, 09 Aug 2023
    If You continue
  • @HughEverett ↶ Reply to #4323 #4326 05:26 PM, 09 Aug 2023
    Bad news, this is the same error @ricnar encountered.
  • @ricnar #4327 05:26 PM, 09 Aug 2023
    The bsod Will be produced
  • @ricnar #4328 05:27 PM, 09 Aug 2023
    Windbg stops previous to the bsod
  • @6446676104 #4329 05:27 PM, 09 Aug 2023
    i see
  • @ricnar #4330 05:27 PM, 09 Aug 2023
    Press g
  • @ricnar #4331 05:27 PM, 09 Aug 2023
    Bsod
  • @6446676104 #4332 05:27 PM, 09 Aug 2023
    i did
  • @6446676104 #4333 05:27 PM, 09 Aug 2023
    no bsod
  • @6446676104 #4334 05:27 PM, 09 Aug 2023
    failed to load driver
  • @6446676104 #4335 05:29 PM, 09 Aug 2023
    does anyone know of a technique or tool that can produce results like !monitor
  • @6446676104 #4336 05:30 PM, 09 Aug 2023
    my usecase is to find the address of a buffer when it is being written to (achieved with windbg) then put basically a hardware bp on whole buffer to see where it is accessed again
  • @ricnar #4337 05:31 PM, 09 Aug 2023
    Hardware bp size maximum is 4
  • @6446676104 #4338 05:32 PM, 09 Aug 2023
    yup. so anything like !monitor
  • @6446676104 #4339 05:32 PM, 09 Aug 2023
    that can be done without hyperdbg
  • @ricnar #4340 05:32 PM, 09 Aug 2023
    Is a kernel o user buffer?
  • @ricnar #4341 05:33 PM, 09 Aug 2023
    In user mode space or kernel
  • @6446676104 #4342 05:33 PM, 09 Aug 2023
    kernel
  • @6446676104 #4343 05:34 PM, 09 Aug 2023
    and i think i can't change page protection in my case as it is kernel
  • @6446676104 #4344 05:35 PM, 09 Aug 2023
    @HughEverett any ideas?
  • @HughEverett ↶ Reply to #4344 #4345 05:36 PM, 09 Aug 2023
    As it's in kernel, probably the only option is HyperDbg.
  • @HughEverett #4346 05:37 PM, 09 Aug 2023
    Also, ddimon has this functionality but didn't test it:
    https://github.com/tandasat/DdiMon
    GitHub - tandasat/DdiMon: Monitoring and controlling kernel API calls with stealth hook using EPT

    Monitoring and controlling kernel API calls with stealth hook using EPT - GitHub - tandasat/DdiMon: Monitoring and controlling kernel API calls with stealth hook using EPT

  • @ricnar #4347 05:37 PM, 09 Aug 2023
    Try updating or nesting the target
  • @ricnar #4348 05:39 PM, 09 Aug 2023
    The fact than I can use the 9 gen processor in w11
  • @ricnar #4349 05:40 PM, 09 Aug 2023
    Is indication this bug can be a combination between software and processor
  • 10 August 2023 (1 messages)
  • @5633325105 #4350 06:23 AM, 10 Aug 2023
    Joined.
  • 12 August 2023 (3 messages)
  • @slightclarity #4351 07:00 PM, 12 Aug 2023
    Joined.
  • @slightclarity #4352 07:02 PM, 12 Aug 2023
    How can I do a step-by-step tracing on amd-v(svm)?
  • @HughEverett ↶ Reply to #4352 #4353 07:29 PM, 12 Aug 2023
    Hi,
    If you mean simple tracing (like WinDbg's "t" command) then you can use WinDbg or if it's a user-mode application both WinDbg and x64dbg. I'm sure x64dbg has some tracing facilities. But, if you are looking for something like instrumentation step-in in HyperDbg (user-mode to kernel-mode), I can't think of any alternative way other than HyoerDbg on Intel processors. Maybe 'dtrace' can help but I'm even not sure if it works on AMD processors or not.
  • 13 August 2023 (4 messages)
  • @LogicCavalier #4354 07:09 AM, 13 Aug 2023
    Joined.
  • @1103981232 #4355 12:43 PM, 13 Aug 2023
    Joined.
  • @5783380452 #4356 12:54 PM, 13 Aug 2023
    Hello,
    What is the HyperDbg and what can i do with hyperdbg?
  • @5539033269 #4357 12:58 PM, 13 Aug 2023
    I thought it’s common sense to check manual/guide before asking “what my computer do” kind questions😓
  • 15 August 2023 (1 messages)
  • @invisibeOS #4359 06:22 AM, 15 Aug 2023
    Joined.
  • 18 August 2023 (1 messages)
  • @2043750897 #4360 04:55 AM, 18 Aug 2023
    Joined.
  • 21 August 2023 (165 messages)
  • @sky80falcon #4361 01:52 AM, 21 Aug 2023
    Joined.
  • @ricnar #4362 09:34 AM, 21 Aug 2023

    photo_2023-08-21_09-34-21.jpg
  • @ricnar #4363 09:36 AM, 21 Aug 2023
    the unpackme that in hyperdbg does not reach the entry point, it reaches the entry point in x64dbg in its 32-bit version, it does not have TLS or does anything before the entry point, the detection is after it.
  • @ricnar #4364 09:36 AM, 21 Aug 2023
    i think some header value conflicts with hyperdbg
  • @HughEverett ↶ Reply to #4364 #4365 09:37 AM, 21 Aug 2023
    header value?
  • @ricnar #4366 09:37 AM, 21 Aug 2023
    no code is executed previous EP
  • @ricnar #4367 09:37 AM, 21 Aug 2023
    some abnormal value
  • @ricnar #4368 09:37 AM, 21 Aug 2023
    no code is executed previous the entry point
  • @HughEverett ↶ Reply to #4367 #4369 09:37 AM, 21 Aug 2023
    what kind of value?
  • @ricnar #4370 09:38 AM, 21 Aug 2023
    ii don't know
  • @HughEverett #4371 09:38 AM, 21 Aug 2023
    Would you please send me the file.
  • @HughEverett #4372 09:38 AM, 21 Aug 2023
    I'm gonna test it now
  • 1
  • 2
  • 02 Aug 2023 (31)
  • 03 Aug 2023 (17)
  • 04 Aug 2023 (50)
  • 06 Aug 2023 (50)
  • 07 Aug 2023 (123)
  • 08 Aug 2023 (21)
  • 09 Aug 2023 (186)
  • 10 Aug 2023 (1)
  • 12 Aug 2023 (3)
  • 13 Aug 2023 (4)
  • 15 Aug 2023 (1)
  • 18 Aug 2023 (1)
  • 21 Aug 2023 (165)
  • 22 Aug 2023 (35)
  • 26 Aug 2023 (2)
  • 27 Aug 2023 (1)
  • 28 Aug 2023 (14)
  • 29 Aug 2023 (14)
  • 30 Aug 2023 (38)