id = "test" description = "" categories = {"demo"} portrule = function() return true end action = function(host, port) local catch = function() end local socket = nmap.new_socket() local try = nmap.new_try() print(socket:connect("nonexistent.nonexistent", 80)) try(socket:connect("nonexistent.nonexistent", 80)) return "test" end