added estimation for stdin
This commit is contained in:
@@ -30,8 +30,8 @@ class WpUser < WpItem
|
|||||||
|
|
||||||
if wordlist == '-'
|
if wordlist == '-'
|
||||||
words = ARGF
|
words = ARGF
|
||||||
passwords_size = nil
|
passwords_size = 10
|
||||||
options[:starting_at] = 1
|
options[:starting_at] = 0
|
||||||
else
|
else
|
||||||
words = File.open(wordlist)
|
words = File.open(wordlist)
|
||||||
passwords_size = count_file_lines(wordlist)+1
|
passwords_size = count_file_lines(wordlist)+1
|
||||||
@@ -60,6 +60,8 @@ class WpUser < WpItem
|
|||||||
found = true
|
found = true
|
||||||
self.password = password
|
self.password = password
|
||||||
return
|
return
|
||||||
|
elsif progress_bar.progress.fdiv(progress_bar.total) >= 0.5
|
||||||
|
progress_bar.total *= 2
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user