added estimation for stdin

This commit is contained in:
jamesalbert
2017-04-11 02:55:34 -07:00
parent 9150e0ca52
commit c7488e28f7

View File

@@ -30,8 +30,8 @@ class WpUser < WpItem
if wordlist == '-'
words = ARGF
passwords_size = nil
options[:starting_at] = 1
passwords_size = 10
options[:starting_at] = 0
else
words = File.open(wordlist)
passwords_size = count_file_lines(wordlist)+1
@@ -60,6 +60,8 @@ class WpUser < WpItem
found = true
self.password = password
return
elsif progress_bar.progress.fdiv(progress_bar.total) >= 0.5
progress_bar.total *= 2
end
end