Skip to content

Commit

Permalink
review
Browse files Browse the repository at this point in the history
  • Loading branch information
kazet committed Nov 7, 2023
1 parent b99ee16 commit ee1861b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions artemis/reporting/modules/bruter/classifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,7 @@ def is_sql_dump(found_url: FoundURL) -> bool:

def _starts_with_sql_dump_marker(line: str) -> bool:
line = line.strip().lower()
for marker in sql_dump_markers:
if line.startswith(marker):
return True
return False
return any(line.startswith(marker) for marker in sql_dump_markers)

path = urllib.parse.urlparse(found_url.url).path
if ".sql" not in path.lower() and "/sql" not in path.lower() and "/db" not in path.lower():
Expand Down

0 comments on commit ee1861b

Please sign in to comment.