Some small refactoring and fix for issue #66
This commit is contained in:
@@ -41,7 +41,7 @@ module BruteForce
|
|||||||
queue_count += 1
|
queue_count += 1
|
||||||
|
|
||||||
# create local vars for on_complete call back, Issue 51.
|
# create local vars for on_complete call back, Issue 51.
|
||||||
username = login.name
|
username = login.name != 'empty' ? login.name : login.nickname # Issue #66
|
||||||
password = password
|
password = password
|
||||||
|
|
||||||
# the request object
|
# the request object
|
||||||
|
|||||||
12
wpscan.rb
12
wpscan.rb
@@ -376,19 +376,17 @@ begin
|
|||||||
puts "The plugin #{protection_plugin.name} has been detected. It might record the IP and timestamp of every failed login. Not a good idea for brute forcing !"
|
puts "The plugin #{protection_plugin.name} has been detected. It might record the IP and timestamp of every failed login. Not a good idea for brute forcing !"
|
||||||
puts "[?] Do you want to start the brute force anyway ? [y/n]"
|
puts "[?] Do you want to start the brute force anyway ? [y/n]"
|
||||||
|
|
||||||
if Readline.readline !~ /^y/i
|
bruteforce = false if Readline.readline !~ /^y/i
|
||||||
bruteforce = false
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
if bruteforce === false
|
if bruteforce
|
||||||
puts
|
|
||||||
puts "Brute forcing aborted"
|
|
||||||
else
|
|
||||||
puts
|
puts
|
||||||
puts green("[+]") + " Starting the password brute forcer"
|
puts green("[+]") + " Starting the password brute forcer"
|
||||||
puts
|
puts
|
||||||
wp_target.brute_force(usernames, wpscan_options.wordlist)
|
wp_target.brute_force(usernames, wpscan_options.wordlist)
|
||||||
|
else
|
||||||
|
puts
|
||||||
|
puts "Brute forcing aborted"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user