local err_catch = function() socket:close() end local try = nmap.new_try(err_catch()) socket:set_timeout(5000) try(socket:connect(host.ip, port.number, port.protocol)) try(socket:send("\n\r")) status, results = socket:receive_lines(100) socket:close() if not(status) then return results end