1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-20 22:49:01 +00:00

Converts the login check from a negative test to a positive one (Apache Axis2)

This commit is contained in:
nnposter
2017-04-25 23:06:38 +00:00
parent 2a07563f1d
commit c324237cf0

View File

@@ -474,9 +474,10 @@ table.insert(fingerprints, {
{username = "admin", password = "axis2"}
},
login_check = function (host, port, path, user, pass)
return try_http_post_login(host, port, path, "login",
"%sname%s*=%s*(['\"]?)password%1[%s>]",
{submit=" Login ", userName=user, password=pass})
local resp = http_post_simple(host, port, url.absolute(path, "login"), nil,
{userName=user,password=pass,submit=" Login "})
return resp.status == 200
and (resp.body or ""):lower():find("<a%s+href%s*=%s*(['\"])axis2%-admin/logout%1")
end
})