DLL Injection with SetWindowsHookEx

Поділитися
Вставка
  • Опубліковано 27 вер 2024

КОМЕНТАРІ • 19

  • @godzab
    @godzab 11 місяців тому +2

    This is gold, thank you for dropping this gem and sharing your knowledge. You break things down such that a noob C programmer like myself can understand what is going on.

  • @ek2719
    @ek2719 Рік тому +2

    Really wonderful content Pavel. Great reference material. Thank you.

  • @BitsBytes-o6c
    @BitsBytes-o6c 10 місяців тому +2

    Hello, Pavel! I appreciate your efforts to share your valuable knowledge and experience! Thank you! I tested this injection method on Windows 11 Pro (version 23H2, build 22631.2506) and assigned tid didn't appear in process explorer. But injection was successful. Also keystrokes are not passed to the console. On Windows 10 everything works fine.

    • @zodiacon
      @zodiacon  10 місяців тому +1

      The source is available at github.com/zodiacon/youtubecode. Feel free to debug :)

    • @trerouploads8169
      @trerouploads8169 4 місяці тому

      I seem to have found the same, the GetMessage loop just ends

  • @ronyg3017
    @ronyg3017 6 місяців тому +1

    I am getting an error where it keeps saying hDll could be '0; this does not adhere to the specification for the function 'GetProcAddress'

    • @zodiacon
      @zodiacon  6 місяців тому

      Are you sure it's an error? It's probably a warning at best.

  • @Alchemytweaks
    @Alchemytweaks Рік тому +1

    Excellent video, Mr. Pavel. I have learned a lot from your videos and books. I would like to ask if you are planning to develop a program for measuring system latency.

    • @zodiacon
      @zodiacon  Рік тому

      What does "system latency" mean to you?

    • @Alchemytweaks
      @Alchemytweaks Рік тому

      @@zodiacon The delay present in my activities, from clicking the mouse to playing a game, probably should have led me to ask you whether Windows Performance Analyzer adequately covers the aspect of measurements in games, within the system, and for individual device drivers. I apologize if I wasn't clear. It seems I should inquire whether the Windows Performance Analyzer comprehensively addresses the measurements required for gaming, system-wide, and for individual device drivers.

    • @zodiacon
      @zodiacon  Рік тому

      It's not WPA per-se, it's the various ETW providers and events. Generally speaking, yes, although it depends on exactly what you are trying to identify.

    • @Alchemytweaks
      @Alchemytweaks Рік тому

      I personally make modifications, and I've reached a point where it's challenging, if not impossible, to discern differences in the latency aspect, speaking specifically about DPC & ISR in drivers, for example, graphics cards. That's why I decided to write this message.
      Could you please create a video on this suite of programs to explain what we should pay attention to and under what conditions we should conduct our measurements?@@zodiacon

  • @jiyuanzhou8318
    @jiyuanzhou8318 Рік тому +1

    Thanks for the sharing the video! Is there anyway to detect if there is program(process) injected things like this? My keyboard Shift+H, Shift+G are intermittently not working.

    • @zodiacon
      @zodiacon  Рік тому +1

      You'll have to dig into a process, looking for suspicious DLLs, checking their exports, or setting breakpoints in certain APIs like CallNextHookEx

  • @rqhzbtw5679
    @rqhzbtw5679 Рік тому +1

    Can u make a video about reversing windows finding communication methods etc ?

    • @zodiacon
      @zodiacon  Рік тому

      I don't like reversing enough to make videos about it...

  • @shaovoon
    @shaovoon Рік тому +1

    Will the anti-virus flag this program as a keylogger?