Skip to content

Commit

Permalink
Check sys_sym_tbl address is in current_program before analyze.
Browse files Browse the repository at this point in the history
  • Loading branch information
dark-lbp committed Jan 21, 2020
1 parent 6f5541d commit 30d1e86
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions firmware_tools/ghidra/vxhunter_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,10 @@ def analyze_symbols():
print('{}\r\n'.format("-" * 60))
return

if not is_address_in_current_program(sys_sym_tbl.getAddress()):
print('{}\r\n'.format("-" * 60))
return

sys_sym_addr = toAddr(getInt(sys_sym_tbl.getAddress()))
if sys_sym_addr.getOffset() == 0:
print('{}\r\n'.format("-" * 60))
Expand Down

0 comments on commit 30d1e86

Please sign in to comment.