angr学习笔记(3)
生活随笔
收集整理的這篇文章主要介紹了
angr学习笔记(3)
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
angr系列
00_angr_find
01_angr_avoid
02_angr_find_condition
03_angr_symbolic_registers
04_angr_symbolic_stack
05_angr_symbolic_memory
06_angr_symbolic_dynamic_memory
07_angr_symbolic_file
08_angr_constraints
09_angr_hooks
10_angr_simprocedures
13_angr_static_binary
文章目錄
- angr系列
- 00_angr_find
- 01_angr_avoid
- 02_angr_find_condition
- 03_angr_symbolic_registers
- 04_angr_symbolic_stack
- 05_angr_symbolic_memory
- 06_angr_symbolic_dynamic_memory
- 07_angr_symbolic_file
- 08_angr_constraints
- 09_angr_hooks
- 10_angr_simprocedures
- 13_angr_static_binary
- 拖進ida
- 代碼1
- 代碼2
- 驗證
拖進ida
代碼1
import angr p=angr.Project("00_angr_find") init_state=p.factory.entry_state() sm=p.factory.simulation_manager(init_state) sm.explore(find=0x08048678,avoid=0x08048666) found_state=sm.found[0] print(found_state.posix.dumps(0)) print(found_state.posix.dumps(1)) JXWVXRKX代碼2
import angr p=angr.Project("00_angr_find") init_state=p.factory.entry_state() sm=p.factory.simulation_manager(init_state) def is_good(state):return b'Good Job' in state.posix.dumps(1) def is_bad(state):return b'Try again' in state.posix.dumps(1)sm.explore(find=is_good,avoid=is_bad)found_state=sm.found[0] print(found_state.posix.dumps(0)) print(found_state.posix.dumps(1)) JXWVXRKX驗證
總結
以上是生活随笔為你收集整理的angr学习笔记(3)的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: angr学习笔记(2)
- 下一篇: angr学习笔记(4) (寄存器符号化