@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
  • 16 May 2022 (117 messages)
  • @Rwkeith #92 08:55 PM, 16 May 2022
    Joined.
  • @Rwkeith #93 09:03 PM, 16 May 2022
    Hey guys
  • @HughEverett #94 09:04 PM, 16 May 2022
    Hi
  • @HughEverett #95 09:05 PM, 16 May 2022
    The discussion is based on this thread I think
  • @HughEverett #96 09:05 PM, 16 May 2022
    https://github.com/HyperDbg/HyperDbg/issues/165
    Kernel Panic introduced · Issue #165 · HyperDbg/HyperDbg

    Describe the bug On load vmm, kernel panic with error WHEA_UNCORRECTABLE_ERROR To Reproduce Introduced somewhere between commits: 9ee4f34 April 5th (working) 14c6764 April 8th (fails) Expected beha...

  • @Rwkeith #97 09:05 PM, 16 May 2022
    yes
  • @Rwkeith #98 09:06 PM, 16 May 2022
    I'm double checking the commit again
  • @HughEverett #99 09:06 PM, 16 May 2022
    So, can you provide the exact commit that causes this problem ?
  • @HughEverett #100 09:06 PM, 16 May 2022
    As you said it's somewhere in April
  • @HughEverett #101 09:08 PM, 16 May 2022
    Joined.
  • @Rwkeith #102 09:09 PM, 16 May 2022
    yeah, so this commit is the earliest I've found so far that bugchecks or hangs as soon as I do load vmm 9ee4f34dbb1a1b3db061376d1d92d868e2775d2f
  • @HughEverett ↶ Reply to #102 #103 09:10 PM, 16 May 2022
    You mean before this commit you didn't have the problem but after that the problem appears, right?
  • @Rwkeith #104 09:12 PM, 16 May 2022
    the latest commit I've tested and works is 728e6ea6bb2af6e8e09d9462f059cb38ef40d687
  • @HughEverett #105 09:12 PM, 16 May 2022
    Can you send the github link of this commit ? I don't know how to map it to exact commit link in github.
  • @Rwkeith #106 09:12 PM, 16 May 2022
    https://github.com/HyperDbg/HyperDbg/commit/9ee4f34dbb1a1b3db061376d1d92d868e2775d2f
    Refactor: Port all CPU (VT-x) related data structures to the "IA32-do… · HyperDbg/HyperDbg@9ee4f34

    …c" library. - vmcs - vpid

  • @HughEverett ↶ Reply to #106 #107 09:13 PM, 16 May 2022
    so, this is the guilty commit?
  • @Rwkeith #108 09:13 PM, 16 May 2022
    I'll try to continue the binary search
  • @HughEverett #109 09:14 PM, 16 May 2022
    👌👌😁
  • @HughEverett #110 09:14 PM, 16 May 2022
    Binary search always works.
  • @Rwkeith #111 09:28 PM, 16 May 2022
    Uh, so I'm conflicted to report what commit, because there are multiple bugs I'm finding that could be related or unrelated to this.
  • @Rwkeith #112 09:31 PM, 16 May 2022
    The April 5th commit, 3fc843d7abeb1810d2d698f7b05db1805ee37f15 has 2 bugs. If I do .sym reload after setting .sympath, hyperdbg-cli crashes when executing the command.
  • @Rwkeith #113 09:36 PM, 16 May 2022
    The April 1st commit here, 3fc843d7abeb1810d2d698f7b05db1805ee37f15 , I can load symbols, I can load vmm without crashing, but when I unload remove vmm, I crash after about 15-20 seconds. Tested multiple times.
  • @Rwkeith #114 09:36 PM, 16 May 2022

    photo_2022-05-16_21-36-44.jpg
  • @Rwkeith #115 09:37 PM, 16 May 2022
    using remote desktop with the physical machine
  • @Rwkeith #116 09:38 PM, 16 May 2022
    so 3fc843d7abeb1810d2d698f7b05db1805ee37f15 is the latest I've tried so far without dying on load vmm
  • @HughEverett #117 09:40 PM, 16 May 2022
    you mean the commit after the 3fc843d7abeb1810d2d698f7b05db1805ee37f15 caused the problem. right?
  • @Rwkeith #118 09:47 PM, 16 May 2022
    b1d7415ee39f75c0b2822e0e6cccbe4b4cd6cbd3 is the earliest commit I've tested and fails.
  • @HughEverett ↶ Reply to #118 #119 09:48 PM, 16 May 2022
    okay, would you pls send its github link.
  • @Rwkeith #120 09:48 PM, 16 May 2022
    https://github.com/HyperDbg/HyperDbg/commit/b1d7415ee39f75c0b2822e0e6cccbe4b4cd6cbd3
    Refactor: Port all CPU (VT-x) related data structures to the "IA32-do… · HyperDbg/HyperDbg@b1d7415

    …c" library. - This commit contains lots of changes that need to be tested, so properly it's unstable.

  • @Rwkeith #121 09:48 PM, 16 May 2022
    there's a lot of commits between
  • @Rwkeith #122 09:50 PM, 16 May 2022
    actually only about 5, commit 16100f51f68b4feba1730b333d72f972266fcefa
    Author: Behrooz Abbassi <BehroozAbbassi@outlook.com>
    Date: Mon Apr 4 14:50:13 2022 -0700

    Refactor: Port all CPU (VT-x) related data structures to the "IA32-doc" library.

    - Control Registers
    - Debug Registers
    - Paging structures

    commit b1d7415ee39f75c0b2822e0e6cccbe4b4cd6cbd3
    Author: Behrooz Abbassi <BehroozAbbassi@outlook.com>
    Date: Mon Apr 4 13:36:33 2022 -0700

    Refactor: Port all CPU (VT-x) related data structures to the "IA32-doc" library.

    - This commit contains lots of changes that need to be tested, so properly it's unstable.

    commit 9871c1613e86fa087091f302d5c97b611346f1db
    Author: Behrooz Abbassi <BehroozAbbassi@outlook.com>
    Date: Mon Apr 4 10:58:59 2022 -0700

    Refactor: Add "IA32-doc" library as a replacement to all IA32 data structures.

    commit 340730e29fa59b55f1b782d0409dee540d3bd0ef
    Merge: e4166e36 216077e8
    Author: Mohammad Sina Karvandi <SinaKarvandi@users.noreply.github.com>
    Date: Sat Apr 2 20:56:57 2022 +0430

    Merge pull request #147 from HyperDbg/dev

    Dev

    commit 216077e8e722235047ff69ae8858c875dfaae3ac
    Author: SinaKarvandi <ms.karvandi@yahoo.com>
    Date: Sat Apr 2 20:56:16 2022 +0430

    fix memory search errors in user mode addresses for debugger mode
    :
  • @Rwkeith #123 09:52 PM, 16 May 2022
    to find it on github, just replace the commit hash at the end of the url with the one you want to check
  • @HughEverett #124 09:52 PM, 16 May 2022
    yep
  • @Rwkeith #125 09:52 PM, 16 May 2022
    I'll try to narrow it down again
  • @HughEverett #126 09:53 PM, 16 May 2022

    photo_2022-05-16_21-53-28.jpg
  • @HughEverett #127 09:54 PM, 16 May 2022
    From your descriptions, I concluded the guilty commit is the one marked with 'x'.
  • @Rwkeith #128 09:54 PM, 16 May 2022
    I'll see if that's true
  • @HughEverett #129 09:54 PM, 16 May 2022
    Would you please check the commit before, i mean this commit: https://github.com/HyperDbg/HyperDbg/commit/9871c1613e86fa087091f302d5c97b611346f1db
    Refactor: Add "IA32-doc" library as a replacement to all IA32 data st… · HyperDbg/HyperDbg@9871c16

    …ructures.

  • @HughEverett #130 09:54 PM, 16 May 2022
    and verify if it's working or not?
  • @Rwkeith #131 09:59 PM, 16 May 2022
    it works on load vmm
  • @Rwkeith #132 09:59 PM, 16 May 2022

    photo_2022-05-16_21-59-50.jpg
  • @HughEverett #133 10:00 PM, 16 May 2022
    That's cool, now we know that sth in https://github.com/HyperDbg/HyperDbg/commit/b1d7415ee39f75c0b2822e0e6cccbe4b4cd6cbd3 causes the errors.
    Refactor: Port all CPU (VT-x) related data structures to the "IA32-do… · HyperDbg/HyperDbg@b1d7415

    …c" library. - This commit contains lots of changes that need to be tested, so properly it's unstable.

  • @HughEverett ↶ Reply to #133 #134 10:00 PM, 16 May 2022
    sry
  • @Rwkeith #135 10:01 PM, 16 May 2022
    but, I still bugcheck after I do unload remove vmm, but that could be a separate bug.j
  • @HughEverett #136 10:01 PM, 16 May 2022
    https://github.com/HyperDbg/HyperDbg/commit/b1d7415ee39f75c0b2822e0e6cccbe4b4cd6cbd3
    Refactor: Port all CPU (VT-x) related data structures to the "IA32-do… · HyperDbg/HyperDbg@b1d7415

    …c" library. - This commit contains lots of changes that need to be tested, so properly it's unstable.

  • @HughEverett ↶ Reply to #136 #137 10:01 PM, 16 May 2022
    this commit i mean
  • @HughEverett ↶ Reply to #137 #138 10:01 PM, 16 May 2022
    is it true?
  • @Rwkeith #139 10:03 PM, 16 May 2022
    9871c1613e86fa087091f302d5c97b611346f1db works on vmm load
  • @Rwkeith #140 10:04 PM, 16 May 2022
    b1d7415ee39f75c0b2822e0e6cccbe4b4cd6cbd3 fails
  • @HughEverett #141 10:05 PM, 16 May 2022
    That's okay, tomorrow I'll try to figure out the problem of 'load vmm' on this commit.
  • @HughEverett #142 10:05 PM, 16 May 2022
    Now, is there any other problem? other than 'load vmm' crash.
  • @Rwkeith #143 10:09 PM, 16 May 2022
    okay yes, b1d7415ee39f75c0b2822e0e6cccbe4b4cd6cbd3 is the guilty commit for load vmm. Sorry, it was a lot of commits to go through
  • @Rwkeith #144 10:09 PM, 16 May 2022
    and I can check to see if I'm able to load symbols
  • @HughEverett ↶ Reply to #143 #145 10:09 PM, 16 May 2022
    yep, thanks a lot for finding it 🙏
  • @HughEverett ↶ Reply to #144 #146 10:09 PM, 16 May 2022
    👍
  • @Rwkeith #147 10:13 PM, 16 May 2022
    wait, I'm sorry
  • @Rwkeith #148 10:17 PM, 16 May 2022
    okay yeah, 9871c1613e86fa087091f302d5c97b611346f1db does work. I saw the image I posted above that said the driver failed to install, but I guess I needed to reboot after my last load.

    photo_2022-05-16_22-17-45.jpg
  • @HughEverett ↶ Reply to #148 #149 10:23 PM, 16 May 2022
    that's okay. what is the problem with symbol loading?
  • @Rwkeith #150 10:24 PM, 16 May 2022
    .dsymbols load fine on that commit
  • @HughEverett ↶ Reply to #150 #151 10:24 PM, 16 May 2022
    Does it have problem on the latest commit ?
  • @Rwkeith #152 10:26 PM, 16 May 2022
    symbols load fine on the latest commit
  • @Rwkeith #153 10:26 PM, 16 May 2022
    when I do .sym reload
  • @Rwkeith #154 10:26 PM, 16 May 2022
    after setting sympath
  • @HughEverett ↶ Reply to #152 #155 10:28 PM, 16 May 2022
    that's good
  • @HughEverett #156 10:28 PM, 16 May 2022
    any other problems?
  • @HughEverett ↶ Reply to #154 #157 10:29 PM, 16 May 2022
    I assume it's fixed as you said it's fine in the latest commit. isn't there any other problem with .sym ?
  • @Rwkeith #158 10:30 PM, 16 May 2022
    I'm just being very specific with the steps I did
  • @Rwkeith #159 10:30 PM, 16 May 2022
    I haven't tested all cases
  • @Rwkeith #160 10:30 PM, 16 May 2022
    If I'm aware of any other bugs I'll let you know
  • @HughEverett #161 10:30 PM, 16 May 2022
    yeah, i know
  • @HughEverett #162 10:30 PM, 16 May 2022
    thanks
  • @Rwkeith ↶ Reply to #162 #163 10:30 PM, 16 May 2022
    no problem
  • @HughEverett #164 10:30 PM, 16 May 2022
    i'll try to fix that 'load vmm' error
  • @HughEverett #165 10:31 PM, 16 May 2022
    also, do you have a crash dump for it?
  • @Rwkeith #166 10:31 PM, 16 May 2022
    yes, one moment
  • @HughEverett #167 10:32 PM, 16 May 2022
    or if there is not crash dump, then the result of WinDbg's !analyze -v will be helpful.
  • @Rwkeith #168 10:39 PM, 16 May 2022
    this is frustrating. I'm able to load vmm on that supposed guilty commit b1d7415ee39f75c0b2822e0e6cccbe4b4cd6cbd3
  • @Rwkeith #169 10:40 PM, 16 May 2022
    actually no, it prevented me from loading cause I didn't set the sympath
  • @Rwkeith #170 10:47 PM, 16 May 2022
    051622-9171-01.dmp
  • @Rwkeith #171 10:48 PM, 16 May 2022
    I was just able to do a load vmm succesfully on the suspicious commit....
  • @Rwkeith #172 10:48 PM, 16 May 2022
    I think it's because I warm reboot, instead of from cold..
  • @HughEverett ↶ Reply to #171 #173 10:49 PM, 16 May 2022
    So, we still didn't find the guilty commit.
  • @Rwkeith #174 10:49 PM, 16 May 2022
    I died on it the first attempt on that commit
  • @Rwkeith #175 10:49 PM, 16 May 2022
    on load vmm instantly
  • @Rwkeith #176 10:49 PM, 16 May 2022
    but I just retried, and I successfully loaded...
  • @HughEverett #177 10:50 PM, 16 May 2022
    😕
  • @Rwkeith #178 10:50 PM, 16 May 2022
    I'm shutting down. waiting for a minute, and doing another run
  • @HughEverett #179 10:50 PM, 16 May 2022
    I know what you mean
  • @HughEverett #180 10:50 PM, 16 May 2022
    These are the dark sides of developing such thing
  • @HughEverett #181 10:51 PM, 16 May 2022
    Also, pls shutdown and retest it on the latest commit again.
  • @HughEverett #182 10:51 PM, 16 May 2022
    Maybe it worked.
  • @Rwkeith #183 10:52 PM, 16 May 2022
    Ughhhh, it worked again...
  • @HughEverett #184 10:52 PM, 16 May 2022
    Don't worry, I'm sure you can find it. ✌️
  • @HughEverett ↶ Reply to #181 #185 10:53 PM, 16 May 2022
    .
  • @Rwkeith #186 11:28 PM, 16 May 2022
    I have no idea...the latest commit also wroks now consistently...
  • @Rwkeith #187 11:29 PM, 16 May 2022
    sorry. I didn't unload *remove* vmm between those tests. So ignore that
  • @HughEverett ↶ Reply to #186 #188 11:31 PM, 16 May 2022
    That's great. Maybe the reason for the crash was the way you reset (cold boot or sth like this)
  • @Rwkeith #189 11:31 PM, 16 May 2022
    no it's cause I forgot to do unload remove vmm
  • @Rwkeith #190 11:31 PM, 16 May 2022
    if I don't remove, it resuses the driver that was last registered, which was in a different folder
  • @Rwkeith #191 11:32 PM, 16 May 2022
    so it used the driver from another build
  • @HughEverett #192 11:32 PM, 16 May 2022
    Okay.
  • @HughEverett ↶ Reply to #190 #193 11:33 PM, 16 May 2022
    That's sth interesting
  • @Rwkeith #194 11:33 PM, 16 May 2022
    10f029b0cfd0723dbbe5ceb394ef83586b7b942a was the last commit (April 5) that I've tested and worked on vmm load
  • @HughEverett ↶ Reply to #191 #195 11:33 PM, 16 May 2022
    We should have a solution for this.
  • @HughEverett #196 11:35 PM, 16 May 2022
    All in all, we can conclude that the latest commit doesn't have any problem.
    For solving that issue, we should check the driver to match with the executable.
  • @HughEverett ↶ Reply to #196 #197 11:35 PM, 16 May 2022
    Right?
  • @Rwkeith #198 11:36 PM, 16 May 2022
    the latest commit does have a problem...
  • @Rwkeith #199 11:36 PM, 16 May 2022
    it crashes on load vmm
  • @Rwkeith #200 11:36 PM, 16 May 2022
    I didn't crash because I forgot to do unload remove vmm between tests
  • @Rwkeith #201 11:37 PM, 16 May 2022
    it was using the last successful driver build I did from another commit
  • @HughEverett #202 11:39 PM, 16 May 2022
    🤔
  • @HughEverett #203 11:39 PM, 16 May 2022
    This thing is super hard to figure out
  • @HughEverett #204 11:40 PM, 16 May 2022
    Because we couldn't deterministically reproduce the error.
  • @HughEverett #205 11:41 PM, 16 May 2022
    Btw, I'll check the crash dump tomorrow to see if I can find anything
  • @HughEverett #206 11:43 PM, 16 May 2022
    Pls keep testing and notify us if I find any other hints
  • @Rwkeith #207 11:46 PM, 16 May 2022
    at this point I'm too invested..
  • @Rwkeith #208 11:46 PM, 16 May 2022
    I'll let you know
  • 17 May 2022 (8 messages)
  • @Rwkeith #209 02:44 AM, 17 May 2022
    I've found the exact commit, 38bef6396bc98d0e1af67fc35908c42b7b3f656e. I tested it multiple times, with the following steps:

    git clone --recursive https://github.com/HyperDbg/HyperDbg.git

    git reset --hard 38bef6396bc98d0e1af67fc35908c42b7b3f656e

    load project hyperdbg.sln into VS 2019
    Set kdserial project settings to test sign, SHA256 signing
    build

    run hyperdbg-cli.exe
    .sympath SRV*c:\Symbols*https://msdl.microsoft.com/download/symbols
    .sym reload
    .connect local
    unload remove vmm
    load vmm
    GitHub - HyperDbg/HyperDbg: State-of-the-art native debugging tool

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

  • @Rwkeith #210 02:45 AM, 17 May 2022
    as soon as I load vmm, instant bugcheck. Windows build and HW info is the same machine as what I gave in the issue tracker on github.
  • @Rwkeith #211 02:49 AM, 17 May 2022
    Dump
    051622-10156-01.dmp
  • @HughEverett ↶ Reply to #209 #212 01:18 PM, 17 May 2022
    Unfortunately, I couldn't reproduce the error on my Skylake machine. I try other systems to see if I can reproduce it or not.
  • @HughEverett #213 01:20 PM, 17 May 2022
    If it's possible, please also consider to check the same build on other machines. My first guess is that there might be a problem with your device. However, I try to investigate and find the cause of error.
  • @HughEverett #214 01:47 PM, 17 May 2022
    The error is so much hardware related 😟
  • @HughEverett #215 07:31 PM, 17 May 2022
    Nope, the error is not reproduced even in other systems. @Rwkeith
  • @HughEverett #216 07:44 PM, 17 May 2022
    Can you test it in another system @Rwkeith ? I think your specific computer only produces this error.
  • 18 May 2022 (74 messages)
  • @Rwkeith #217 01:28 AM, 18 May 2022
    Maybe I can binary search the code changes. Change only half the code, test, and then repeat until I find what the issue is. Unless the code is all linked up in a way I can't do that.
  • @Rwkeith #218 01:32 AM, 18 May 2022
    could you make a branch from this commit with reverted changes I could test? I could try myself but you'd know better what to change
  • @Rwkeith #219 03:09 AM, 18 May 2022
    So I looked through the code changes between the 2 commits. It looks clean. This tells me it could be build related. Could you send the entire build folder from that commit to me?
  • @Rwkeith #220 03:10 AM, 18 May 2022
    and tell me what steps you do, so I will do the same.
  • @Rwkeith #221 03:25 AM, 18 May 2022
    also, I'm doing this in test sign mode. and test signing kdserial. so make sure you do the same
  • @Rwkeith #222 03:52 AM, 18 May 2022
    Okay, it's not a build issue. I went to that commit, and reverted each of the files individually to the previous commit hash (7 total). I was able to run successfully after the build. My current theory is that there's a redefinition or header include order issue going on. Will debug more tomorrow.
  • @Rwkeith #223 04:55 AM, 18 May 2022
    I found the bug

    photo_2022-05-18_04-55-27.jpg
  • @Rwkeith #224 04:56 AM, 18 May 2022
    CurrentPhysMask.Flags = __readmsr(IA32_MTRR_PHYSBASE0 + (CurrentRegister * 2));

    Should be

    CurrentPhysMask.Flags = __readmsr(MSR_IA32_MTRR_PHYSMASK0 + (CurrentRegister * 2));
  • @Rwkeith #225 04:58 AM, 18 May 2022
    I mean it should be:
    CurrentPhysMask.Flags = __readmsr(IA32_MTRR_PHYSMASK0 + (CurrentRegister * 2));

    with the new constants from IA32
  • @Rwkeith #226 05:00 AM, 18 May 2022
    guess you were just getting lucky on reading the msr of these other chips
  • @Rwkeith #227 05:29 AM, 18 May 2022
    Please allow me to make the commit for the work I put into it. I think I need permissions to push though?

    photo_2022-05-18_05-29-17.jpg
  • @Rwkeith #228 05:52 AM, 18 May 2022
    Ah, I got it now. I did a pull request for dev
  • @HughEverett ↶ Reply to #228 #229 10:09 AM, 18 May 2022
    Hi, thanks a lot for sending pull request. It's merged.
  • @HughEverett ↶ Reply to #226 #230 10:10 AM, 18 May 2022
    Yep, we were so lucky that you find this flaw. These things are really hard to figure out.
  • @HughEverett ↶ Reply to #227 #231 11:22 AM, 18 May 2022
    I merged your pull request into the main (master) branch. Please check and retest the latest commit and confirm if the problem is solved or not. Thanks. 🙏
  • @Rwkeith #232 08:35 PM, 18 May 2022
    cool and thanks for the merge
  • @HughEverett ↶ Reply to #232 #234 08:46 PM, 18 May 2022
    🤝
  • @Rwkeith #235 08:53 PM, 18 May 2022
    I was having stability issues also when logging all syscalls back from a late February build
  • @Rwkeith #236 08:54 PM, 18 May 2022
    I haven't tested to see if it's been present in the latest build yet though.
  • @HughEverett #237 08:54 PM, 18 May 2022
    please test it again and tell us if the problem remained unsolved.
  • @HughEverett #238 08:55 PM, 18 May 2022
    we're currently focusing on fixing bugs related to the script engine.
  • @Rwkeith #239 08:55 PM, 18 May 2022
    sure, I plan to check it out again today.
  • @Rwkeith #240 08:55 PM, 18 May 2022
    I know we are different time zones, but that's okay
  • @HughEverett #241 08:55 PM, 18 May 2022
    👌👌👌
  • @Rwkeith #242 08:56 PM, 18 May 2022
    there's a buffer limit on how much you can log right? I wasn't sure if that was related to my issue. I'm logging all syscalls for 1 particular process.
  • @HughEverett ↶ Reply to #242 #243 08:56 PM, 18 May 2022
    yes
  • @HughEverett #244 08:57 PM, 18 May 2022
    you can change the following buffer limitations from the code :
  • @HughEverett #245 08:57 PM, 18 May 2022
    /**
    * @brief Default buffer count of packets for message tracing
    * @details number of packets storage for regualr buffers
    */
    #define MaximumPacketsCapacity 1000
  • @HughEverett #246 08:57 PM, 18 May 2022
    and
  • @HughEverett #247 08:57 PM, 18 May 2022
    /**
    * @brief Size of each packet
    * @details NOTE : REMEMBER TO CHANGE IT IN USER-MODE APP TOO
    * @warning we redefine it on ScriptEngineEval.h change it on
    * that file too
    */
    #define PacketChunkSize 4096 // PAGE_SIZE
  • @Rwkeith #248 08:58 PM, 18 May 2022
    okay, and this is what I'm doing in particular. I linked you before https://pastebin.com/kgtE29Pv
    // Current command...// conveniently our hyperviser driver and dll that is tes - Pastebin.com

    Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.

  • @HughEverett ↶ Reply to #248 #249 09:00 PM, 18 May 2022
    okay, and did you successfully reached to your goals by the above script?
  • @Rwkeith #250 09:00 PM, 18 May 2022
    yes it logged, but my system crashed near the end after I closed the program
  • @Rwkeith #251 09:01 PM, 18 May 2022
    closed the thing I was logging. I think it was related to the amount of logging it was trying to do
  • @Rwkeith #252 09:01 PM, 18 May 2022
    because after I closed the application, it was still catching up on the console
  • @HughEverett #253 09:01 PM, 18 May 2022
    you didn't unload before closing the program ?
  • @Rwkeith #254 09:01 PM, 18 May 2022
    the program I mean is the application I'm logging the syscalls of
  • @HughEverett #255 09:02 PM, 18 May 2022
    🤔
  • @Rwkeith #256 09:02 PM, 18 May 2022
    BEService.exe is the program I'm monitoring syscalls of
  • @Rwkeith #257 09:02 PM, 18 May 2022
    I want to see the syscalls it makes though all the way until it closes.
  • @Rwkeith #258 09:02 PM, 18 May 2022
    ideally
  • @Rwkeith #259 09:04 PM, 18 May 2022
    The thing is, I don't know the PID of the process in advance
  • @Rwkeith #260 09:04 PM, 18 May 2022
    so I tell it to log syscalls of the whole machine and filter based on process name for event condition
  • @HughEverett #261 09:04 PM, 18 May 2022
    have you ever used .start command ?
  • @Rwkeith #262 09:04 PM, 18 May 2022
    I haven't
  • @Rwkeith #263 09:05 PM, 18 May 2022
    can I use that on local?
  • @HughEverett #264 09:05 PM, 18 May 2022
    https://docs.hyperdbg.org/commands/meta-commands/.start
    .start (start a new process)

    Description of the '.start' command in HyperDbg.

  • @HughEverett #265 09:05 PM, 18 May 2022
    You could use it but I disabled it for now.
  • @HughEverett #266 09:05 PM, 18 May 2022
    Because it has some problems
  • @HughEverett #267 09:06 PM, 18 May 2022
    but in kHyperDbg it's fully usable.
  • @HughEverett #268 09:06 PM, 18 May 2022
    do you have a VMware Workstation?
  • @HughEverett #269 09:06 PM, 18 May 2022
    do you test HyperDbg on your physical system?
  • @Rwkeith #270 09:07 PM, 18 May 2022
    I use hyperdbg on a physical machine at the moment.
  • @HughEverett #271 09:08 PM, 18 May 2022
    do you attached a debugger ? Windbg?
  • @Rwkeith #272 09:08 PM, 18 May 2022
    Test sign mode
  • @HughEverett #273 09:08 PM, 18 May 2022
    It's really weird
  • @Rwkeith #274 09:08 PM, 18 May 2022
    what is?
  • @HughEverett #275 09:08 PM, 18 May 2022
    take a look at it :
  • @HughEverett #277 09:09 PM, 18 May 2022
    https://docs.hyperdbg.org/commands/extension-commands/syscall#remarks
    !syscall, !syscall2 (hook system-calls)

    Description of '!syscall, !syscall2' commands in HyperDbg.

  • @HughEverett #278 09:09 PM, 18 May 2022

    photo_2022-05-18_21-09-27.jpg
  • @HughEverett #279 09:09 PM, 18 May 2022
    i thought PatchGuard will destroy system on test sign mode with !syscall command
  • @Rwkeith #280 09:11 PM, 18 May 2022
    hmmm. I can't recall what my bugchecks were when I did this last with the logging. Maybe I was getting patchguard checked
  • @Rwkeith #281 09:12 PM, 18 May 2022
    but running these 2 commands disables DSE

    bcdedit.exe -set loadoptions DISABLE_INTEGRITY_CHECKS
    bcdedit.exe -set TESTSIGNING ON
  • @HughEverett #282 09:13 PM, 18 May 2022
    are you sure that it disables patchguard?
  • @HughEverett #283 09:13 PM, 18 May 2022
    I don't know.
  • @Rwkeith #284 09:13 PM, 18 May 2022
    no, but those remarks state that you can disable DSE or attach a debugger
  • @Rwkeith #285 09:13 PM, 18 May 2022
    and be safe
  • @HughEverett #286 09:14 PM, 18 May 2022
    the remark should be changed to avoid confusion.
  • @Rwkeith #287 09:14 PM, 18 May 2022
    I'll test more. I just got Hyperdbg working yesterday
  • @HughEverett #288 09:15 PM, 18 May 2022
    I'm pretty sure disabling DSE won't turn off the PatchGuard.
  • @Rwkeith #289 09:15 PM, 18 May 2022
    I was also using an older windows 10 build when I did my old tests
  • @HughEverett ↶ Reply to #287 #290 09:15 PM, 18 May 2022
    👍
  • @Rwkeith #291 09:17 PM, 18 May 2022
    here it seems implied also that doing test sign disables PG

    photo_2022-05-18_21-17-45.jpg
  • @HughEverett ↶ Reply to #291 #292 09:19 PM, 18 May 2022
    I'll add some more description for clarification.
  • 19 May 2022 (3 messages)
  • @Rwkeith #294 01:00 AM, 19 May 2022
    Not getting any log data from !epthook or !syscall in the console after I paste in my hooks. I check my events list and ensure they're enabled. I do events e all. Do I need to enable console logging now? I tested my hooks on an older build and it logs immediately to console after I paste my hooks into hyperdbg-cli.
  • @HughEverett ↶ Reply to #294 #295 01:27 PM, 19 May 2022
    Hey, it should be fixed by now.
  • @HughEverett ↶ Reply to #295 #296 01:28 PM, 19 May 2022
    thanks to @Mohammadhosein_76 for fixing it
  • 20 May 2022 (9 messages)
  • @Rwkeith #297 01:24 AM, 20 May 2022
    the logging for the syscalls work again on the latest commit, but !epthook 's are not running even though I've enabled them.
  • @Rwkeith #298 01:27 AM, 20 May 2022
    📨
  • @HughEverett ↶ Reply to #297 #299 06:38 AM, 20 May 2022
    Are you sure? How do you test it?
  • @HughEverett #300 06:38 AM, 20 May 2022
    i retest it and it seems to be working.
  • @HughEverett #301 06:39 AM, 20 May 2022

    photo_2022-05-20_06-39-05.jpg
  • @HughEverett #302 06:39 AM, 20 May 2022

    photo_2022-05-20_06-39-25.jpg
  • @Rwkeith #303 10:23 AM, 20 May 2022
    okay, it's working. Maybe I didn't unload/remove the previous build properly. Thought I did it clean. Will be testing it further later
  • @Rwkeith #304 10:23 AM, 20 May 2022
    👍
  • @HughEverett ↶ Reply to #303 #306 12:31 PM, 20 May 2022
    👍
  • 23 May 2022 (2 messages)
  • @HughEverett #307 09:13 AM, 23 May 2022
    @Rwkeith Are you sure that the driver of HyperDbg (hprdbghv.sys) needs to be removed "unload remove vmm" each time before loading a new version of the driver? If it's not currently loaded.
  • @HughEverett #308 09:17 AM, 23 May 2022
    I was investigating the problem you told me about. However, after getting a new update of HyperDbg and loading the driver "load vmm" the new driver is loaded (the expected behavior), so I'm wondering what the problem you told me about loading the previous version of the driver was.
  • 27 May 2022 (2 messages)
  • @Rwkeith #309 12:52 PM, 27 May 2022
    I was going through several versions of hyperdbg. So this could have been the case for an older version? The way I thought it worked is that the load vmm checks to see if driver is installed, ‘sc create…’ , and whatever path was last given, was using that. I haven’t looked yet to verify, but I had some cases where I think it was still using the install path from a previous repo.
  • @HughEverett ↶ Reply to #309 #310 02:09 PM, 27 May 2022
    No, we didn't have any recent code updates for it.
    The way you think is probably wrong. 🤔
    However, it's really easy to test it. Just add a LogInfo("Test"); somewhere in the driver and test if you see the Test message or not.
  • 28 May 2022 (33 messages)
  • @Rwkeith #311 05:02 AM, 28 May 2022
    alright I'm trying to figure out what I'm doing wrong here. I setup the ept hook:

    !epthook nt!NtQuerySystemInformation code {5148B9A016818204F8FFFFFFD159C3}
  • @Rwkeith #312 05:03 AM, 28 May 2022
    5148B9A016688802F8FFFFFFD159C3 is

    0: 51 push rcx
    1: 48 b9 a0 16 68 88 02 movabs rcx,0xfffff802886816a0
    8: f8 ff ff
    b: ff d1 call rcx
    d: 59 pop rcx
    e: c3 ret
  • @Rwkeith #313 05:05 AM, 28 May 2022
    and 0xfffff802886816a0 points to my C hook in another loaded driver I call

    photo_2022-05-28_05-05-18.jpg
  • @Rwkeith #314 05:11 AM, 28 May 2022
    the dump (unfortunately symbols don't exist yet I believe for this win ver)

    photo_2022-05-28_05-11-22.jpg
  • @Rwkeith #315 05:12 AM, 28 May 2022

    photo_2022-05-28_05-12-21.jpg
  • @Rwkeith #316 05:13 AM, 28 May 2022
    If my assembly is:

    mov rcx, rcx;
    ret

    no crash occurs on hook trigger
  • @Rwkeith #317 05:18 AM, 28 May 2022
    the function in C is disassembled as 2 instructions

    photo_2022-05-28_05-18-21.jpg
  • @Rwkeith #318 05:33 AM, 28 May 2022
    I fixed it....changed it to

    movabs rcx, 0xFFFFF802C91016A0
    jmp rcx
  • @HughEverett ↶ Reply to #318 #319 05:45 AM, 28 May 2022
    Okay pls send a pull request and fix it in the code too.
  • @Rwkeith ↶ Reply to #319 #320 05:45 AM, 28 May 2022
    This was just an epthook I made. This isn't to do with Hyperdbg code itself
  • @Rwkeith #321 05:46 AM, 28 May 2022
    I was troubleshooting my method on calling a C hook I created in my own code with an epthook
  • @Rwkeith #322 05:48 AM, 28 May 2022
    apologies for using this channel if it was only intended for hyperdbg development discussion
  • @Rwkeith #323 05:54 AM, 28 May 2022
    I mean, I think that what I was doing was wrong?
  • @HughEverett ↶ Reply to #320 #324 06:07 AM, 28 May 2022
    Oh sorry, I misunderstood
  • @HughEverett ↶ Reply to #322 #325 06:08 AM, 28 May 2022
    No, that's fine.
  • @HughEverett ↶ Reply to #318 #327 06:10 AM, 28 May 2022
    I didn't get the point. Is it fixed now? Or still has problem?
  • @HughEverett ↶ Reply to #303 #328 11:06 PM, 28 May 2022
    The reason why it work for you is because it's never called
  • @HughEverett #329 11:07 PM, 28 May 2022

    photo_2022-05-28_23-07-16.jpg
  • @HughEverett #330 11:07 PM, 28 May 2022
    you should put your hook here in newer Windowses
  • @Rwkeith #331 11:07 PM, 28 May 2022
    it does work
  • @Rwkeith #332 11:07 PM, 28 May 2022

    photo_2022-05-28_23-07-43.jpg
  • @Rwkeith #333 11:08 PM, 28 May 2022
    this shellcode didn't work for calling it though...

    push rcx
    movabs rcx, 0xFFFFF802C91016A0
    call rcx
    pop rcx
    ret
  • @HughEverett ↶ Reply to #333 #334 11:08 PM, 28 May 2022
    what is the exact commad that you used ?
  • @Rwkeith #335 11:08 PM, 28 May 2022
    yet, this does

    movabs rcx, 0xFFFFF802C91016A0
    jmp rcx
  • @Rwkeith #336 11:09 PM, 28 May 2022
    !epthook nt!NtQuerySystemInformation code {48B9A01610C902F8FFFFFFE1}
  • @HughEverett ↶ Reply to #336 #337 11:11 PM, 28 May 2022
    I'll test it but you probably broke something in fastcall calling convention
  • @HughEverett ↶ Reply to #333 #338 11:13 PM, 28 May 2022
    Also for debugging it, you might use sth like :
  • @HughEverett #339 11:13 PM, 28 May 2022
    push rcx
    movabs rcx, 0xFFFFF802C91016A0
    int3
    call rcx
    pop rcx
    ret
  • @Rwkeith #340 11:17 PM, 28 May 2022
    yeah thanks for the tip
  • @Rwkeith #341 11:18 PM, 28 May 2022
    I haven't debugged it, but I imagine the additional push at the beginning may mess up the stack maybe
  • @Rwkeith #342 11:18 PM, 28 May 2022
    I just thought push/pop and call/ret would reverse each other
  • @HughEverett ↶ Reply to #341 #343 11:29 PM, 28 May 2022
    No, the only problem might be because of fastcall calling convention, stack is not involved because we just call the function directly from vmx root. No stack switching is involved
  • @HughEverett #344 11:30 PM, 28 May 2022
    I'll debug it tomorrow and notify you about the results
  • 29 May 2022 (8 messages)
  • @HughEverett ↶ Reply to #342 #345 11:06 AM, 29 May 2022
    I checked it and it was correct. Did you used sth like :
    !epthook nt!NtQuerySystemInformation code {51 48 b9 a0 16 10 c9 02 f8 ff ff ff d1 59 c3 }
  • @HughEverett #346 11:06 AM, 29 May 2022
    ?
  • @HughEverett #347 11:09 AM, 29 May 2022
    Would you please check the following assembly code :
    0: 51 push rcx
    1: 48 b9 a0 16 10 c9 02 movabs rcx,0xfffff802c91016a0
    8: f8 ff ff
    b: 48 83 ec 20 sub rsp,0x20
    f: ff d1 call rcx
    11: 48 83 c4 20 add rsp,0x20
    15: 59 pop rcx
    16: c3 ret
  • @HughEverett #348 11:10 AM, 29 May 2022
    It's because in fastcall calling convention there is a space (i dunno the exact name, maybe it was shadow stack or sth like this) which should be freed for the callee. Maybe that's the reason you get BSOD.
  • @Rwkeith #349 01:18 PM, 29 May 2022
    I'll check this once I have a chance. I had suspicion on this shadow stack also
  • @Rwkeith #350 01:37 PM, 29 May 2022
    hey, that worked :)

    photo_2022-05-29_13-37-32.jpg
  • @Rwkeith #351 01:38 PM, 29 May 2022
    thank you
  • @HughEverett ↶ Reply to #350 #352 03:09 PM, 29 May 2022
    👍
  • 16 May 2022 (117)
  • 17 May 2022 (8)
  • 18 May 2022 (74)
  • 19 May 2022 (3)
  • 20 May 2022 (9)
  • 23 May 2022 (2)
  • 27 May 2022 (2)
  • 28 May 2022 (33)
  • 29 May 2022 (8)