Skip to content

Commit

Permalink
Updated excluded directories to prevent appending script root
Browse files Browse the repository at this point in the history
  • Loading branch information
zbalkan committed Sep 17, 2023
1 parent 719773f commit 6703f96
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def __update(self,
self.mask_pans = mask_pans

if excluded_directories_string and excluded_directories_string != 'None':
self.excluded_directories = [os.path.abspath(exc_dir.lower())
self.excluded_directories = [exc_dir.lower()
for exc_dir in excluded_directories_string.split(',')]

if excluded_pans_string and excluded_pans_string != excluded_pans_string and len(excluded_pans_string) > 0:
Expand Down
2 changes: 1 addition & 1 deletion src/panhunt.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def main() -> None:
arg_parser.add_argument(
'-f', dest='file_path', help='File path for single file scan')
arg_parser.add_argument('-x', dest='exclude_dirs',
help='directories to exclude from the search', default='C:\\Windows,C:\\Program Files,C:\\Program Files (x86),/mnt,/dev,/proc')
help='directories to exclude from the search (use absolute paths)', default='C:\\Windows,C:\\Program Files,C:\\Program Files (x86),/mnt,/dev,/proc')
arg_parser.add_argument(
'-o', dest='report_dir', help='Report file directory for TXT formatted PAN report', default='./')
arg_parser.add_argument(
Expand Down

0 comments on commit 6703f96

Please sign in to comment.