Tags: angr re 

Rating:

# FooBar CTF 2022 - Matrix Master

## solution

this is slow and hard to solve it manually so we wrote a script using python and angr to solve it

```python
import angr
import claripy
import sys

proj = angr.Project("./matrix")
state = proj.factory.entry_state()

simgr = proj.factory.simgr()
simgr.run()

if simgr.deadended:
for s in simgr.deadended:
tmp = s.posix.dumps(0)
if b"glug" in tmp.lower():
print(tmp)

```

run it, we'll get the flag

```
GLUG{EscaP3_7He_m@TRIx}
```

Original writeup (https://github.com/ghostinthefingers/CTF-Writeups/blob/main/foobarCTF/rev/matrix/README.md).