diff --git a/cme/crackmapexec.py b/cme/crackmapexec.py index ce2dc319..3291f6f1 100755 --- a/cme/crackmapexec.py +++ b/cme/crackmapexec.py @@ -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))