mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 04:31:29 +00:00
Lua 5.2 fixed from Daniel Miller.
http://seclists.org/nmap-dev/2012/q2/525
This commit is contained in:
@@ -70,7 +70,7 @@ end
|
||||
-- @return Table containing the names and paths of the available services
|
||||
local function get_available_services(body)
|
||||
local services = {}
|
||||
for service in string.gfind(body, '<h4>Service%sDescription%s:%s<font%scolor="black">(.-)</font></h4>') do
|
||||
for service in string.gmatch(body, '<h4>Service%sDescription%s:%s<font%scolor="black">(.-)</font></h4>') do
|
||||
table.insert(services, service)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user