Skip to content

Commit

Permalink
Merge pull request #17 from Martyx00/development
Browse files Browse the repository at this point in the history
v3.4
  • Loading branch information
Martyx00 authored Nov 13, 2020
2 parents 3ac9f2e + a87a86e commit 28dbdc9
Show file tree
Hide file tree
Showing 5 changed files with 283 additions and 41 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# VulnFanatic (3.3)
# VulnFanatic (3.4)

Author: **Martin Petran**

Expand Down
2 changes: 1 addition & 1 deletion plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"installers": [],
"other": []
},
"version": "3.3",
"version": "3.4",
"author": "Martin Petran",
"minimumbinaryninjaversion": 2263
}
Expand Down
6 changes: 3 additions & 3 deletions scanner/free_scanner3.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,10 @@ def is_global_var(self,var,function):
defs = function.get_var_definitions(v)
for d in defs:
try:
consts = self.extract_hlil_operation(d.instr,[HighLevelILOperation.HLIL_CONST_PTR])
consts = self.extract_hlil_operation(d.instr,[HighLevelILOperation.HLIL_CONST_PTR,HighLevelILOperation.HLIL_CONST])
for c in consts:
if c.parent.operation == HighLevelILOperation.HLIL_DEREF:
# Likely a global variable deref
if "bss" in str(self.current_view.get_sections_at(c.constant)):
# Likely a global variable
return True
vs = self.extract_hlil_operation(d.instr,[HighLevelILOperation.HLIL_VAR])
for a in vs:
Expand Down
Loading

0 comments on commit 28dbdc9

Please sign in to comment.