more docker work

This commit is contained in:
Christian Mehlmauer
2017-04-12 20:13:49 +02:00
parent 0b9b79f55f
commit 8e4643874d
8 changed files with 44 additions and 10 deletions

View File

@@ -20,7 +20,7 @@ class Browser
elsif auth =~ /\ABasic [a-zA-Z0-9=]+\z/
@basic_auth = auth
else
raise 'Invalid basic authentication format, "login:password" or "Basic base_64_encoded" expected'
raise "Invalid basic authentication format, \"login:password\" or \"Basic base_64_encoded\" expected. Your input: #{auth}"
end
end

View File

@@ -152,11 +152,6 @@ class WpscanOptions
end
end
def basic_auth=(basic_auth)
raise 'Invalid basic authentication format, login:password expected' if basic_auth.index(':').nil?
@basic_auth = "Basic #{Base64.encode64(basic_auth).chomp}"
end
def debug_output=(debug_output)
Typhoeus::Config.verbose = debug_output
end