---
# System prepended metadata

title: 'Bamboofox/train/angrman [50]'
tags: [CTF, angr, Bamboofox, writeup]

---

# Bamboofox/train/angrman [50]
###### tags: `CTF`,`angr`,`Bamboofox`,`writeup`
angr最大的困難點就是不斷修改的指令庫，導致許多網路上參考的code大多都已失效，目前尚在研究中，此題算是毫無難度的實做練習。
```
import angr

project = angr.Project("./angrman", auto_load_libs=False)

@project.hook(0x400d9e)
def print_flag(state):
    print("FLAG SHOULD BE:", state.posix.dumps(1))
    project.terminate_execution()

project.execute()
```