Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f1f6364

Browse files
committed
Changing default readInput value on dictionary-based attack depending on conf.multipleTargets
1 parent a62a874 commit f1f6364

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/utils/hash.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -362,8 +362,8 @@ def attackDumpedTable():
362362
if attack_dict:
363363
message = "recognized possible password hashes in column%s " % ("s" if len(col_passwords) > 1 else "")
364364
message += "'%s'. Do you want to " % ", ".join(col for col in col_passwords)
365-
message += "crack them via a dictionary-based attack? [y/N/q]"
366-
test = readInput(message, default="N")
365+
message += "crack them via a dictionary-based attack? %s" % ("[y/N/q]" if conf.multipleTargets else "[Y/n/q]")
366+
test = readInput(message, default="N" if conf.multipleTargets else "Y")
367367

368368
if test[0] in ("n", "N"):
369369
return

0 commit comments

Comments
 (0)