infosec/Introduccion-hacking-hack4u/tema_2_Reconocimiento/example.nse

17 lines
307 B
Plaintext
Raw Normal View History

2024-02-04 12:50:44 +01:00
-- HEAD --
description = [[
Script de ejemplo que enumera y reporta puertos abiertos por TCP.
]]
-- RULE --
portrule = function(host, port)
return port.protocol == "tcp" and port.state == "open"
end
-- ACTION --
action = function(host, port)
return ("Puerto %d abierto"):format(port.number)
end