mirror of
https://github.com/nganhkhoa/CTF-All-In-One.git
synced 2024-12-25 11:41:16 +07:00
16 lines
357 B
Markdown
16 lines
357 B
Markdown
# 2.5 IDA Pro
|
|
|
|
- [内存 dump 脚本](#dump)
|
|
|
|
|
|
#### <span id="dump">内存 dump 脚本</span>
|
|
调试程序时偶尔会需要 dump 内存,但 IDA Pro 没有直接提供此功能,可以通过脚本来实现。
|
|
```python
|
|
import idaapi
|
|
|
|
data = idaapi.dbg_read_memory(start_address, data_length)
|
|
fp = open('path/to/dump', 'wb')
|
|
fp.write(data)
|
|
fp.close()
|
|
```
|