r/ExploitDev • • Mar 16 '24
How to find the input to reach to function3 --> strcpy
Hi Everyone i am looking for a solution where I can know what will be the input which will trigger the strcpy inside the function3 in the given binary https://github.com/stephenbradshaw/vulnserver
I don't wanna do fuzzing at the moment I am trying symbolic execution to reach to the target function address but for some reason symbolic execution using angr results into the path explosion ?
Any one who can guide me on this ? Thanks
8
Upvotes
2
u/lacksfor Mar 16 '24
Check out loop_seer related stuff with angr
2
u/SomethingIsDone Mar 17 '24
You can follow the code statically and figure this out.
For example:
There's three instances where `Function3()` is called inside `ConnectionHandler()`. Let's just look at the first one.
So, to reach `Function3()` here, you would can just pass in an input `"TRUN ....."`, which would hit `Function3()` five times.
You work backwards from the other calls to `Function3()` in the same way.