@@ -1117,7 +1117,7 @@ def _bruteProcessVariantA(attack_info, hash_regex, suffix, retVal, proc_id, proc
11171117 word = word + suffix
11181118
11191119 try :
1120- current = __functions__ [hash_regex ](password = word , uppercase = False )
1120+ current = __functions__ [hash_regex ](password = getBytes ( word , unsafe = False ) , uppercase = False )
11211121
11221122 if current in hashes :
11231123 for item in attack_info [:]:
@@ -1195,7 +1195,7 @@ def _bruteProcessVariantB(user, hash_, kwargs, hash_regex, suffix, retVal, found
11951195 word = word + suffix
11961196
11971197 try :
1198- current = __functions__ [hash_regex ](password = word , uppercase = False , ** kwargs )
1198+ current = __functions__ [hash_regex ](password = getBytes ( word , unsafe = False ) , uppercase = False , ** kwargs )
11991199
12001200 if hash_ == current :
12011201 if hash_regex == HASH .ORACLE_OLD : # only for cosmetic purposes
@@ -1285,7 +1285,7 @@ def _bruteProcessVariantSalted(attack_info, hash_regex, suffix, retVal, proc_id,
12851285 ((user , hash_ ), kwargs ) = item
12861286
12871287 try :
1288- current = __functions__ [hash_regex ](password = word , uppercase = False , ** kwargs )
1288+ current = __functions__ [hash_regex ](password = getBytes ( word , unsafe = False ) , uppercase = False , ** kwargs )
12891289
12901290 if hash_ == current :
12911291 retVal .put ((user , hash_ , word ))
0 commit comments