@@ -368,26 +368,33 @@ def dictionaryAttack(attack_dict):
368368 if not kb .wordlist :
369369 while not kb .wordlist :
370370 message = "what dictionary do you want to use?\n "
371- message += "[1] Default (Press Enter)\n "
372- message += "[2] Custom \n "
373- message += "[3] File with list of dictionary files"
371+ message += "[1] default dictionary file (press Enter)\n "
372+ message += "[2] custom dictionary file \n "
373+ message += "[3] file with list of dictionary files"
374374 choice = readInput (message , default = "1" )
375375
376376 try :
377377 if choice == "2" :
378378 message = "what's the custom dictionary's location?\n "
379379 dictPaths = [readInput (message )]
380+
381+ logger .info ("using custom dictionary" )
380382 elif choice == "3" :
381383 message = "what's the list file location?\n "
382384 listPath = readInput (message )
383385 checkFile (listPath )
384386 dictPaths = getFileItems (listPath )
387+
388+ logger .info ("using custom list of dictionaries" )
385389 else :
386- if hash_regex == HASH .ORACLE_OLD : #it's the slowest of all methods hence smaller default dict
390+ # It is the slowest of all methods hence smaller default dict
391+ if hash_regex == HASH .ORACLE_OLD :
387392 dictPaths = [paths .ORACLE_DEFAULT_PASSWD ]
388393 else :
389394 dictPaths = [paths .WORDLIST ]
390395
396+ logger .info ("using default dictionary" )
397+
391398 for dictPath in dictPaths :
392399 checkFile (dictPath )
393400
@@ -452,16 +459,16 @@ def dictionaryAttack(attack_dict):
452459 infoMsg = "[%s] [INFO] found: '%s'" % (time .strftime ("%X" ), word )
453460
454461 if user and not user .startswith (DUMMY_USER_PREFIX ):
455- infoMsg += " for user: '%s'\n " % user
462+ infoMsg += " for user '%s'\n " % user
456463 else :
457- infoMsg += " for hash: '%s'\n " % hash_
464+ infoMsg += " for hash '%s'\n " % hash_
458465
459466 dataToStdout (infoMsg , True )
460467
461468 attack_info .remove (item )
462469
463470 elif count % HASH_MOD_ITEM_DISPLAY == 0 or hash_regex in (HASH .ORACLE_OLD ) or hash_regex == HASH .CRYPT_GENERIC and IS_WIN :
464- status = 'current status: %d%s (%s...)' % (kb .wordlist .percentage (), '%' , word .ljust (5 )[:5 ])
471+ status = 'current status: %d%s (%s...)' % (kb .wordlist .percentage (), '%' , word .ljust (5 )[:8 ])
465472 dataToStdout ("\r [%s] [INFO] %s" % (time .strftime ("%X" ), status ))
466473
467474 except KeyboardInterrupt :
@@ -513,9 +520,9 @@ def dictionaryAttack(attack_dict):
513520 infoMsg = "[%s] [INFO] found: '%s'" % (time .strftime ("%X" ), word )
514521
515522 if user and not user .startswith (DUMMY_USER_PREFIX ):
516- infoMsg += " for user: '%s'\n " % user
523+ infoMsg += " for user '%s'\n " % user
517524 else :
518- infoMsg += " for hash: '%s'\n " % hash_
525+ infoMsg += " for hash '%s'\n " % hash_
519526
520527 dataToStdout (infoMsg , True )
521528
0 commit comments