Skip to content

Commit

Permalink
fixed bug in HashcatMaskFrequencyAgent when dealing with passwords wi…
Browse files Browse the repository at this point in the history
…th slashes
  • Loading branch information
T. Alexander Lystad committed Jan 30, 2012
1 parent f041678 commit a57d5a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion passpal.rb
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ def initialize
end
def analyze(word)
if Regexp.new('^[a-zA-Z0-9\p{Punct} ]+$'.force_encoding('utf-8'), Regexp::FIXEDENCODING).match(word)
word.tr!('A-Za-z0-9'+'!"#$%&\'()*+,\-./:;<=>?@[]^_`{|}~ ', 'U'*26+'L'*26+'D'*10+'S'*33)
word.tr!('A-Za-z0-9'+'!"#$%&\'()*+,\\-./:;<=>?@[]^_`{|}~ ', 'U'*26+'L'*26+'D'*10+'S'*33)
@results[LUDS::encode(word).to_sym] += 1
else
@otherCount += 1
Expand Down

0 comments on commit a57d5a3

Please sign in to comment.