Skip to content

Commit

Permalink
allowing gzip (#608)
Browse files Browse the repository at this point in the history
  • Loading branch information
kazet authored Nov 2, 2023
1 parent 0aafeba commit d129b55
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion artemis/reporting/modules/bruter/classifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,8 @@ def is_exposed_archive(found_url: FoundURL) -> bool:
if ".zip" in path and found_url.content_prefix.startswith("PK"):
return True

if ".tar" in path and "ustar" in found_url.content_prefix:
# Let's allow gzip signature as well as we observe gzip files with tar extension
if ".tar" in path and ("ustar" in found_url.content_prefix or found_url.content_prefix.startswith("\x1f")):
return True

if ".gz" in path and found_url.content_prefix.startswith("\x1f"):
Expand Down

0 comments on commit d129b55

Please sign in to comment.