--wordlist - reads stdin
This commit is contained in:
@@ -28,9 +28,15 @@ class WpUser < WpItem
|
|||||||
queue_count = 0
|
queue_count = 0
|
||||||
found = false
|
found = false
|
||||||
|
|
||||||
create_progress_bar(count_file_lines(wordlist)+1, options)
|
if wordlist == '-'
|
||||||
|
wordlist = $stdin.readlines
|
||||||
|
else
|
||||||
|
wordlist = File.readlines(wordlist)
|
||||||
|
end
|
||||||
|
|
||||||
File.open(wordlist).each do |password|
|
create_progress_bar(wordlist.length+1, options)
|
||||||
|
|
||||||
|
wordlist.each do |password|
|
||||||
password.chomp!
|
password.chomp!
|
||||||
|
|
||||||
# A successfull login will redirect us to the redirect_to parameter
|
# A successfull login will redirect us to the redirect_to parameter
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ class WpscanOptions
|
|||||||
end
|
end
|
||||||
|
|
||||||
def wordlist=(wordlist)
|
def wordlist=(wordlist)
|
||||||
if File.exists?(wordlist)
|
if File.exists?(wordlist) || wordlist == '-'
|
||||||
@wordlist = wordlist
|
@wordlist = wordlist
|
||||||
else
|
else
|
||||||
raise "The file #{wordlist} does not exist"
|
raise "The file #{wordlist} does not exist"
|
||||||
|
|||||||
Reference in New Issue
Block a user