From b6778204cdb27f879d7bdeec7bb0f8bd10dca0f9 Mon Sep 17 00:00:00 2001 From: dmiller Date: Sat, 12 Mar 2016 20:45:53 +0000 Subject: [PATCH] Fix http-brute, munged by me in r35584. Closes #317 --- scripts/http-brute.nse | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/http-brute.nse b/scripts/http-brute.nse index 099562e46..e95bfdd91 100644 --- a/scripts/http-brute.nse +++ b/scripts/http-brute.nse @@ -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)