From 509b4e979dcdc305238603e92516bf2742cf9c7b Mon Sep 17 00:00:00 2001 From: h00die Date: Mon, 14 Jan 2019 22:28:46 -0500 Subject: [PATCH] max_length -1 --- lib/metasploit/framework/jtr/wordlist.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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