Skip to content

Commit

Permalink
more listing detection
Browse files Browse the repository at this point in the history
  • Loading branch information
kazet committed Nov 3, 2023
1 parent 592eb69 commit 91bc9f2
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion artemis/reporting/modules/bruter/classifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,15 @@ def is_exposed_file_with_listing(found_url: FoundURL) -> bool:

path = urllib.parse.urlparse(found_url.url).path
if (
".listing" in path and "drwx" in found_url.content_prefix and "<html" not in found_url.content_prefix
".listing" in path
and (
"drwx" in found_url.content_prefix
or "-rwx" in found_url.content_prefix
or "-rw-" in found_url.content_prefix
or "-r--" in found_url.content_prefix
or "-r-x" in found_url.content_prefix
)
and "<html" not in found_url.content_prefix
): # other type of listing
return True

Expand Down

0 comments on commit 91bc9f2

Please sign in to comment.