Skip to content

Commit

Permalink
Improved output and hints for r2angr
Browse files Browse the repository at this point in the history
  • Loading branch information
radare committed Aug 29, 2024
1 parent ebe7723 commit dda5cb2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion r2angr/r2angr
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,9 @@ if [ -z "$R2_FILE" ]; then
echo "Run this script from radare2. with !r2angr"
exit 1
fi
angr decompile --functions=${R2_XOFFSET} ${R2_FILE} || echo "r2pm -ci angr"
if [ "$R2_OFFSET" -lt 10000 ]; then
echo "If the function is not found use r2 -B 0x400000"
fi
angr decompile --functions=${R2_XOFFSET} \
${R2_FILE} 2> /tmp/.r2angr.txt || \
echo "r2pm -ci angr, Check /tmp/.r2angr.txt for details"

0 comments on commit dda5cb2

Please sign in to comment.