Skip to content

Commit

Permalink
Update argument description for force mode
Browse files Browse the repository at this point in the history
Signed-off-by: Sachin Kamath <[email protected]>
  • Loading branch information
pwnfoo committed Mar 24, 2020
1 parent 46f0a98 commit 08adfd7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ntlmrecon/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,15 @@ def main():
parser.add_argument('--force-all', help="Force enumerate all endpoints even if a valid endpoint is found for a URL "
"(Default : False)", default=False, action="store_true")
parser.add_argument('--shuffle', help="Break order of the input files", default=False, action="store_true")
parser.add_argument('-f', '--force', help="Force replace files", action="store_true", default=False)
parser.add_argument('-f', '--force', help="Force replace output file if it already exists", action="store_true", default=False)
args = parser.parse_args()

if os.path.isdir(args.outfile):
print(colored("[!] Invalid filename. Please enter a valid filename!", "red"))
sys.exit()
elif os.path.exists(args.outfile) and not args.force:
print(colored("[!] Output file {} already exists. "
"Please choose a different file name".format(args.outfile), "red"))
"Choose a different file name or use -f to overwrite file!".format(args.outfile), "red"))
sys.exit()

pool = ThreadPool(int(args.threads))
Expand Down

0 comments on commit 08adfd7

Please sign in to comment.