1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-29 19:09:01 +00:00

fixed bad escape sequences

This commit is contained in:
batrick
2012-04-02 08:13:54 +00:00
parent e86d713be2
commit fd80c2d0a6
19 changed files with 64 additions and 64 deletions

View File

@@ -160,7 +160,7 @@ end
-- @param body the html content of the recieved page
-- @return link to next page
local function getPager( body )
return body:match("<form.+action=\"(.+%?ReadForm)\&" )
return body:match("<form.+action=\"(.+%?ReadForm)&" )
end
--- Retrieves the username and passwords for a user
@@ -253,7 +253,7 @@ action = function(host, port)
pager = getPager( http_response.body )
if ( not(pager) ) then
if ( http_response.body and
http_response.body:match(".*\<input type=\"submit\".* value=\"Sign In\"\>.*" ) ) then
http_response.body:match(".*<input type=\"submit\".* value=\"Sign In\">.*" ) ) then
return " \n ERROR: Failed to authenticate"
else
return " \n ERROR: Failed to process results"