@hyperdbg

@hyperdbg / Public archive of HyperDbg Telegram messages.

  • 2025

    • May 2025 (97)
    • Apr 2025 (303)
    • Mar 2025 (443)
    • 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
  • 3
  • 4
  • 5
  • 19 July 2023 (22 messages)
  • @prekvapko #3098 06:56 PM, 19 Jul 2023
    but I'll probably find the most interesting part by api intercepting
  • @HughEverett ↶ Reply to #3097 #3099 07:01 PM, 19 Jul 2023
    It's a little bit too much but you can test it, maybe it works.
  • @HughEverett #3100 07:02 PM, 19 Jul 2023
    document_2023-07-19_19-02-01.mp4
  • @HughEverett ↶ Reply to #3098 #3101 07:02 PM, 19 Jul 2023
    Yes, exactly. Try to make it as small as you can.
  • 20 July 2023 (10 messages)
  • @HughEverett ↶ Reply to #3006 #3103 09:35 AM, 20 Jul 2023
    As I saw you and others (including me) are using the 'u' command mistakenly to debug 32-bit program (instead of the 'u2' or the 'u32'), HyperDbg now shows a warning message that the disassembler doesn't match with the context to notify user if the wrong command is used!

    (These modifications are available in the 'dev' branch)

    photo_2023-07-20_09-35-28.jpg
  • @ricnar #3104 09:36 AM, 20 Jul 2023
    Hello
  • @ricnar #3105 09:36 AM, 20 Jul 2023
    The final version 4 has the u32 command included?
  • @HughEverett #3106 09:38 AM, 20 Jul 2023
    Hi
  • @ricnar #3107 09:39 AM, 20 Jul 2023
    The dev version has a new warning
  • @HughEverett #3108 09:39 AM, 20 Jul 2023
    Previously (even in the very first version 0.1) we had the 32-bit disassembler (it was the 'u2' command). But, as I saw you used the 'u32' instead of the 'u2', I decided to add an alias for the 'u2' which is the 'u32'. Now, in the version v0.4 you can use either the 'u2' or the 'u32'. These commands are the same.
  • @ricnar #3109 09:40 AM, 20 Jul 2023
    Thanks
  • @HughEverett #3110 09:40 AM, 20 Jul 2023
    But in the 'dev' branch, there is an additional warning message that will notify you if you mistakenly used the 'u' command instead of the 'u32'.
  • @ricnar #3111 09:40 AM, 20 Jul 2023
    A new warning was added
  • @HughEverett ↶ Reply to #3109 #3112 09:40 AM, 20 Jul 2023
    🙏
  • 21 July 2023 (2 messages)
  • @killaragorn #3113 08:13 AM, 21 Jul 2023
    sticker.webp
  • @tt112211zz #3114 08:45 AM, 21 Jul 2023
    Joined.
  • 22 July 2023 (14 messages)
  • @sariaki #3115 01:34 PM, 22 Jul 2023
    Joined.
  • @sariaki #3116 04:22 PM, 22 Jul 2023
    Is there any way to get a function's symbol name by its address in the scripting api? Looked at the docs and I couldn't find anything
  • @sariaki #3117 04:24 PM, 22 Jul 2023
    I'm trying to make a script that tracks the syscalls of a thread and performs introspective tasks on specific ones
  • @HughEverett ↶ Reply to #3116 #3118 04:29 PM, 22 Jul 2023
    No, there isn't such a functionality in HyperDbg.
  • @HughEverett #3119 04:30 PM, 22 Jul 2023
    And it's kinda hard to implement
  • @HughEverett ↶ Reply to #3117 #3120 04:32 PM, 22 Jul 2023
    Because, the script evaluation is done in both kernel-mode and user-mode but as you're tracking the system-calls, you're using its kernel-side scripting. But the symbol interpreter is completely a user-mode module. So, connecting them is kinda hard as you just see the results of evaluation from the kernel debugger in the user-mode.
  • @HughEverett ↶ Reply to #3116 #3121 04:33 PM, 22 Jul 2023
    One idea to solve this problem is using the event-forwarding mechanism. You need to add your custom functions there to interpret your syscall outputs.

    https://docs.hyperdbg.org/tips-and-tricks/misc/event-forwarding
    Event forwarding

    Brief explanation about Event Forwarding Mechanism

  • @HughEverett #3122 04:34 PM, 22 Jul 2023
    For example, write a custom function that imports symbols (converting them from addresses to function names) and once the result of event forwarding is arrived in the user-mode, try to interpret them.
  • @HughEverett #3123 04:36 PM, 22 Jul 2023
    Here's the function @fuijio :

    https://github.com/HyperDbg/HyperDbg/blob/c20e2dfc441802bebd69df6ecc9aac17b49c284a/hyperdbg/hprdbgctrl/code/debugger/communication/forwarding.cpp#L292
    HyperDbg/hyperdbg/hprdbgctrl/code/debugger/communication/forwarding.cpp at c20e2dfc441802bebd69df6ecc9aac17b49c284a · HyperDbg/HyperDbg

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

  • @HughEverett ↶ Reply to #3123 #3124 04:36 PM, 22 Jul 2023
    You can add your codes that convert address to function name here.
  • @HughEverett #3125 04:38 PM, 22 Jul 2023
    But, it's not a good idea to implement such functionality for the HyperDbg as it violates the design principles of not making the scripts interpretation in the user side. (only good for custom use).
  • @sariaki #3126 04:38 PM, 22 Jul 2023
    ah i see
  • @sariaki #3127 04:38 PM, 22 Jul 2023
    thank you so much for the fast, detailed response!
  • @sariaki #3128 04:39 PM, 22 Jul 2023
    i'll have to look into this some more before starting
  • 23 July 2023 (121 messages)
  • @MissRose_bot #3159 b o t 12:08 PM, 23 Jul 2023
    Yeah, I don't like your flooding. Quiet now Ricardo!
  • @HughEverett ↶ Reply to #3159 #3160 01:44 PM, 23 Jul 2023
    🤦‍♂️
  • @HughEverett #3161 01:45 PM, 23 Jul 2023
    Oh, sorry @ricnar can you send message now?
  • @HughEverett #3162 01:46 PM, 23 Jul 2023
    This automated bot seems to be incorrectly configured.
  • @HughEverett #3163 01:47 PM, 23 Jul 2023
    /flood
  • @MissRose_bot ↶ Reply to #3163 #3164 b o t 01:47 PM, 23 Jul 2023
    This chat is currently enforcing flood control upon reaching 30 messages. Any users that reach that amount of messages will be muted.
    Flood clearing is enabled, so messages that trigger a flood will be deleted.
  • @HughEverett #3167 01:48 PM, 23 Jul 2023
    /setflood 100
  • @MissRose_bot ↶ Reply to #3167 #3168 b o t 01:48 PM, 23 Jul 2023
    Antiflood settings for HyperDbg have been updated to 100
  • @HughEverett #3169 01:49 PM, 23 Jul 2023
    Why this stupid Bot deleted the messages. 🫠
  • @HughEverett #3170 01:53 PM, 23 Jul 2023
    i have a problem with x option of monitor command

    i start the packed sample again

    .start path C:\Users\ricnar456\Desktop\PACKED_PRACTICA_1.exe
    debuggee is running...
    the target module is loaded and a breakpoint is set to the entrypoint
    press 'g' to reach to the entrypoint of the main module...
    00007ffb`25cf910e 0F 85 CB 3D 01 00 jnz 0x00007FFB25D0CEDF [not taken]

    0: kHyperDbg> g
    debuggee is running...
    breakpoint 0x2 hit
    00000000`00408ec0 60 pushad

    it stops in entry point

    the section 401000 is not paged

    i type pagein 401000

    0: kHyperDbg> db 401000
    err, invalid address (c0000005)

    0: kHyperDbg> pagein 401000
    the page-fault is delivered to the target thread
    press 'g' to continue debuggee (the current thread will execute ONLY one instruction and will be halted again)...

    0: kHyperDbg> g
    debuggee is running...
    00000000`00408ec1 BE 00 80 40 00 mov esi, 0x408000

    0: kHyperDbg> db 401000
    00000000`00401000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
    00000000`00401010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
    00000000`00401020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
    00000000`00401030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
    00000000`00401040 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
    00000000`00401050 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
    00000000`00401060 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
    00000000`00401070 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................

    401000 block is paged now

    my process is

    0: kHyperDbg> .process
    process id: 10d8
    process (_EPROCESS): ffffaa0f`882b3300
    process name (16-Byte): PACKED_PRACTIC

    pid 10d8

    !monitor xw 401000 401fff pid 10d8

    y put a monitor command in wx

    in this block and press G

    0: kHyperDbg> g
    debuggee is running...
    event 0x1 triggered
    00000000`00408f81 89 07 mov dword ptr ds:[edi], eax

    and it stops when writing

    event 0x1 triggered
    00000000`00408f81 89 07 mov dword ptr ds:[edi], eax

    0: kHyperDbg> db 401000
    00000000`00401000 55 8B EC 5D C3 CC CC CC CC CC CC CC CC CC CC CC U..]............
    00000000`00401010 55 8B EC 8B 45 0C D1 E0 39 45 08 75 06 B0 01 EB U...E...9E.u....
    00000000`00401020 04 EB 02 32 C0 5D C3 CC CC CC CC CC CC CC CC CC ...2.]..........
    00000000`00401030 55 8B EC B8 00 00 20 18 5D C3 CC CC CC CC CC CC U..... .].......
    00000000`00401040 55 8B EC 8B 45 14 50 8B 4D 10 51 8B 55 0C 52 8B U...E.P.M.Q.U.R.
    00000000`00401050 45 08 50 E8 00 00 00 2C 8B 48 04 51 8B 10 52 FF E.P....,.H.Q..R.
    00000000`00401060 15 00 00 10 BC 83 C4 18 5D C3 CC CC CC CC CC CC ........].......
    00000000`00401070 55 8B EC 81 EC 94 00 00 00 A1 00 00 20 04 33 C5 U........... .3.

    no instruction is executed in this block till now

    0: kHyperDbg> event c 1

    0: kHyperDbg> event

    !monitor x 401000 401fff pid 10d8

    now i put a monitopr command in the block

    0: kHyperDbg> g
    debuggee is running...

    the programs runs and does not stop at all
  • @HughEverett #3171 01:53 PM, 23 Jul 2023

    photo_2023-07-23_13-53-52.jpg
  • @HughEverett #3172 01:54 PM, 23 Jul 2023
    i know the monitor command starts executing and bypass the first instructions exxecuted

    but is not useful in this form

    some block of the target is needed

    The activation of w option is more accurate more quick
  • @HughEverett #3173 01:55 PM, 23 Jul 2023
    I copied all of you deleted messages @ricnar. Can you send messages here now? This Rose bot seems to be wrongly triggered by flood detection. 🤦‍♂️🤦‍♂️🤦‍♂️
  • @HughEverett #3174 01:58 PM, 23 Jul 2023
    Okay, as long as I see, it seems to be a problem that the event is not triggered for the 'execution'. Am I right?
  • @ricnar #3175 02:20 PM, 23 Jul 2023
    Yes
  • @ricnar #3176 02:20 PM, 23 Jul 2023
    In read and write is triggered more quickly
  • @ricnar #3177 02:21 PM, 23 Jul 2023
    In execution it skips some instruction
  • @HughEverett #3178 02:21 PM, 23 Jul 2023
    I'm testing it now.
  • @HughEverett #3179 02:47 PM, 23 Jul 2023
    I'm currently testing this "PACKED_PRACTICA_1.exe", are we testing the same binary file?

    photo_2023-07-23_14-47-53.jpg
  • @HughEverett #3180 02:48 PM, 23 Jul 2023
    And also, 401000 is a separate PE section. Am I right? @ricnar
  • @HughEverett #3181 02:48 PM, 23 Jul 2023
    I mean is it a PE section or later this program allocate it using VirtualAlloc?
  • @ricnar #3182 02:51 PM, 23 Jul 2023
    Is the pe sección
  • @ricnar #3183 02:51 PM, 23 Jul 2023
    The text sección
  • @ricnar #3185 02:53 PM, 23 Jul 2023
    It has aslr disabled
  • @ricnar #3186 02:53 PM, 23 Jul 2023
    the code section starts in 401000 till 408000
  • @ricnar #3187 02:53 PM, 23 Jul 2023
    the first line executed in this section is
  • @ricnar #3188 02:53 PM, 23 Jul 2023
    40146E
  • @ricnar #3189 02:54 PM, 23 Jul 2023
    it jumps from here
  • @ricnar #3190 02:54 PM, 23 Jul 2023
    UPX1:00409073 push 0
    UPX1:00409075 cmp esp, eax
    UPX1:00409077 jnz short loc_409073
    UPX1:00409079 sub esp, 0FFFFFF80h
    UPX1:0040907C jmp near ptr word_40146E
  • @ricnar #3191 02:54 PM, 23 Jul 2023
    after unpack and write the code section
  • @HughEverett #3192 02:54 PM, 23 Jul 2023
    okay, I will test it now, and will let you know about the results.
  • @ricnar #3193 02:54 PM, 23 Jul 2023
    thanks
  • @ricnar #3194 02:55 PM, 23 Jul 2023
    the results are very different when using write or execute
  • @ricnar #3195 02:55 PM, 23 Jul 2023
    write it does no skip intructions
  • @ricnar #3196 02:55 PM, 23 Jul 2023
    it stops the first time the address is written
  • @ricnar #3197 02:56 PM, 23 Jul 2023
    but in execution it stops later
  • @ricnar #3198 02:56 PM, 23 Jul 2023
    than the first line executed in this section
  • @ricnar #3199 02:56 PM, 23 Jul 2023
    it skips a lot of instructions
  • @HughEverett #3200 03:55 PM, 23 Jul 2023

    photo_2023-07-23_15-55-01.jpg
  • @HughEverett #3201 03:55 PM, 23 Jul 2023
    3: kHyperDbg> !monitor x 401000 401fff pid 2d38

    2: kHyperDbg> g
    debuggee is running...
    fffff806`33858d62 0F 01 C1 vmcall

    0: kHyperDbg> .process pid 2d38
    press 'g' to continue the debuggee, if the pid or the process object address is valid then the debuggee will be automatically paused when it attached to the target process

    0: kHyperDbg> g
    debuggee is running...
    switched to the specified process
    00000000`00408ec1 90 nop

    2: kHyperDbg> eb 00408ec0 60 BE 00 80

    2: kHyperDbg> g
    debuggee is running...
    event 0x0 triggered
    00000000`0040146e E8 90 03 00 00 call 0x00401803
  • @HughEverett #3202 03:55 PM, 23 Jul 2023
    @ricnar is it the first line that is supposed to be executed? Am I right?
  • @ricnar #3203 04:11 PM, 23 Jul 2023
    Yes but it does not stop to me there
  • @HughEverett ↶ Reply to #3203 #3204 04:12 PM, 23 Jul 2023
    yes, because you didn't spin the thread.
  • @HughEverett ↶ Reply to #3015 #3205 04:12 PM, 23 Jul 2023
    This one .
  • @HughEverett #3206 04:14 PM, 23 Jul 2023
    As it's mentioned in the docs, HyperDbg continues the debuggee for some time in case of events. And your target thread will be continued for some time, that's why you didn't get it there.
  • @HughEverett #3207 04:14 PM, 23 Jul 2023
    I agree this is a really bad issue and events should be applied immediately.
  • @HughEverett #3208 04:15 PM, 23 Jul 2023
    BTW, I fix it with this simple command:
    eb @eip 90 90 eb fc
  • @HughEverett #3209 04:15 PM, 23 Jul 2023
    Let me create a short video to show you what I did to get this entrypoint.
  • @HughEverett #3210 04:15 PM, 23 Jul 2023
    I'm gonna record it now.
  • @ricnar #3211 04:20 PM, 23 Jul 2023
    You put a infinite loop
  • @HughEverett ↶ Reply to #3211 #3212 04:21 PM, 23 Jul 2023
    Yes
  • @HughEverett #3213 04:21 PM, 23 Jul 2023
    At the entry point
  • @HughEverett #3214 04:21 PM, 23 Jul 2023
    And then applied the !monitor.
  • @ricnar #3215 04:22 PM, 23 Jul 2023
    Yes
  • @HughEverett ↶ Reply to #3215 #3216 04:23 PM, 23 Jul 2023
    But, please use the latest 'dev' branch commits.
  • @HughEverett #3217 04:23 PM, 23 Jul 2023
    There was a small problem (not related to monitor) in parsing 'eb' that is now fixed.
  • @HughEverett #3221 04:32 PM, 23 Jul 2023
    monitor-x-demo.mp4
  • @HughEverett ↶ Reply to #3221 #3222 04:32 PM, 23 Jul 2023
    This is how I reached the entrypoint, I'm sure you already got the idea of infinite loop. @ricnar
  • @HughEverett ↶ Reply to #3222 #3223 04:36 PM, 23 Jul 2023
    And again, make sure to use the 'git pull' on the 'dev' branch. 🙂
  • @ricnar #3224 04:38 PM, 23 Jul 2023
    Perfect
  • @ricnar #3225 04:38 PM, 23 Jul 2023
    Thanks
  • @HughEverett ↶ Reply to #3224 #3226 04:38 PM, 23 Jul 2023
    🙏
  • @HughEverett #3227 04:38 PM, 23 Jul 2023
    Let me know, if there is any other problems.
  • @ricnar ↶ Reply to #3209 #3228 04:47 PM, 23 Jul 2023
    A video is not necessary
  • @HughEverett ↶ Reply to #3228 #3229 04:48 PM, 23 Jul 2023
    I already sent it.
  • @HughEverett ↶ Reply to #3221 #3230 04:48 PM, 23 Jul 2023
    .
  • @ricnar #3231 04:48 PM, 23 Jul 2023
    animation.gif.mp4
  • @ricnar #3232 07:22 PM, 23 Jul 2023
    the checksum error is happening a lot to me now
  • @ricnar #3233 07:22 PM, 23 Jul 2023

    photo_2023-07-23_19-22-17.jpg
  • @ricnar #3234 07:22 PM, 23 Jul 2023
    when using .process list
  • @ricnar #3235 07:22 PM, 23 Jul 2023
    when using .sym download
  • @ricnar #3236 07:22 PM, 23 Jul 2023
    and is impossible to continue
  • @ricnar #3237 07:23 PM, 23 Jul 2023

    photo_2023-07-23_19-23-56.jpg
  • @ricnar #3238 07:24 PM, 23 Jul 2023
    this time it continues
  • @ricnar #3239 07:24 PM, 23 Jul 2023
    but sometimes it not continue
  • @HughEverett ↶ Reply to #3232 #3240 07:24 PM, 23 Jul 2023
    Can you reproduce it? Generally, if you find a way to instruct me how to reproduce it, I can fix it easily.
  • @HughEverett #3241 07:26 PM, 23 Jul 2023
    Because these bugs are usually easy to investigate. But, as I never reached to these bugs, I didn't fix it.
  • @ricnar #3242 07:26 PM, 23 Jul 2023

    photo_2023-07-23_19-26-42.jpg
  • @ricnar #3243 07:26 PM, 23 Jul 2023
    u sometimes does not work
  • @HughEverett ↶ Reply to #3242 #3244 07:27 PM, 23 Jul 2023
    Are you using compiled binaries?
  • @HughEverett #3245 07:27 PM, 23 Jul 2023
    Or using the 'dev' branch
  • @HughEverett #3246 07:27 PM, 23 Jul 2023
    ?
  • @ricnar #3247 07:27 PM, 23 Jul 2023
    the dev from yesterday
  • @HughEverett ↶ Reply to #3247 #3248 07:28 PM, 23 Jul 2023
    Can you show me the signature of the debugger?
  • @ricnar #3249 07:29 PM, 23 Jul 2023

    photo_2023-07-23_19-29-17.jpg
  • @ricnar #3250 07:30 PM, 23 Jul 2023

    photo_2023-07-23_19-30-01.jpg
  • @HughEverett ↶ Reply to #3249 #3251 07:30 PM, 23 Jul 2023
    No, I mean just open HyperDbg, and there is a signature at the top of the window.
  • @HughEverett ↶ Reply to #3250 #3252 07:30 PM, 23 Jul 2023
    Yes
  • @ricnar #3253 07:30 PM, 23 Jul 2023

    photo_2023-07-23_19-30-22.jpg
  • @HughEverett ↶ Reply to #3250 #3254 07:30 PM, 23 Jul 2023
    This binary is compiled on 15th July.
  • @ricnar #3255 07:31 PM, 23 Jul 2023

    photo_2023-07-23_19-31-39.jpg
  • @ricnar #3256 07:31 PM, 23 Jul 2023
    there is one only more new version
  • @ricnar #3257 07:31 PM, 23 Jul 2023
    pulling
  • @ricnar #3258 07:32 PM, 23 Jul 2023
    i will compile this
  • @HughEverett ↶ Reply to #3254 #3259 07:32 PM, 23 Jul 2023
    Are you sure? Because it's compiled on 15th July. Not today, or yesterday.
  • @ricnar #3260 07:33 PM, 23 Jul 2023
    maybe i restore the snapshot to an old version
  • @ricnar #3261 07:33 PM, 23 Jul 2023
    i will recompile now
  • @HughEverett ↶ Reply to #3260 #3262 07:33 PM, 23 Jul 2023
    That's exactly why you see 'invalid checksum'.
  • @HughEverett #3263 07:34 PM, 23 Jul 2023
    Because the structure and the headers of the newest version of HyperDbg is different from the previous versions.
  • @ricnar #3264 07:34 PM, 23 Jul 2023

    photo_2023-07-23_19-34-33.jpg
  • @HughEverett ↶ Reply to #3260 #3265 07:35 PM, 23 Jul 2023
    This one is also in the to-do list to check the version of HyperDbg on both debuggee and debugger to make sure they match.
  • @HughEverett ↶ Reply to #3265 #3266 07:35 PM, 23 Jul 2023
    This will prevent such errors.
  • @HughEverett ↶ Reply to #3242 #3268 07:37 PM, 23 Jul 2023
    The reason why the 'u' command not worked in your case is because you use a 64-bit disassembler which might not find the target assembly as a valid opcode. And as the result, it won't show any result.
  • @HughEverett #3269 07:38 PM, 23 Jul 2023
    But as you know, the newest 'dev' commit will notify you about this to avoid these problems. 😉
  • @ricnar #3270 07:41 PM, 23 Jul 2023
    9090ebfe is nop nop jmp to ep
  • @ricnar #3271 07:41 PM, 23 Jul 2023
    is valid
  • @ricnar #3272 07:42 PM, 23 Jul 2023
    but i will retry again with the last version
  • @HughEverett ↶ Reply to #3272 #3273 07:47 PM, 23 Jul 2023
    I'm gonna go sleep now. Let me know if there is anything wrong there. I'll fix it tomorrow. 😴🥱
  • @ricnar #3274 07:48 PM, 23 Jul 2023
    animation.gif.mp4
  • @ricnar #3275 07:51 PM, 23 Jul 2023
    the error was mine
  • @ricnar #3276 07:51 PM, 23 Jul 2023
    i used eq
  • @ricnar #3277 07:51 PM, 23 Jul 2023
    not eb
  • @ricnar #3278 07:52 PM, 23 Jul 2023
    and the order was incorrect
  • @ricnar #3279 08:19 PM, 23 Jul 2023

    photo_2023-07-23_20-19-11.jpg
  • @ricnar #3280 08:19 PM, 23 Jul 2023
    last compiled version
  • @ricnar #3281 08:19 PM, 23 Jul 2023

    photo_2023-07-23_20-19-37.jpg
  • @ricnar #3282 08:24 PM, 23 Jul 2023
    Maybe some interconnection problem using 2 VMS
  • @ricnar #3283 08:24 PM, 23 Jul 2023
    This problem does not happen using a physical machine and one only vm as target
  • @YMahmoudnia #3284 08:32 PM, 23 Jul 2023
    When @ricnar joined the group, and knowing him as a professional person, I told @HughEverett, 'Prepare yourself for many challenges ahead.' 😊

    Thank you guys.
  • @ricnar #3285 08:37 PM, 23 Jul 2023
    bb10-he-just-irritates-me.mp4
  • @ricnar #3286 08:37 PM, 23 Jul 2023
    hehe
  • 24 July 2023 (43 messages)
  • @afkuvzrkar ↶ Reply to #3284 #3287 03:44 AM, 24 Jul 2023
    document_2023-07-24_03-44-41.mp4
  • @HughEverett ↶ Reply to #3282 #3288 03:59 AM, 24 Jul 2023
    The VMs serial connections should not be prone to errors. It's weird, I'll check it. 🤔
  • @ricnar #3289 09:12 AM, 24 Jul 2023
    https://youtu.be/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 #3290 09:12 AM, 24 Jul 2023
    Subtitules coming
  • @HughEverett ↶ Reply to #3289 #3291 09:20 AM, 24 Jul 2023
    Wow, it's great.
  • @HughEverett ↶ Reply to #3289 #3292 09:22 AM, 24 Jul 2023
    animation.gif.mp4
  • @YMahmoudnia ↶ Reply to #3289 #3293 09:26 AM, 24 Jul 2023
    You are doing great @ricnar. And what about your course @HughEverett?
  • @HughEverett ↶ Reply to #3293 #3294 09:26 AM, 24 Jul 2023
    It will be finished once the video editor makes the necessary changes.
  • @HughEverett #3295 09:27 AM, 24 Jul 2023
    probably next week.
  • @HughEverett #3296 10:48 AM, 24 Jul 2023

    photo_2023-07-24_10-48-20.jpg
  • @HughEverett #3297 10:48 AM, 24 Jul 2023

    photo_2023-07-24_10-48-20.jpg
  • @HughEverett #3298 10:48 AM, 24 Jul 2023

    photo_2023-07-24_10-48-21.jpg
  • @ricnar #3299 10:50 AM, 24 Jul 2023
    did you try with two vms?
  • @ricnar #3300 10:50 AM, 24 Jul 2023
    like i did in my video?
  • @HughEverett ↶ Reply to #3296 #3301 10:52 AM, 24 Jul 2023
    Starting from the next version, HyperDbg will check whether the build and the version of the debuggee and debugger match or not and if it didn't match then it prevents you from loading the driver. It's mainly added to prevent errors (such as yesterday's error @ricnar) with version mismatch of HyperDbg. And also, the debuggee driver won't load until it's sure that the debugger is listening to it.
  • @ricnar #3302 10:52 AM, 24 Jul 2023
    yes this is great
  • @HughEverett ↶ Reply to #3299 #3303 10:52 AM, 24 Jul 2023
    Do you mean the interconnection error ?
  • @ricnar #3304 10:52 AM, 24 Jul 2023
    but now the error happens with the same version too
  • @ricnar #3305 10:52 AM, 24 Jul 2023
    yes
  • @HughEverett ↶ Reply to #3304 #3306 10:53 AM, 24 Jul 2023
    Okay, I'll setup and test two VMs tomorrow to find out the problem.
  • @ricnar #3307 10:53 AM, 24 Jul 2023
    i think the scenario is different in serial por connection
  • @ricnar #3308 10:53 AM, 24 Jul 2023
    port
  • @HughEverett ↶ Reply to #3307 #3309 10:53 AM, 24 Jul 2023
    🤔🤔🤔
  • @HughEverett #3310 10:53 AM, 24 Jul 2023
    That could be.
  • @ricnar #3311 10:54 AM, 24 Jul 2023
    when you connect from a pyhisical machine to a vm and the target is disconnected the host detects the disconnection
  • @ricnar #3312 10:54 AM, 24 Jul 2023
    but between two vms the host remain connected and you can restart the target and nothing happen
  • @HughEverett ↶ Reply to #3312 #3313 10:55 AM, 24 Jul 2023
    🤔
  • @ricnar #3314 10:55 AM, 24 Jul 2023
    maybe some detection problem
  • @ricnar #3315 10:56 AM, 24 Jul 2023
    and this can lead to a sincronization error
  • @HughEverett #3316 10:56 AM, 24 Jul 2023
    So, it means that each time you use commands like '.process list', it shows error?
  • @ricnar #3317 10:57 AM, 24 Jul 2023
    not always
  • @ricnar #3318 10:57 AM, 24 Jul 2023
    but it happens
  • @ricnar #3319 10:57 AM, 24 Jul 2023
    and when downloading symbols too
  • @ricnar #3320 10:58 AM, 24 Jul 2023
    when i made the two snapshots it does not happen
  • @ricnar #3321 10:58 AM, 24 Jul 2023
    but using it, it happened more and more
  • @HughEverett #3322 10:59 AM, 24 Jul 2023
    Got it, maybe the problem that @prekvapko previously mentioned about physical COM port is also related to this.
  • @ricnar #3323 10:59 AM, 24 Jul 2023
    maybe it is
  • @ricnar #3324 11:19 AM, 24 Jul 2023
    and cannot be tried in a future a possible net connection like windbg?
  • @HughEverett ↶ Reply to #3324 #3325 11:21 AM, 24 Jul 2023
    I think it should be possible. A portion of the 'kdnet' is open-source:
    https://learn.microsoft.com/en-us/windows-hardware/drivers/debugger/kdserial-extensibility-code-samples
    KDNET Serial, and KDSerial extensibility code samples - Windows drivers

    Debugging Tools for Windows supports extending the KDNET serial transport.

  • @HughEverett ↶ Reply to #3325 #3326 11:21 AM, 24 Jul 2023
    We could borrow the kdnet source code and use it as the wrapper for HyperDbg.
  • @ricnar #3327 11:22 AM, 24 Jul 2023
    This should be great
  • @ricnar #3328 11:22 AM, 24 Jul 2023
    Awesome
  • @hillusion59 #3329 01:27 PM, 24 Jul 2023
    Joined.
  • 25 July 2023 (5 messages)
  • @HughEverett ↶ Reply to #3306 #3330 01:57 PM, 25 Jul 2023
    I need more time testing it. right now I have to finish HyperDbg course, after that, I'll get to it.
  • @YMahmoudnia ↶ Reply to #3330 #3331 02:11 PM, 25 Jul 2023
    I haven't checked the panel, has a new lesson been added?
  • @HughEverett ↶ Reply to #3331 #3332 04:36 PM, 25 Jul 2023
    No, but probably a new addition to the previously recorded '!monitor' for the execution interception will be added.
  • @YMahmoudnia ↶ Reply to #3332 #3333 06:22 PM, 25 Jul 2023
    So don't update Hyperdebug for now until the course is published. 😁
  • @5988062963 #3334 09:27 PM, 25 Jul 2023
    Joined.
  • 26 July 2023 (29 messages)
  • @Cynical9 #3335 09:59 AM, 26 Jul 2023
    Joined.
  • @Cynical9 #3336 10:00 AM, 26 Jul 2023
    Hey guys! Amazing software you have.

    Is there any way to connect 2 physical machines without the comm port, or at least fake it? none of my machines have that
  • @HughEverett ↶ Reply to #3336 #3337 10:14 AM, 26 Jul 2023
    Hi,
    You can use HyperDbg in VMI Mode without connecting two machines. It's like Local Kernel Debugging.
  • @HughEverett #3338 10:15 AM, 26 Jul 2023
    But, you cannot pause or step the debuggee.
  • @HughEverett #3339 10:16 AM, 26 Jul 2023
    Other than that, all of the features of HyperDbg is supported in VMI Mode.
  • @Cynical9 #3340 10:16 AM, 26 Jul 2023
    I am using it for a usermode process, is there an option to trace a threads instructions? I am checking out the documentation now
  • @HughEverett ↶ Reply to #3340 #3341 10:17 AM, 26 Jul 2023
    Can you use a virtual machine?
  • @HughEverett #3342 10:17 AM, 26 Jul 2023
    Like VMware workstation.
  • @Cynical9 #3343 10:17 AM, 26 Jul 2023
    I cannot, the process I am using it on does not run on VM, there is far to many checks
  • @HughEverett ↶ Reply to #3343 #3344 10:21 AM, 26 Jul 2023
    HyperDbg is VT-x based debugger itself. So, you can test it with your process, first enter the VMI Mode and then run your target process, if it detects HyperDbg, then it means more checks are needed to be bypassed, other than that, you can trace your target process (stepping instructions is only supported in the Debugger Mode) but you can trace any memory read/write/executions. You simulate stepping through the instructions by using event short circuiting, etc.
  • @HughEverett ↶ Reply to #3344 #3345 10:24 AM, 26 Jul 2023
    But before that, run your debuggee along with HyperDbg and check whether it's detected or not after that you can tell us about the scenario of which you need to apply to your target debuggee (e.g., I want manipulate files accessed by this process, I want to monitor/change the network connections from this process), so we could tell you what feature of hyperdbg works best for you.
  • @Cynical9 #3346 10:28 AM, 26 Jul 2023
    Ideally im looking to just trace a specific thread, its obfuscated heavily however I would just manually analyse the instructions as I have narrowed it down to a specific area however I cannot backtrace as the stack and stacktrace are messed up so I have no idea where the previous instructions are, IDA does not show and XREFS
  • @Cynical9 #3347 10:28 AM, 26 Jul 2023
    let me know if you think of another way to go about doing this or what would be best for this situation
  • @HughEverett ↶ Reply to #3346 #3348 10:30 AM, 26 Jul 2023
    Do you know if it's deobfuscated in the memory after passing its checks?
  • @Cynical9 #3349 10:31 AM, 26 Jul 2023
    No it doesn't get deobfuscated unfortunately
  • @Cynical9 #3350 10:31 AM, 26 Jul 2023
    its just a mess
  • @HughEverett #3351 10:35 AM, 26 Jul 2023
    This is really hard, not just with HyperDbg, with other debuggers as well. If I were in you shoes, I try to monitor its interactions with the operating system. For example, most of the times, you don't need to deobfuscate a really messy binary file. Instead, you just need to manipulate its interactions. For example, this application performs dozens of check, and if it's sure that the integrity of the application is untouched, it contacts its target server. In such a scenarios, you don't need to make your hands dirty deobfuscating it, instead monitor its system-calls is enough.
  • @Cynical9 #3352 10:37 AM, 26 Jul 2023
    Yes I know, im in a tricky situation. I know exactly what your saying as I have been doing that for a while now lol. My problem is im sure its a hearbeat which could just be a shared/global variable being used which means there is no system calls. Ill maybe check other areas but its a tricky one
  • @HughEverett ↶ Reply to #3351 #3353 10:39 AM, 26 Jul 2023
    Other that, you can use HyperDbg's !exception command. Once the system wants to context-switch to another process, it throws a clock-interrupt. You can simply monitor that and it has the full state of the system (registers, memory, whatever). From there you can change the flow (direction) of program or read the memory, etc.

    https://docs.hyperdbg.org/commands/extension-commands/exception
    !exception (hook first 32 entries of IDT)

    Description of the '!exception' command in HyperDbg.

  • @HughEverett ↶ Reply to #3352 #3354 10:40 AM, 26 Jul 2023
    Do you know the address of this shared global variable?
  • @HughEverett #3355 10:40 AM, 26 Jul 2023
    If you know the address of it, you can '!monitor' that in HyperDbg.
  • @sariaki #3356 06:43 PM, 26 Jul 2023
    Is there any way that I can send a command to a running Hyperdbg session without the cli?
    What I am looking for is basically 'reverse event fowarding' in a way - I want to send a command to a running Hyperdbg session through my own programm.
  • @sariaki #3357 06:43 PM, 26 Jul 2023
    Thought I might be able to achieve this by using HPRDBGCTRL.dll, but was sadly mistaken.
  • @HughEverett ↶ Reply to #3356 #3359 07:03 PM, 26 Jul 2023
    HyperDbg can work over TCP in VMI mode.

    Is it what you need?

    https://docs.hyperdbg.org/commands/meta-commands/.connect#examples
    .connect (connect to a session)

    Description of the '.connect' command in HyperDbg.

  • @sariaki #3360 07:05 PM, 26 Jul 2023
    I'm not sure. Does this allow me to connect to a debugging session?
  • @sariaki #3361 07:05 PM, 26 Jul 2023
    The description is vague to me
  • @sariaki #3362 07:12 PM, 26 Jul 2023
    OOOh, I think I understand it. This is pretty much what I want (I think?).
    I thank you for your quick response and this powerful project!
  • @HughEverett ↶ Reply to #3360 #3363 07:20 PM, 26 Jul 2023
    Yes, it's like connecting to a remote instance of HyperDbg. You can use the '.listen' command and then the '.connect' command.

    Take a look at this:
    https://docs.hyperdbg.org/getting-started/attach-to-hyperdbg/debug#connect-to-debuggee-vmi-mode
    Attach to a remote machine

    Remote debugging in VMI Mode and Debugger Mode

  • @HughEverett ↶ Reply to #3360 #3364 07:22 PM, 26 Jul 2023
    And for the automation, you can change the source code of this file which implements the logic behind listening and connecting:

    https://github.com/HyperDbg/HyperDbg/blob/master/hyperdbg/hprdbgctrl/code/debugger/communication/remote-connection.cpp
    HyperDbg/hyperdbg/hprdbgctrl/code/debugger/communication/remote-connection.cpp at master · HyperDbg/HyperDbg

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

  • 27 July 2023 (19 messages)
  • @HughEverett #3365 08:18 AM, 27 Jul 2023
    @ricnar I tested two VMs debugging over COM port.

    photo_2023-07-27_08-18-36.jpg
  • @HughEverett #3366 08:18 AM, 27 Jul 2023

    photo_2023-07-27_08-18-36.jpg
  • @HughEverett #3367 08:18 AM, 27 Jul 2023

    photo_2023-07-27_08-18-36.jpg
  • @HughEverett #3368 08:18 AM, 27 Jul 2023
    I couldn't reproduce the error. It didn't show any checksum failed after 1 hour of continuously transmitting data.
  • @HughEverett #3369 08:19 AM, 27 Jul 2023
    Both '.sym reload' and '.process list' gives a correct response without 'checksum error'. I test it serveral times. Do you have any idea how can reproduce the error? probably other ways?
  • @HughEverett #3371 08:23 AM, 27 Jul 2023
    What version of VMware workstation do you use? Mine is 16.2.4.
  • @ricnar #3372 08:57 AM, 27 Jul 2023
    The last versión
  • @ricnar #3373 08:58 AM, 27 Jul 2023
    Try to create snapshots before connect
  • @ricnar #3374 08:58 AM, 27 Jul 2023
    And restore snapshots and connect
  • @ricnar #3375 09:00 AM, 27 Jul 2023
    And You can reproduce easily the other problem when You restart the Target the host does not detect
  • @ricnar #3376 09:01 AM, 27 Jul 2023
    This happen every tome when You restart the Target the host does not notice
  • @ricnar #3377 09:02 AM, 27 Jul 2023
    Did You configure the host as nat and the Target as host only?
  • @HughEverett ↶ Reply to #3377 #3378 10:33 AM, 27 Jul 2023
    I did the same, but it still works perfectly. (I mean transferring data, not noticing that the target is disconnected.).
    But, I test it with the latest pre-compiled binaries released in the GitHub. It didn't work! But, the latest 'Dev' branch commit works perfectly.
  • @HughEverett #3379 10:34 AM, 27 Jul 2023
    Two/three days ago, I made some modification for handshaking between the debugger and the debuggee. In that 'commit' I made some modification on the COM timeout, etc.
  • @HughEverett #3380 10:34 AM, 27 Jul 2023
    I suspect that it might accidentally solve this problem!
  • @HughEverett #3381 10:36 AM, 27 Jul 2023
    Would you please test it with the latest dev branch commit ("remove user-mode debugger trap flag ignorance")? @ricnar
  • @HughEverett #3382 01:18 PM, 27 Jul 2023
    Okay, the serial connection over two virtual machines is now documented here: https://docs.hyperdbg.org/getting-started/attach-to-hyperdbg/debug#vmware-workstation-two-vms
    Attach to a remote machine

    Remote debugging in VMI Mode and Debugger Mode

  • @ricnar ↶ Reply to #3381 #3383 01:45 PM, 27 Jul 2023
    I will test the weekend thanks
  • @codekraken #3384 10:41 PM, 27 Jul 2023
    Joined.
  • 28 July 2023 (1 messages)
  • @TAPTS #3385 02:35 PM, 28 Jul 2023
    Joined.
  • 29 July 2023 (7 messages)
  • @ricnar #3386 02:11 PM, 29 Jul 2023
    As i promised, i made a translation of VIDEO 2 about HYPERDBG, to some language similar to english, i'm not an english speaker at all, but i put a lot of effort to made it, and i think it will be understable at least.
  • @ricnar #3387 02:11 PM, 29 Jul 2023
    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

  • @HughEverett ↶ Reply to #3386 #3388 04:02 PM, 29 Jul 2023
    It's great. Thank you for all of your efforts. 🙏
  • @ricnar #3389 04:21 PM, 29 Jul 2023
    Thanks to you
  • @ricnar #3390 04:22 PM, 29 Jul 2023
    You made the real job here
  • @HughEverett ↶ Reply to #3390 #3391 04:27 PM, 29 Jul 2023
    Certainly not! Numerous individuals contribute to make this infrastructure run smoothly and of course I'm not the only one.
  • @ricnar #3392 04:27 PM, 29 Jul 2023
    Thanks to all of them
  • 30 July 2023 (396 messages)
  • @ricnar #3393 10:07 AM, 30 Jul 2023

    photo_2023-07-30_10-07-04.jpg
  • @HughEverett ↶ Reply to #3393 #3394 10:10 AM, 30 Jul 2023
    Is the 'checksum error' problem in the connection between two VMs fixed? 🤔
  • @ricnar #3395 10:13 AM, 30 Jul 2023
    i'm just compiling, copying
  • @ricnar #3396 10:13 AM, 30 Jul 2023
    i will try next
  • @ricnar #3397 10:34 AM, 30 Jul 2023
    seems to work perfect
  • @ricnar #3398 10:35 AM, 30 Jul 2023
    it didn't fail till now
  • @ricnar #3399 10:37 AM, 30 Jul 2023
    the unique problem to me is this
  • @ricnar #3400 10:39 AM, 30 Jul 2023

    photo_2023-07-30_10-39-14.jpg
  • @ricnar #3401 10:39 AM, 30 Jul 2023
    the lm list the symbols of the wow64 modules
  • @ricnar #3402 10:39 AM, 30 Jul 2023
    is a 32 bits process
  • @ricnar #3403 10:39 AM, 30 Jul 2023
    this is OK
  • @ricnar #3404 10:39 AM, 30 Jul 2023
    but
  • @HughEverett ↶ Reply to #3397 #3405 10:41 AM, 30 Jul 2023
    That's great. @prekvapko Do you still have access to your computer with physical serial port? Can you please check HyperDbg (in the 'dev' branch) whether the problem with serial connection is solved or not?
  • @ricnar #3406 10:41 AM, 30 Jul 2023

    photo_2023-07-30_10-41-42.jpg
  • @ricnar #3407 10:41 AM, 30 Jul 2023
    how to use the x command with the 32 bits user modules
  • @HughEverett ↶ Reply to #3406 #3408 10:42 AM, 30 Jul 2023
    Yeah, I noticed it too.
  • @ricnar #3409 10:42 AM, 30 Jul 2023
    maybe a x32 command can be added
  • @ricnar #3410 10:42 AM, 30 Jul 2023
    like u32 to disassemble
  • @HughEverett #3411 10:42 AM, 30 Jul 2023
    I don't know why kernel32's symbol is problematic. Let me see it again.
  • @HughEverett ↶ Reply to #3409 #3412 10:43 AM, 30 Jul 2023
    No, I don't think so, because user32, ntdll, all of them except kernel32 is okay.
  • @ricnar #3413 10:43 AM, 30 Jul 2023

    photo_2023-07-30_10-43-31.jpg
  • @ricnar #3414 10:43 AM, 30 Jul 2023
    not ok
  • @HughEverett #3415 10:43 AM, 30 Jul 2023
    The same problem is with kernel32, 64 bit.
  • @ricnar #3416 10:43 AM, 30 Jul 2023
    is displaying 64 bit addreses
  • @HughEverett ↶ Reply to #3414 #3417 10:44 AM, 30 Jul 2023
    Did you run '.sym reload pid xxx' ?
  • @ricnar #3418 10:44 AM, 30 Jul 2023
    sym reload in the context
  • @ricnar #3419 10:44 AM, 30 Jul 2023
    i will try with the pid
  • @prekvapko ↶ Reply to #3405 #3420 10:45 AM, 30 Jul 2023
    Will do!
  • @ricnar ↶ Reply to #3417 #3421 10:46 AM, 30 Jul 2023

    photo_2023-07-30_10-46-53.jpg
  • @ricnar #3422 10:47 AM, 30 Jul 2023
    it hangs
  • @ricnar #3423 10:47 AM, 30 Jul 2023
    the target is freezed
  • @HughEverett ↶ Reply to #3422 #3424 10:47 AM, 30 Jul 2023
    with a 32-bit program?
  • @ricnar #3425 10:47 AM, 30 Jul 2023
    and the cmd host dont response
  • @ricnar #3426 10:48 AM, 30 Jul 2023
    yes the packed program
  • @HughEverett #3427 10:48 AM, 30 Jul 2023
    Let me check it now.
  • @ricnar #3428 10:48 AM, 30 Jul 2023
    the same packed program
  • @ricnar #3429 10:49 AM, 30 Jul 2023
    maybe the event enabled
  • @ricnar #3430 10:50 AM, 30 Jul 2023
    could made the problem
  • @ricnar #3431 10:50 AM, 30 Jul 2023
    i forgot to disable the event
  • @ricnar #3432 10:50 AM, 30 Jul 2023
    i will try again
  • @HughEverett #3433 10:52 AM, 30 Jul 2023
    It loaded successfully for me.

    photo_2023-07-30_10-52-40.jpg
  • @prekvapko #3434 10:56 AM, 30 Jul 2023
    On PC now, will check the physical conn now
  • @ricnar #3435 11:02 AM, 30 Jul 2023

    photo_2023-07-30_11-02-01.jpg
  • @ricnar #3436 11:02 AM, 30 Jul 2023
    lm with pid change context to hyperdbg
  • @HughEverett ↶ Reply to #3436 #3437 11:03 AM, 30 Jul 2023
    yes, the '.process' can be used to return to the previous process again.
  • @ricnar #3438 11:03 AM, 30 Jul 2023

    photo_2023-07-30_11-03-42.jpg
  • @ricnar #3439 11:03 AM, 30 Jul 2023
    process start like G
  • @HughEverett ↶ Reply to #3438 #3440 11:04 AM, 30 Jul 2023
    It won't get the context?
  • @ricnar #3441 11:05 AM, 30 Jul 2023
    the packed starts and it stucks in the get()
  • @ricnar #3442 11:05 AM, 30 Jul 2023
    when you enter the user name
  • @HughEverett #3443 11:05 AM, 30 Jul 2023
    yes, this is expected.
  • @ricnar #3444 11:06 AM, 30 Jul 2023

    photo_2023-07-30_11-06-17.jpg
  • @HughEverett ↶ Reply to #3443 #3445 11:06 AM, 30 Jul 2023
    Well, it's actually how we implement the '.process'. Take a look at this:
    https://docs.hyperdbg.org/tips-and-tricks/considerations/difference-between-process-and-thread-switching-commands
    Difference between process and thread switching commands

    When to use '.process', '.process2', '.thread', and '.thread2' commands

  • @ricnar #3446 11:06 AM, 30 Jul 2023
    when returns after typing it forgot the symbols
  • @HughEverett ↶ Reply to #3445 #3447 11:07 AM, 30 Jul 2023
    You have a really cool trick to avoid this problem. Let me explain.
  • @HughEverett #3448 11:08 AM, 30 Jul 2023
    The way that HyperDbg grabs the execution in the '.process' command is monitoring for clock-interrupts. Once a clock-interrupt is thrown in the target process, we intercept the execution.
  • @HughEverett #3449 11:09 AM, 30 Jul 2023
    The problem why you can't get the execution right now, is because functions like get() will eventually call the 'WaitForSingleObject()', and the execution will go to the Windows kerenl.
  • @HughEverett #3450 11:10 AM, 30 Jul 2023
    Windows won't execute the target program and won't assign it a time slice as the thread is still in the waiting state (waiting for an input from user).
  • @HughEverett #3451 11:10 AM, 30 Jul 2023
    And the target thread won't get a chance to get executed and as the result, HyperDbg is not able to intercept the execution.
  • @HughEverett #3452 11:10 AM, 30 Jul 2023
    How can we fix it?
  • @HughEverett #3453 11:11 AM, 30 Jul 2023
    Well, we have a really cool trick for it 🙂
  • @ricnar #3454 11:11 AM, 30 Jul 2023
    👍
  • @HughEverett #3455 11:11 AM, 30 Jul 2023
    You can use the '!monitor x' command on the target range of the packed process.
  • @HughEverett #3456 11:12 AM, 30 Jul 2023
    Once you provide the input to the process, the execution will be returned to the user-mode.
  • @ricnar #3457 11:12 AM, 30 Jul 2023
    yes
  • @ricnar #3458 11:12 AM, 30 Jul 2023
    but the 32 bits symbols does not work here
  • @HughEverett #3459 11:12 AM, 30 Jul 2023
    The execution will be intercepted in the user-mode. As we !monitor it for the 'x' attribute.
  • @ricnar #3460 11:13 AM, 30 Jul 2023

    photo_2023-07-30_11-13-16.jpg
  • @HughEverett ↶ Reply to #3458 #3461 11:13 AM, 30 Jul 2023
    I verified that the 'kernel32' symbols have problem, but other modules are okay?
  • @ricnar #3462 11:13 AM, 30 Jul 2023
    i start the process and it stops in the pushad
  • @ricnar #3463 11:13 AM, 30 Jul 2023
    i want to put a breakpoint in user32 messagebox now
  • @HughEverett ↶ Reply to #3463 #3464 11:14 AM, 30 Jul 2023
    So, what's the problem? 🤨
  • @ricnar #3465 11:15 AM, 30 Jul 2023

    photo_2023-07-30_11-15-14.jpg
  • @HughEverett ↶ Reply to #3465 #3466 11:15 AM, 30 Jul 2023
    are you sure that the 'user32' symbol is available?
  • @HughEverett #3467 11:16 AM, 30 Jul 2023
    This is a 32-bit version, so it needs to be re-downloaded.
  • @HughEverett #3468 11:16 AM, 30 Jul 2023
    Most of the times, people have symbols for user32 (64-bit) version.
  • @HughEverett #3469 11:16 AM, 30 Jul 2023
    Can you run '.sym download' now?
  • @ricnar #3470 11:16 AM, 30 Jul 2023

    photo_2023-07-30_11-16-43.jpg
  • @ricnar #3471 11:17 AM, 30 Jul 2023

    photo_2023-07-30_11-17-11.jpg
  • @ricnar #3472 11:17 AM, 30 Jul 2023
    ah
  • @ricnar #3473 11:17 AM, 30 Jul 2023
    i see now
  • @HughEverett #3474 11:17 AM, 30 Jul 2023
    👌👌👍
  • @ricnar #3475 11:17 AM, 30 Jul 2023

    photo_2023-07-30_11-17-59.jpg
  • @ricnar #3476 11:18 AM, 30 Jul 2023
    but it didn't work
  • @HughEverett ↶ Reply to #3475 #3477 11:18 AM, 30 Jul 2023
    again '.sym reload pid xxx'.
  • @HughEverett #3478 11:18 AM, 30 Jul 2023
    and take a look at the '.sym table'.
  • @ricnar #3479 11:18 AM, 30 Jul 2023
    i made it
  • @ricnar #3480 11:19 AM, 30 Jul 2023
    and it changes to hyperdbg context
  • @ricnar #3481 11:19 AM, 30 Jul 2023
    rechange to my process
  • @ricnar #3482 11:19 AM, 30 Jul 2023
    and ir didnt work
  • @HughEverett #3483 11:20 AM, 30 Jul 2023
    I don't get it, what do you mean? 🧐🤔
  • @ricnar #3484 11:20 AM, 30 Jul 2023
    it didn't work
  • @ricnar #3485 11:20 AM, 30 Jul 2023
    now it BSOD the target
  • @ricnar #3486 11:21 AM, 30 Jul 2023
    i use sym download, next sym reload pid
  • @ricnar #3487 11:21 AM, 30 Jul 2023
    next
  • @ricnar #3488 11:21 AM, 30 Jul 2023
    .process pid xxx
  • @HughEverett ↶ Reply to #3485 #3489 11:21 AM, 30 Jul 2023
    😳😳😳
  • @ricnar #3490 11:21 AM, 30 Jul 2023
    to return to my context
  • @HughEverett #3491 11:21 AM, 30 Jul 2023
    Let me check.
  • @ricnar #3492 11:21 AM, 30 Jul 2023
    and it didn't work
  • @ricnar #3493 11:21 AM, 30 Jul 2023
    and it crashes the target at the end
  • @ricnar #3494 11:22 AM, 30 Jul 2023
    seems to be very complicated
  • @ricnar #3495 11:22 AM, 30 Jul 2023
    and i can't catch how it works
  • @HughEverett ↶ Reply to #3495 #3496 11:23 AM, 30 Jul 2023
    I'm checking it now.
  • @ricnar #3497 11:23 AM, 30 Jul 2023
    i will type your commands one by one
  • @ricnar #3498 11:23 AM, 30 Jul 2023
    first i start the process with start path
  • @ricnar #3499 11:25 AM, 30 Jul 2023

    photo_2023-07-30_11-25-27.jpg
  • @prekvapko ↶ Reply to #3434 #3500 11:25 AM, 30 Jul 2023
    Unfortunately still met with invalid packet received spam
  • @ricnar #3501 11:25 AM, 30 Jul 2023
    now i'm in the pushad
  • @HughEverett #3502 11:25 AM, 30 Jul 2023
    It's correct for me.

    photo_2023-07-30_11-25-51.jpg
  • @ricnar #3503 11:26 AM, 30 Jul 2023
    i'm in the pushad
  • @HughEverett ↶ Reply to #3501 #3504 11:26 AM, 30 Jul 2023
    The problem is, the target process didn't load the user32.

    photo_2023-07-30_11-26-24.jpg
  • @HughEverett ↶ Reply to #3500 #3505 11:26 AM, 30 Jul 2023
  • @ricnar #3506 11:26 AM, 30 Jul 2023
    oh i will try with a kernel32 api
  • @HughEverett #3511 11:28 AM, 30 Jul 2023
    As I traced it, the problem is with dbghelp symbol interpreter.
  • @HughEverett #3512 11:28 AM, 30 Jul 2023
    Oh no
  • @HughEverett #3513 11:28 AM, 30 Jul 2023
    I'm wrong
  • @HughEverett #3514 11:29 AM, 30 Jul 2023
    It works for the kernel32 as well.
  • @ricnar #3515 11:29 AM, 30 Jul 2023

    photo_2023-07-30_11-29-14.jpg
  • @ricnar #3516 11:29 AM, 30 Jul 2023
    yes but
  • @ricnar #3517 11:29 AM, 30 Jul 2023
    is a terrible thing that the reload option starts the process
  • @ricnar #3518 11:29 AM, 30 Jul 2023
    i must use a infinite loop to remain in the same instructuon
  • @ricnar #3519 11:30 AM, 30 Jul 2023
    this is annoying
  • @ricnar #3520 11:30 AM, 30 Jul 2023
    but works
  • @ricnar #3521 11:30 AM, 30 Jul 2023
    is only an opinion
  • @HughEverett #3522 11:31 AM, 30 Jul 2023
    I think this can be solved. I'm not sure about the kernel part but I think I can solve it to not continue the debuggee in case of the '.sym' command.
  • @HughEverett #3523 11:31 AM, 30 Jul 2023
    I'll put it to the to-do list.
  • @ricnar #3524 11:31 AM, 30 Jul 2023
    yes
  • @ricnar #3525 11:31 AM, 30 Jul 2023
    will be great
  • @ricnar #3526 11:31 AM, 30 Jul 2023
    but the checksum error did not happen anymore here
  • @HughEverett ↶ Reply to #3526 #3527 11:32 AM, 30 Jul 2023
    💃
  • @HughEverett ↶ Reply to #3500 #3528 11:32 AM, 30 Jul 2023
    At least the same problem is solved now for VMware workstation.
  • @ricnar #3529 11:32 AM, 30 Jul 2023
    yes
  • @ricnar #3530 11:33 AM, 30 Jul 2023
    is solved here
  • @ricnar #3531 11:33 AM, 30 Jul 2023
    congratulations-tribe.mp4
  • @prekvapko #3532 11:33 AM, 30 Jul 2023
    invalid packet spam seems to still be correlated to symbol sync
  • @prekvapko #3533 11:33 AM, 30 Jul 2023
    or at least gets spammed around that time
  • @HughEverett ↶ Reply to #3532 #3534 11:33 AM, 30 Jul 2023
    Did you use the latest 'dev' branch?
  • @prekvapko #3535 11:33 AM, 30 Jul 2023
    yup
  • @HughEverett #3536 11:33 AM, 30 Jul 2023
    🤔
  • @prekvapko #3537 11:33 AM, 30 Jul 2023
    wait
  • @prekvapko #3538 11:33 AM, 30 Jul 2023
    no
  • @prekvapko #3539 11:33 AM, 30 Jul 2023
    i didnt
  • @prekvapko #3540 11:33 AM, 30 Jul 2023
    LOL
  • @prekvapko #3541 11:34 AM, 30 Jul 2023
    welp time for another test
  • @prekvapko #3542 11:34 AM, 30 Jul 2023
    after i finish my game
  • @prekvapko #3543 11:34 AM, 30 Jul 2023
    i always forget that cloning from url clones master..
  • @HughEverett ↶ Reply to #3540 #3544 11:34 AM, 30 Jul 2023
    Ex5awL9XMAMFApM.mp4
  • @ricnar #3545 11:36 AM, 30 Jul 2023
    i think a NET connection could be great too
  • @HughEverett ↶ Reply to #3545 #3546 11:37 AM, 30 Jul 2023
    yes.
  • @prekvapko #3547 11:37 AM, 30 Jul 2023
    wouldn't you lost the ability to break in the guest?
  • @prekvapko #3548 11:37 AM, 30 Jul 2023
    over physical machines**
  • @HughEverett ↶ Reply to #3547 #3549 11:37 AM, 30 Jul 2023
    In VMware?
  • @prekvapko #3550 11:37 AM, 30 Jul 2023
    over physical machines
  • @prekvapko #3551 11:38 AM, 30 Jul 2023
    2pcs
  • @HughEverett ↶ Reply to #3550 #3552 11:39 AM, 30 Jul 2023
    I didn't test it right now on physical machine. But the same problem that you mentioned happened to VMWare connecting two VMs, and now we fixed it. That's why I asked you to re-test HyperDbg on your physical machine as the same problem might be solved there as well.
  • @prekvapko #3553 11:39 AM, 30 Jul 2023
    I'm talking about NET connections
  • @HughEverett ↶ Reply to #3553 #3554 11:39 AM, 30 Jul 2023
    Oh
  • @prekvapko #3555 11:40 AM, 30 Jul 2023
    nvm.. you can't really use anything besides com
  • @prekvapko #3556 11:40 AM, 30 Jul 2023
    because yo uneed __in and __out with bios directly
  • @HughEverett #3557 11:40 AM, 30 Jul 2023
    Yes, that's definitely possible, but I need some times before supporting this feature. Right now, a lot of critical problems are still on the to-do list that needs to be solved.
  • @HughEverett #3558 11:41 AM, 30 Jul 2023
    If you guys have time can helping me too. We need someone to test the KDNET project which its source code is available in Win SDK, to compile it and test it and possibly add it to HyperDbg.
  • @HughEverett #3559 11:42 AM, 30 Jul 2023
    It's a little bit time consuming as we need to re-test everything to make sure we didn't break anything.
  • @prekvapko #3560 11:52 AM, 30 Jul 2023

    photo_2023-07-30_11-52-44.jpg
  • @prekvapko #3561 11:52 AM, 30 Jul 2023
    still invalid checksum on first msg
  • @prekvapko #3562 11:52 AM, 30 Jul 2023
    and then invalid packets..
  • @HughEverett ↶ Reply to #3562 #3563 11:53 AM, 30 Jul 2023
    no, it's not an invalid packet
  • @HughEverett #3564 11:53 AM, 30 Jul 2023
    How did you connect it?
  • @HughEverett #3565 11:53 AM, 30 Jul 2023
    wait
  • @prekvapko #3566 11:53 AM, 30 Jul 2023
    com ports 115200
  • @HughEverett #3567 11:54 AM, 30 Jul 2023
    on debugger: .debug remote serial 115200 com2
  • @prekvapko #3568 11:54 AM, 30 Jul 2023
    yes
  • @HughEverett #3569 11:54 AM, 30 Jul 2023
    it's debug 'remote'.
  • @prekvapko #3570 11:54 AM, 30 Jul 2023
    and prepare on guest
  • @HughEverett #3571 11:54 AM, 30 Jul 2023
    yes
  • @prekvapko #3572 11:54 AM, 30 Jul 2023
    I followed the wiki
  • @HughEverett #3573 11:54 AM, 30 Jul 2023
    It won't connect at all?
  • @HughEverett ↶ Reply to #3560 #3574 11:54 AM, 30 Jul 2023
    This message indicates that it's not connected.
  • @prekvapko #3575 11:54 AM, 30 Jul 2023
    debugger will show messages
  • @prekvapko #3576 11:55 AM, 30 Jul 2023
    invalid checksum, invalid packets
  • @HughEverett #3577 11:55 AM, 30 Jul 2023
    🤦‍♂️
  • @prekvapko #3578 11:55 AM, 30 Jul 2023
    it did not pass handshake, packets are being sent nontheless
  • @prekvapko #3579 11:56 AM, 30 Jul 2023
    i run debug remote serial 115200 on my laptop com3
  • @prekvapko #3580 11:56 AM, 30 Jul 2023
    first
  • @HughEverett #3581 11:56 AM, 30 Jul 2023
    are you sure both the debuggee and debugger use the same version?
  • @HughEverett #3582 11:56 AM, 30 Jul 2023
    The same compilation I mean.
  • @prekvapko #3583 11:56 AM, 30 Jul 2023
    yup
  • @prekvapko #3584 11:56 AM, 30 Jul 2023
    i always download from guest where i compiled it
  • @HughEverett #3585 11:57 AM, 30 Jul 2023
    Something is wrong here. Let me check it with you carefully.
  • @HughEverett #3586 11:57 AM, 30 Jul 2023
    Because once you see some messages in debugger (not debuggee), the debuggee should also show some messages.
  • @prekvapko #3587 11:58 AM, 30 Jul 2023
    what if the debugger received the messages, but was unable to process them
  • @prekvapko #3588 11:58 AM, 30 Jul 2023
    therefore it didn't respond?
  • @HughEverett ↶ Reply to #3587 #3589 11:58 AM, 30 Jul 2023
    No
  • @HughEverett #3590 11:58 AM, 30 Jul 2023
    That's not possible.
  • @HughEverett #3591 11:58 AM, 30 Jul 2023
    Because the debugger should send response to debuggee.
  • @HughEverett #3592 11:59 AM, 30 Jul 2023
    And if this message is not received in the debuggee, it won't send any messages there.
  • @prekvapko #3593 11:59 AM, 30 Jul 2023
    one second
  • @HughEverett #3594 11:59 AM, 30 Jul 2023
    That's why I say, something is went wrong here.
  • @prekvapko #3595 12:00 PM, 30 Jul 2023
    IMG_9987.MOV
  • @prekvapko #3596 12:01 PM, 30 Jul 2023
    multiple invalid packet prints show on debugger every time debugee is retrying
  • @HughEverett ↶ Reply to #3596 #3597 12:02 PM, 30 Jul 2023
    Can you use '115200' as baud rate?
  • @prekvapko #3598 12:02 PM, 30 Jul 2023
    I just tried 110 for test.
  • @prekvapko #3599 12:02 PM, 30 Jul 2023
    Used 115200, same result
  • @HughEverett ↶ Reply to #3599 #3600 12:03 PM, 30 Jul 2023
    okay, what's received there?
  • @prekvapko #3601 12:03 PM, 30 Jul 2023
    exactly the same
  • @prekvapko #3602 12:03 PM, 30 Jul 2023
    I will try one more thing, don't think it will have an effect
  • @prekvapko #3603 12:03 PM, 30 Jul 2023
    I have an extension on the com cable
  • @HughEverett #3604 12:03 PM, 30 Jul 2023
    This seems not to be a problem with the communication.
  • @HughEverett #3605 12:04 PM, 30 Jul 2023
    Please take a look at source code (put breakpoint) and see what it keeps sending there.
  • @HughEverett #3606 12:04 PM, 30 Jul 2023
    Because we don't have such a mechanism that keeps sending something like this
  • @HughEverett #3607 12:04 PM, 30 Jul 2023
    🤔
  • @prekvapko #3608 12:06 PM, 30 Jul 2023
    weird thing is, when i was checking it before
  • @prekvapko #3609 12:06 PM, 30 Jul 2023
    the packets seemed to have been very weird?
  • @prekvapko #3610 12:06 PM, 30 Jul 2023
    like I was receiving packets from debugee that should've came from debugger?
  • @prekvapko #3611 12:07 PM, 30 Jul 2023
    and I swear i did not accidentally use it the opposite ways
  • @HughEverett ↶ Reply to #3609 #3612 12:07 PM, 30 Jul 2023
    yes. I'm curious to know what received there that makes it show this message.
  • @HughEverett ↶ Reply to #3610 #3613 12:07 PM, 30 Jul 2023
    yes
  • @6515401709 #3614 12:09 PM, 30 Jul 2023
    Joined.
  • @prekvapko #3615 12:10 PM, 30 Jul 2023
    aight one second i'll pull the repo on laptop
  • @prekvapko #3616 12:14 PM, 30 Jul 2023
    where would you like me to put the breakpoint?
  • @HughEverett ↶ Reply to #3616 #3617 12:16 PM, 30 Jul 2023

    photo_2023-07-30_12-16-38.jpg
  • @prekvapko #3618 12:18 PM, 30 Jul 2023
    welp problem is that Indicator is wrong
  • @prekvapko #3619 12:18 PM, 30 Jul 2023
    for every but one message
  • @prekvapko #3620 12:18 PM, 30 Jul 2023
    and the first message has wrong checksum
  • @prekvapko #3621 12:19 PM, 30 Jul 2023
    maybe I need to make the maximum size over COM smaller?
  • @prekvapko #3622 12:19 PM, 30 Jul 2023
    perhaps something is cut off?
  • @HughEverett #3623 12:19 PM, 30 Jul 2023
    what is received there in the 'BufferToReceive' and the 'LengthReceived'?
  • @HughEverett ↶ Reply to #3621 #3624 12:20 PM, 30 Jul 2023
    No, it won't send the entire buffer, just the length that is filled is sent.
  • @prekvapko #3625 12:20 PM, 30 Jul 2023
    welp looking at buffer
  • @prekvapko #3626 12:21 PM, 30 Jul 2023
    buffer+0x8 has following string: GDBREPY
  • @HughEverett #3627 12:21 PM, 30 Jul 2023
    Wait
  • @HughEverett #3628 12:21 PM, 30 Jul 2023
    where is H?
  • @prekvapko #3629 12:21 PM, 30 Jul 2023
    a bit later i see \\hyperdbg\\
  • @prekvapko #3630 12:21 PM, 30 Jul 2023
    missing
  • @prekvapko #3631 12:21 PM, 30 Jul 2023
    oh
  • @prekvapko #3632 12:21 PM, 30 Jul 2023
    H is after the Y
  • @prekvapko #3633 12:21 PM, 30 Jul 2023
    GDBREPYH
  • @prekvapko #3634 12:22 PM, 30 Jul 2023
    my bad
  • @HughEverett #3635 12:22 PM, 30 Jul 2023

    photo_2023-07-30_12-22-36.jpg
  • @HughEverett ↶ Reply to #3629 #3636 12:22 PM, 30 Jul 2023
    put a breakpoint here.
  • @HughEverett ↶ Reply to #3635 #3637 12:22 PM, 30 Jul 2023
    .
  • @prekvapko #3638 12:23 PM, 30 Jul 2023
    next one sends over symbols
  • @prekvapko #3639 12:23 PM, 30 Jul 2023
    SYSTEM32\\ntdll.dll
  • @HughEverett #3640 12:23 PM, 30 Jul 2023
    What is the value of the 'TheActualPacket->Indicator' and how it's compared to INDICATOR_OF_HYPERDBG_PACKET?
  • @prekvapko #3641 12:23 PM, 30 Jul 2023
    wait is it maybe because
  • 1
  • 2
  • 3
  • 4
  • 5
  • 01 Jul 2023 (23)
  • 02 Jul 2023 (9)
  • 03 Jul 2023 (238)
  • 04 Jul 2023 (6)
  • 05 Jul 2023 (110)
  • 06 Jul 2023 (295)
  • 07 Jul 2023 (141)
  • 08 Jul 2023 (6)
  • 09 Jul 2023 (1)
  • 10 Jul 2023 (225)
  • 11 Jul 2023 (164)
  • 12 Jul 2023 (48)
  • 13 Jul 2023 (114)
  • 14 Jul 2023 (14)
  • 15 Jul 2023 (31)
  • 16 Jul 2023 (34)
  • 17 Jul 2023 (6)
  • 18 Jul 2023 (17)
  • 19 Jul 2023 (22)
  • 20 Jul 2023 (10)
  • 21 Jul 2023 (2)
  • 22 Jul 2023 (14)
  • 23 Jul 2023 (121)
  • 24 Jul 2023 (43)
  • 25 Jul 2023 (5)
  • 26 Jul 2023 (29)
  • 27 Jul 2023 (19)
  • 28 Jul 2023 (1)
  • 29 Jul 2023 (7)
  • 30 Jul 2023 (396)
  • 31 Jul 2023 (64)