Skip to content

Commit

Permalink
Adding AV blocklist
Browse files Browse the repository at this point in the history
  • Loading branch information
cccs-kevin committed May 13, 2021
1 parent 992a4cc commit 24f4e0a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions metadefender.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
"adware": 100
}

# AV Blocklist (ignore results)
AV_BLOCKLIST = ["Antiy-AVL", "APEX", "Jiangmin"]


class AvHitSection(ResultSection):
def __init__(self, av_name: str, virus_name: str, engine: Dict[str, str], heur_id: int) -> None:
Expand Down Expand Up @@ -377,6 +380,8 @@ def parse_results(self, response: Dict[str, Any]) -> Result:
scans = scan_results.get('scan_details', scan_results)
av_scan_times = []
for majorkey, subdict in sorted(scans.items()):
if majorkey in AV_BLOCKLIST:
continue
heur_id = None
if subdict['scan_result_i'] == 1: # File is infected
virus_name = subdict['threat_found']
Expand Down

0 comments on commit 24f4e0a

Please sign in to comment.