mirror of
https://github.com/Pennyw0rth/NetExec
synced 2026-06-06 16:34:30 +00:00
Bugfix: file extension filter of spiderplus was misleading
This commit is contained in:
@@ -286,6 +286,8 @@ class SMBSpiderPlus:
|
||||
# Check file extension filter.
|
||||
_, file_extension = splitext(file_path)
|
||||
if file_extension:
|
||||
if file_extension.startswith(".") and len(file_extension) > 1:
|
||||
file_extension = file_extension[1:]
|
||||
self.stats["file_exts"].add(file_extension.lower())
|
||||
if file_extension.lower() in self.exclude_exts:
|
||||
self.logger.info(f'The file "{file_path}" has an excluded extension.')
|
||||
|
||||
Reference in New Issue
Block a user