diff --git a/lib/metasploit/framework/jtr/wordlist.rb b/lib/metasploit/framework/jtr/wordlist.rb index 5b779b4000..ebbd9ba83d 100644 --- a/lib/metasploit/framework/jtr/wordlist.rb +++ b/lib/metasploit/framework/jtr/wordlist.rb @@ -375,7 +375,7 @@ module Metasploit valid! wordlist_file = Rex::Quickfile.new("jtrtmp") each_word do |word| - wordlist_file.puts max_len == 0 ? word : word[0..max_len] + wordlist_file.puts max_len == 0 ? word : word[0..max_len-1] end wordlist_file end