1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 04:31:29 +00:00

Clean up response matching and avoid requiring string lib

This commit is contained in:
dmiller
2019-04-13 21:42:56 +00:00
parent 8d7a2bc004
commit ef132f2f24

View File

@@ -109,8 +109,9 @@ end
action = function(host,port)
local response = http.get(host,port,"/xmldata?item=all")
if response["status"] ~= 200
or string.match(response["body"], '<RIMP>') == nil
or string.match(response["body"], 'iLO') == nil
or not response.body
or not response.body:match('<RIMP>')
or not response.body:match('iLO')
then
return
end