Том 3 № 12 (2020): Научно-образовательный журнал преподавателей и студентов «StudNet»
УДК 004.453.2
Баев Дмитрий Александрович, студент кафедры кибербезопасности информационных систем, Донской государственный технический университет, г. Ростов-на-Дону
Baev D.A. fantom-sj@yandex.ru
Аннотация
В статье рассматривается инструмент работы с хуками для перехвата вызова функций из WinAPI на ОС Windows, такой как Microsoft Detours. Также рассмотрены принципы, по которым происходит осуществление перехвата, как это происходит на уровне деассемблированного кода и какие методы применяются для установки хуков. По мимо этого рассмотрено как именно устроена библиотека Microsoft Detours, даны базовые определения, используемые в данной библиотеки. Также рассмотрена схема перехвата функции при срабатывании установленного хука, и был произведён разбор самых основных функций, их входных параметров, а также результата их работы.
Annotation
This article discusses a tool for working with hooks to intercept function calls from WinAPI on Windows OS, such as Microsoft Detours. The principles by which interception is carried out, how it happens at the level of disassembled code, and what methods are used to install hooks are also considered. In addition, it is considered how exactly the Microsoft Detours library is arranged, and the basic definitions used in this library are given. In addition, a scheme for intercepting a function when an installed hook is triggered was considered, and the most basic functions, their input parameters, and the result of their work were analyzed.
Ключевые слова: хуки, WinAPI, Windows, Microsoft Detours, функции, процессы.
Keywords: Hooks, WinAPI, Windows, Microsoft Detours, functions, processes.
Литература
- Detours / Microsoft Research URL: https://www.microsoft.com/en-us/research/project/detours/ (дата обращения: 13.10.2020)
- Гален Хант, Дэвид Тардити, Брайан Джанфоркаро. Обзор пакета Microsoft Research Detours // Энциклопедия GitHub [Microsoft 2018] URL: https://github.com/microsoft/detours/wiki (дата обращения: 14.10.2020)
- Гален Хант, Брайан Джанфоркаро. Перехват бинарных функций // Энциклопедия GitHub [Microsoft 2018] URL: https://github.com/microsoft/detours/wiki/OverviewInterception (дата обращения: 14.10.2020)
- Дэвид Тардити, Брайан Джанфоркаро. Использование Detours // Энциклопедия GitHub [Microsoft 2019] URL: https://github.com/microsoft/detours/wiki/Using-Detours (дата обращения: 15.10.2020)
Literature
- Detours / Microsoft Research URL: https://www.microsoft.com/en-us/research/project/detours/ (date of appeal: 13.10.2020)
- Galen Hunt, David Tarditi, Brian Gianforcaro. Microsoft Research Detours Package Overview // Encyclopedia GitHub [Microsoft 2018] URL: https://github.com/microsoft/detours/wiki (date of appeal: 14.10.2020)
- Galen Hunt, Brian Gianforcaro. Interception of Binary Functions // Encyclopedia GitHub [Microsoft 2018] URL: https://github.com/microsoft/detours/wiki/OverviewInterception (date of appeal: 14.10.2020)
- David Tarditi, Brian Gianforcaro. Using Detours // Encyclopedia GitHub [Microsoft 2019] URL: https://github.com/microsoft/detours/wiki/Using-Detours (date of appeal: 15.10.2020)

