@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
  • 04 March 2024 (3 messages)
  • @1875005376 #5896 10:43 AM, 04 Mar 2024
    In the EptSetupPML2Entry function, the PageFrameNumber parameter represents a 2MB PageFrameNumber. Next, pass PageFrameNumber*PAGE_SIZE to the PhysicalAddress of the EptSplitLargePage function. Is this an error? The PhysicalAddress should be PageFrameNumber*SIZE_2_MB

    photo_2024-03-04_10-43-47.jpg
  • @1875005376 #5897 10:43 AM, 04 Mar 2024
    @HughEverett
  • @HughEverett ↶ Reply to #5896 #5898 04:12 PM, 04 Mar 2024
    Right now, I don't have access to my computer, I'll check and notify you tomorrow.
  • 06 March 2024 (4 messages)
  • @HughEverett ↶ Reply to #5896 #5899 04:26 AM, 06 Mar 2024
    You're right, something is going wrong here. 🤔
  • @HughEverett ↶ Reply to #5899 #5900 04:42 AM, 06 Mar 2024
    As the result, we're missing some page-tables but it seems that those page-tables (edge-sideded) page tables are never accessed during HyperDbg tests. That's why I didn't notify that. Only a small portion of them are in this category.
  • @1875005376 ↶ Reply to #5900 #5901 09:42 AM, 06 Mar 2024
    Do I need to submit code on GitHub to fix this error?
  • @HughEverett ↶ Reply to #5901 #5902 09:48 AM, 06 Mar 2024
    yes, go on and submit a PR. Please submit it to the 'dev' branch.
  • 07 March 2024 (25 messages)
  • @6958946194 #5903 06:20 AM, 07 Mar 2024
    Joined.
  • @6649665943 #5904 04:29 PM, 07 Mar 2024
    Joined.
  • @prekvapko ↶ Reply to #5900 #5905 05:33 PM, 07 Mar 2024
    i actually noticed this a lot
  • @prekvapko #5906 05:34 PM, 07 Mar 2024
    I had to sometimes jump 2mb+ to epthook
  • @prekvapko #5907 05:34 PM, 07 Mar 2024
    otherwise the address would show up as invalid
  • @HughEverett ↶ Reply to #5907 #5908 05:41 PM, 07 Mar 2024
    I don't think that this problem can cause an address invalid error. 🤔
  • @HughEverett ↶ Reply to #5905 #5909 05:42 PM, 07 Mar 2024
    Can you give me some cases where HyperDbg fails to hook?
  • @HughEverett ↶ Reply to #5900 #5910 05:43 PM, 07 Mar 2024
    BTW, this problem is now fixed in the 'dev' branch. You can easily test it to see if it was because of this error.
  • @prekvapko ↶ Reply to #5909 #5911 05:58 PM, 07 Mar 2024
    Find a large enough binary and set monitors in it's executable section. Try every page.
  • @prekvapko #5912 05:58 PM, 07 Mar 2024
    l 8
  • @prekvapko #5913 05:58 PM, 07 Mar 2024
    I mean usermode apps
  • @prekvapko #5914 05:58 PM, 07 Mar 2024
    not kernel
  • @prekvapko #5915 05:58 PM, 07 Mar 2024
    and I used VA
  • @prekvapko #5916 05:59 PM, 07 Mar 2024
    sometimes it would fail until i skipped a large enough chunk (usually tried 0x100000 increments if 0x1000 didnt work)
  • @prekvapko #5917 05:59 PM, 07 Mar 2024
    sometimes it'd work no problem
  • @prekvapko #5918 05:59 PM, 07 Mar 2024
    not sure what caused the issue exactly
  • @prekvapko #5919 05:59 PM, 07 Mar 2024
    there's also an issue when usermode applications crash
  • @prekvapko #5920 06:00 PM, 07 Mar 2024
    you can't reallt disable EPT hooks, even if the process launches again and module is at same VA (not COW)
  • @prekvapko #5921 06:00 PM, 07 Mar 2024
    you can disable the event though
  • @prekvapko #5922 06:00 PM, 07 Mar 2024
    if you don't, you will bsod eventually
  • @prekvapko #5923 06:00 PM, 07 Mar 2024
    I assume if you translate the va to pa, and don't use a pid it probably works fine
  • @HughEverett ↶ Reply to #5918 #5924 06:08 PM, 07 Mar 2024
    That's most likely because the page is not available in the memory (either it's paged-out or not used as a result demand paging).
  • @HughEverett #5925 06:10 PM, 07 Mar 2024
    You need to use the '.pagein' command to that missing range.

    https://docs.hyperdbg.org/commands/meta-commands/.pagein
    .pagein (bring the page into the RAM) | HyperDbg Documentation

    Description of the '.pagein' command in HyperDbg.

  • @HughEverett ↶ Reply to #5925 #5926 06:11 PM, 07 Mar 2024
    This will force the operating system to make this page available in the memory and after that, you can use the '!monitor' normally.
  • @HughEverett #5927 06:12 PM, 07 Mar 2024
    The reason why this happens is simply because EPT hooks are working based on physical addresses (not virtual addresses), and while there is no page (no pfn), HyperDbg cannot make a hook.
  • 10 March 2024 (45 messages)
  • @6649665943 #5928 06:41 AM, 10 Mar 2024
    Why ept hook makes system very slow?
  • @6649665943 #5929 06:41 AM, 10 Mar 2024
    Is Some trouble in ept violent handle?
  • @Screamjizz #5930 06:49 AM, 10 Mar 2024
    are you Chinese?
  • @Screamjizz #5931 06:49 AM, 10 Mar 2024
    英语都说不明白
  • @7183284367 #5932 07:35 AM, 10 Mar 2024
    Joined.
  • @HughEverett ↶ Reply to #5928 #5933 10:35 AM, 10 Mar 2024
    What kind of slows down? How many EPT hooks? Either !monitor or !epthook?
    Generally, you shouldn't be noticed the system slowing down, unless you're hooking a high-rate system functionality (e.g., a syscall/interrupt routine)
  • @6649665943 #5934 11:24 AM, 10 Mar 2024
    Emm.... I hook the ntcreatefile by epthookinline,
  • @HughEverett ↶ Reply to #5934 #5935 11:27 AM, 10 Mar 2024
    epthookinline is !epthook2? Did you use HyperDbg as a library? or directly from the cli?
  • @6649665943 #5936 11:27 AM, 10 Mar 2024
    Yes, i use !epthook2
  • @HughEverett ↶ Reply to #5936 #5937 11:28 AM, 10 Mar 2024
    Is the same with !epthook?
  • @6649665943 #5938 11:28 AM, 10 Mar 2024
    I think it's same
  • @HughEverett #5939 11:29 AM, 10 Mar 2024
    can you send me the command (script) you used?
  • @6649665943 #5940 11:29 AM, 10 Mar 2024
    And i think ntcreatefile is not used as kestackattach
  • @6649665943 #5941 11:29 AM, 10 Mar 2024
    !epthook2 NtCreateFile
  • @6649665943 #5942 11:30 AM, 10 Mar 2024
    Slowly down just like ppt
  • @HughEverett ↶ Reply to #5941 #5943 11:31 AM, 10 Mar 2024
    This is not a script, you've used it to pause HyperDbg.
  • @HughEverett #5944 11:31 AM, 10 Mar 2024
    https://docs.hyperdbg.org/using-hyperdbg/prerequisites/how-to-create-an-action#break
    How to create an action?

    This document helps you to create an action for events

  • @HughEverett ↶ Reply to #5941 #5945 11:31 AM, 10 Mar 2024
    I mean the way you used it is like you wanted to pause (halt) the debuggee.
  • @HughEverett #5946 11:32 AM, 10 Mar 2024
    Do you want to create a log from the debugger? like printf?
  • @6649665943 #5947 11:32 AM, 10 Mar 2024
    And i use that dll for my driver
  • @6649665943 #5948 11:32 AM, 10 Mar 2024
    Also the result
  • @6649665943 #5949 11:33 AM, 10 Mar 2024
    I cancel the dbgprint
  • @6649665943 #5950 11:33 AM, 10 Mar 2024
    Also slowly down
  • @HughEverett #5951 11:34 AM, 10 Mar 2024
    HyperDbg has three types of actions :
    https://docs.hyperdbg.org/using-hyperdbg/prerequisites/how-to-create-an-action
    How to create an action?

    This document helps you to create an action for events

  • @HughEverett #5952 11:34 AM, 10 Mar 2024
    You can either pause the debugger, or run custom code or execute an script.
  • @HughEverett #5953 11:34 AM, 10 Mar 2024
    Let me send you a youtube video for reference.
  • @6649665943 #5954 11:34 AM, 10 Mar 2024
    T@HughEverett if everything is OK, is ntcreatefile hook will become slowly down?
  • @HughEverett ↶ Reply to #5954 #5955 11:35 AM, 10 Mar 2024
    No
  • @HughEverett #5956 11:36 AM, 10 Mar 2024
    Actually, I think you're applying it incorrectly.
  • @HughEverett #5957 11:36 AM, 10 Mar 2024
    Please see: https://www.youtube.com/watch?v=tjsFRBFGis4&list=PLUFkSN0XLZ-kF1f143wlw8ujlH2A45nZY&index=32
    Dbg3301: HyperDbg 05 01 Intro and Classic Hidden Hooks

    View the full free MOOC at https://ost2.fyi/Dbg3301. This course is an introductory guide to HyperDbg debugger, guiding you through the initial steps of using HyperDbg, covering essential concepts, principles, debugging functionalities, along with practical examples and numerous reverse engineering methods that are unique to HyperDbg. Whether you have an interest in reverse engineering or seek to elevate your reverse engineering skills with hypervisor-assisted approaches, this course provides a solid foundation for starting your journey.

  • @6649665943 #5958 11:36 AM, 10 Mar 2024
    OK thanks
  • @6649665943 #5959 11:36 AM, 10 Mar 2024
    I think that's my reason
  • @HughEverett ↶ Reply to #5959 #5960 11:37 AM, 10 Mar 2024
    yep, let me know if you couldn't make it work.
  • @6649665943 #5961 11:37 AM, 10 Mar 2024
    Wait me for a moment
  • @6649665943 #5962 11:38 AM, 10 Mar 2024
    https://github.com/SinaKarvandi/Hypervisor-From-Scratch
    GitHub - SinaKarvandi/Hypervisor-From-Scratch: Source code of a multiple series of tutorials about the hypervisor. Available at: https://rayanfam.com/tutorials

    Source code of a multiple series of tutorials about the hypervisor. Available at: https://rayanfam.com/tutorials - SinaKarvandi/Hypervisor-From-Scratch

  • @6649665943 #5963 11:39 AM, 10 Mar 2024
    the part 8
  • @6649665943 #5964 11:39 AM, 10 Mar 2024
    that code make me slowly down
  • @6649665943 #5965 11:40 AM, 10 Mar 2024

    photo_2024-03-10_11-40-11.jpg
  • @HughEverett #5966 11:40 AM, 10 Mar 2024
    Hypervisor From Scratch is not updated for years as I wanted to make it untouched to avoid confusion. You should use 'hprdbghv' instead which is actively maintained/updated.
  • @6649665943 #5967 11:40 AM, 10 Mar 2024
    ok
  • @HughEverett ↶ Reply to #5964 #5968 11:40 AM, 10 Mar 2024
    Yes, that's probable as you trying to hook a syscall routine.
  • @6649665943 #5969 11:41 AM, 10 Mar 2024
    But your tutor is also very useful for me
  • @HughEverett ↶ Reply to #5968 #5970 11:41 AM, 10 Mar 2024
    But, again use HyperDbg instead which is a stable/maintained version of Hypervisor From Scratch.
  • @6649665943 #5971 11:41 AM, 10 Mar 2024
    1-8
  • @6649665943 #5972 11:42 AM, 10 Mar 2024
    thanks for your building
  • 19 March 2024 (5 messages)
  • @HughEverett #5973 06:42 AM, 19 Mar 2024
    HyperDbg v0.8.2 is now released! 🔥

    This update brings support for functions in the script engine.

    Read more:
    https://docs.hyperdbg.org/commands/scripting-language/constants-and-functions
    Constants & Functions

    Description of constants and functions

  • @HughEverett #5974 06:43 AM, 19 Mar 2024
    ## [0.8.2.0] - 2024-03-19
    New release of the HyperDbg Debugger.

    ### Added
    - Add user-defined functions and variable types in script engine

    ### Changed
    - Fix debuggee crash after running the '.debug close' command on the debugger
    - The problem with adding edge MTRR pages is fixed
    - All compiler/linker warnings of kernel-mode modules are fixed
    - User/Kernel modules of HyperDbg now compiled with "treat warning as error"
    - After downloading new symbols it is automatically loaded
    - Fix error messages/comments spelling typos
  • @HughEverett ↶ Reply to #5973 #5975 06:44 AM, 19 Mar 2024
    and with special thanks to @xmaple555 for implementing "functions" in the script engine.
  • @HughEverett ↶ Reply to #5974 #5976 06:47 AM, 19 Mar 2024
    Other than that, all the compile warnings are fixed and now HyperDbg compiles with "treat warnings as errors." Lots of warnings maybe 4 or 5 thousands of warnings fixed.
  • @alekum #5977 08:39 PM, 19 Mar 2024
    Joined.
  • 22 March 2024 (2 messages)
  • @7155288507 #5978 11:13 AM, 22 Mar 2024
    Joined.
  • @5231942802 #5979 04:59 PM, 22 Mar 2024
    Joined.
  • 25 March 2024 (1 messages)
  • @7150687770 #5980 11:33 AM, 25 Mar 2024
    Joined.
  • 29 March 2024 (2 messages)
  • @SicPsy #5981 01:14 PM, 29 Mar 2024
    Joined.
  • @ntkrla57 #5982 04:33 PM, 29 Mar 2024
    Joined.
  • 30 March 2024 (2 messages)
  • @6911659032 #5983 12:29 AM, 30 Mar 2024
    Joined.
  • @xiatian9188 #5984 02:09 AM, 30 Mar 2024
    Joined.
  • 31 March 2024 (1 messages)
  • @6677471258 #5985 03:07 PM, 31 Mar 2024
    Joined.
  • 04 Mar 2024 (3)
  • 06 Mar 2024 (4)
  • 07 Mar 2024 (25)
  • 10 Mar 2024 (45)
  • 19 Mar 2024 (5)
  • 22 Mar 2024 (2)
  • 25 Mar 2024 (1)
  • 29 Mar 2024 (2)
  • 30 Mar 2024 (2)
  • 31 Mar 2024 (1)