1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-07 21:21:31 +00:00

merge soc07 r5109, r5117 - Modified some of the scripts to use NSELib for portrule

This commit is contained in:
fyodor
2007-08-11 05:31:21 +00:00
parent 98ad71e782
commit bd1ee83bd9
24 changed files with 63 additions and 283 deletions

View File

@@ -5,17 +5,9 @@ license = "See nmaps COPYING for licence"
categories = {"backdoor"}
portrule = function(host, port)
if (port.number == 5900
or port.service == "vnc")
and port.protocol == "tcp"
and port.state == "open"
then
return true
else
return false
end
end
require "shortport"
portrule = shortport.port_or_service(5900, "vnc")
action = function(host, port)
local socket = nmap.new_socket()