mirror of
https://github.com/nmap/nmap.git
synced 2026-05-13 16:57:06 +00:00
Fix http-brute, munged by me in r35584. Closes #317
This commit is contained in:
parent
801a19f137
commit
b6778204cd
1 changed files with 3 additions and 3 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue