mirror of
https://github.com/nmap/nmap.git
synced 2025-12-15 12:19:02 +00:00
Fix http-brute, munged by me in r35584. Closes #317
This commit is contained in:
@@ -80,7 +80,7 @@ Driver = {
|
||||
-- we need to supply the no_cache directive, or else the http library
|
||||
-- incorrectly tells us that the authentication was successful
|
||||
local opts = {
|
||||
auth = { digest = true },
|
||||
auth = { },
|
||||
no_cache = true,
|
||||
bypass_cache = true,
|
||||
header = {
|
||||
@@ -98,8 +98,8 @@ Driver = {
|
||||
|
||||
login = function( self, username, password )
|
||||
local opts_table = self:get_opts()
|
||||
opts_table.username = username
|
||||
opts_table.password = password
|
||||
opts_table.auth.username = username
|
||||
opts_table.auth.password = password
|
||||
|
||||
local response = http.generic_request( self.host, self.port, self.method, self.path, opts_table)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user