Closed aynakeya closed 2 weeks ago
Hi @aynakeya, thanks for your feedback. I did't try with the latest angr version. According to your description, it seemed that the binary you tested has PIE enabled. Of course, the angr api may has also changed.
I will update the code to take this into account. Thanks again.
thank you for your feedback. You were right; my binary does have PIE enabled. I didn’t realize it was a PIE-related problem at the time :(
Additionally, I forgot to mention another modification needed to make the program work with PIE. Without this modification, the prologue address will not match.
if prologue_node is None or prologue_node.addr != (start + base_addr):
print("Something must be wrong...")
sys.exit(-1)
I'm currently using angr version 9.2.106 in my environment. I'm encountering an issue where the
target_function
is returningNone
when excuting the following code:I found that this issue can be resolved by replacing the above code with: