Skip to content
Snippets Groups Projects
Commit f1f46d15 authored by Anh Nguyen-Tuong's avatar Anh Nguyen-Tuong
Browse files

Convert main to entry point address

rida does not recognize main like ida does
parent 52e6bb93
No related branches found
No related tags found
No related merge requests found
......@@ -78,6 +78,8 @@ objdump -d $input_binary > $tmp_objdump
grep "<main>:" $tmp_objdump >/dev/null 2>&1
if [ $? -eq 0 ]; then
echo Zafl: Detected main program in $input_binary
ep=$(objdump -d $input_binary | grep '<main>:' | cut -d' ' -f1)
options=" $options -o zafl:'-e 0x$ep'"
else
grep -B1 "libc_start_main@" $tmp_objdump >/dev/null 2>&1
if [ $? -eq 0 ]; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment