Skip to content
This repository has been archived by the owner on Apr 28, 2023. It is now read-only.

HackCon 2016 - angry-reverser does not work #95

Closed
leithon opened this issue Nov 11, 2016 · 5 comments
Closed

HackCon 2016 - angry-reverser does not work #95

leithon opened this issue Nov 11, 2016 · 5 comments

Comments

@leithon
Copy link

leithon commented Nov 11, 2016

When I run the yolomolo example, an error occurred as below.

/home/leizhao/.virtualenvs/angr/local/lib/python2.7/site-packages/pyvex/block.py:75: UserWarning: implicit cast from 'char *' to a different pointer type: will be forbidden in the future (check that the types are as you expect; use an explicit ffi.cast() if they are correct)
1)
Launching exploration
ERROR | 2016-11-10 18:49:27,830 | angr.simos | Syscall 101 is not found for arch AMD64
ERROR | 2016-11-10 18:49:27,832 | angr.simos | Syscall 101 is not found for arch AMD64
Traceback (most recent call last):
File "yolomolo-solve.py", line 42, in
assert main() == "HACKCON{VVhYS04ngrY}"
File "yolomolo-solve.py", line 35, in main
final = ex.found[0].state
IndexError: list index out of range

BTW, I found a similar issue (#91). The difference is that the error message of my example didn't include the segment fault.

@cq674350529
Copy link

Did you solve it? I met the same problem.

@rtzbyte
Copy link

rtzbyte commented Feb 22, 2017

i met the same problem,
the amd64 syscall table in simos.py, There is no Syscall to No. 101(ptrace), have anyone solve it? and How do I hook a system calls such as ptrace in angr.

@zardus
Copy link
Member

zardus commented Feb 22, 2017

My guess is that this example was not verified when we checked it in, and the author had implemented their own ptrace stub.

There is actually ptrace support being worked on right now (angr/simuvex#78). You can try to pull that into simuvex, and add the right entry to the table in simos.

An alternative would be to add BYPASS_UNSUPPORTED_SYSCALL to the state options -- it might allow it to get over that hurdle (at the cost of unnecessary symbolic data in the state).

@rtzbyte
Copy link

rtzbyte commented Feb 23, 2017

thank you very much @zardus

@saullocarvalho
Copy link
Contributor

This example is working!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants