Skip to content

Commit

Permalink
Don't add null masscan results in database
Browse files Browse the repository at this point in the history
  • Loading branch information
svkirillov committed Jun 14, 2020
1 parent a93b25b commit 9bac373
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions grinder/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1030,6 +1030,10 @@ def check_ip(address: str, network: str) -> bool:
)

results_count = len(results_by_query) if results_by_query else None

if results_count is None:
return

self.db.add_masscan_scan_data(
query=query, results_count=results_count, results=results_by_query
)
Expand Down

0 comments on commit 9bac373

Please sign in to comment.