Skip to content

Commit

Permalink
HTML files aren't archives (#601)
Browse files Browse the repository at this point in the history
  • Loading branch information
kazet authored Oct 31, 2023
1 parent 28f0720 commit 0afe571
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions artemis/reporting/modules/bruter/classifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,9 @@ def is_exposed_file_with_listing(found_url: FoundURL) -> bool:


def is_exposed_archive(found_url: FoundURL) -> bool:
if _is_html(found_url.content_prefix):
return False

path = urllib.parse.urlparse(found_url.url).path
if ".zip" in path and found_url.content_prefix.startswith("PK"):
return True
Expand Down

0 comments on commit 0afe571

Please sign in to comment.