Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Martyx00 committed Sep 7, 2024
1 parent 47755c6 commit 944cd6d
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions scanner/scanner31.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ def run(self):
total_xrefs += xrefs_count
xref_counter = 0
for xref in function_refs:
if function["function_name"] == "siprintf":
print("XREF TO SIPRINTF")
if self.cancelled:
return
self.evaluate_results(self.trace(xref,function["trace_params"]),function["function_name"],xref)
Expand Down Expand Up @@ -77,7 +75,6 @@ def evaluate_results(self,trace,function_name,xref):
matches = False
break
elif not self.is_in_array(trace[param_key][check_key],current_rule[param_key][check_key]):
print("NOT")
matches = False
break
elif type(current_rule[param_key][check_key]) is dict:
Expand All @@ -103,7 +100,6 @@ def evaluate_results(self,trace,function_name,xref):
#tag = xref.function.source_function.create_tag(self.current_view.tag_types["[VulnFanatic] "+conf], f'{test["name"]}: {test["details"]}\n', True)
#xref.function.source_function.add_user_address_tag(xref.address, tag)
xref.function.source_function.add_tag(conf_labels[conf], f'{test["name"]}: {test["details"]}\n', xref.address)
print("MARKING")
break
if matches:
break
Expand Down Expand Up @@ -146,7 +142,6 @@ def is_in_array(self,a,b):

tmp = str(a)
for item_b in b:
print(f"B: {item_b} in A: {tmp}: {item_b in tmp}")
if item_b in tmp:
return True
return False
Expand Down

0 comments on commit 944cd6d

Please sign in to comment.