当前位置:网站首页>WinDbg preview debug analysis createtoolhelp32snapshot
WinDbg preview debug analysis createtoolhelp32snapshot
2022-06-12 13:56:00 【HyperCall】
When the process is hidden, it is not correct CreateToolhelp32Snapshot Conduct Hook, It is Hook 了 ZwQuerySystemInformation, Wrote a call CreateToolhelp32Snapshot Show the applet of the process , Look at the , By the way Windbg Preview How to use it? .
1.
App store search Windbg Preview download , The interface is much better than the original version , And there are more functional areas , All kinds of convenience , This is recommended !, When debugging the kernel, it seems that you need to open it with administrator privileges . 
TIPS
If you don't download pdb Files need to be downloaded in advance , And you need to set it in the environment variable pdb Catalog , Specific Baidu common version Windbg Environment variable setting tutorial
2.
file —— open EXE file (taskmgr.exe The source code is attached )———- Automatic disconnection ———— But the place where it is broken is not procedural EP It's about , It is ntdll Inside , So we need to manually go to EP Code office 
Input : !dh taskmgr see taskmgr Of PE structure
File Type: EXECUTABLE IMAGE
FILE HEADER VALUES
8664 machine (X64)
6 number of sections
5B0982F3 time date stamp Sat May 26 23:53:23 2018
0 file pointer to symbol table
0 number of symbols
F0 size of optional header
22 characteristics
Executable
App can handle >2gb addresses
OPTIONAL HEADER VALUES
20B magic #
14.14 linker version
1600 size of code
2400 size of initialized data
0 size of uninitialized data
184C address of entry point // Entry point offset
1000 base of code
----- new -----
.......................... stay OPTIONAL HEADER VALUES Medium address of entry point Property identifies the entry point offset (RVA)
therefore EP Code address =taskmgr Base address +184C
Input g taskmgr+184C
Successful entry EP Code office 
3.
Because there is PDB File so input directly bp taskmgr!main Again g And here comes main At function
find
00007ff64254108c ff156e1f0000 call qword ptr [taskmgr!_imp_CreateToolhelp32Snapshot (00007ff642543000)]
Follow me , Stepping function KERNEL32!CreateToolhelp32Snapshot: 
Input again BP ntdll!ZwQuerySystemInformation to ZwQuerySystemInformation Break down to prevent running away
After careful tracking, it was found that KERNEL32!CreateToolhelp32Snapshot+0x103 There is a sentence here
call KERNEL32!ThpCreateRawSnap To follow up
Found in KERNEL32!ThpCreateRawSnap+0xcb Out call
KERNEL32!_imp_NtQuerySystemInformation 
With the , find ZwQuerySystemInformation 
边栏推荐
- Dismantle and modify the advertising machine - Amateur decompression
- Qt5 plug-in production
- go-zero 微服务实战系列(二、服务拆分)
- Hash tables, sets, maps, trees, heaps, and graphs
- Alicloud development board vscode development environment setup
- Explanation of static and extern keywords
- Codeforces 1637 C. Andrew and stones - simple thinking
- Fourteen week assignment
- Interview question 17.14 Minimum number of K (almost double hundreds)
- 2021-05-28
猜你喜欢
![[WUSTCTF2020]颜值成绩查询-1](/img/90/e4c2882357e0a1c6a80f778887e3f5.png)
[WUSTCTF2020]颜值成绩查询-1

Formal analysis of Woo Lam protocol with scyther tool

chapter19 Allocation

Dismantle and modify the advertising machine - Amateur decompression

Transmission and response of events and use cases

基于Profibus-DP协议的PLC智能从站设计

正点原子STM32F429核心板的插座型号

Scyther工具形式化分析Woo-Lam协议

When the byte jumps, the Chinese 996 is output in the United States

对于跨境电商,更侧重收入的出价策略 —Google SEM
随机推荐
SystemC uses SC_ report_ Handler processing log printing
Implementing singleton mode of database under QT multithreading
Interview question 17.14 Minimum number of K (almost double hundreds)
阿里云开发板vscode开发环境搭建
280 weeks /2171 Take out the least number of magic beans
List of common ACM knowledge points (to be continued)
Debug code to quickly locate the error location
Fourteen week assignment
数据类型转换和条件控制语句
肝了一个月的原创小袁个人博客项目开源啦(博客基本功能都有,还包含后台管理)
AVFoundation
Dial up and Ethernet
Factory mode of "object creation" mode
[semidrive source code analysis] [x9 chip startup process] 26 - LK of R5 safetyos_ INIT_ LEVEL_ Target phase code flow analysis (TP drvier, audio server initialization)
Paw advanced user guide
【视频课】android studio物联网APP设计制作全套教程--国庆期间全掌握
lua 常用内置函数
Leetcode questions brushing February /1020 Number of enclaves
Codeforces 1638 B. odd swap sort - tree array, no, simple thinking
M1 pod install pod lint failure solution