Merge pull request #78 from Data-Praetor/Argument-Fix

Explicit check as file for argument
main
mpgn 2023-08-10 10:44:41 +02:00 committed by GitHub
commit 90f5cb908c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ def main():
if hasattr(args, "target") and args.target:
for target in args.target:
if exists(target):
if exists(target) and os.path.isfile(target):
target_file_type = identify_target_file(target)
if target_file_type == "nmap":
targets.extend(parse_nmap_xml(target, args.protocol))