1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-09 06:01:28 +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

@@ -16,25 +16,9 @@ license = "See nmaps COPYING for licence"
categories = {"malware"}
portrule = function(host, port)
local decision
if
( port.number == 7955
or
port.number == 14920
or
port.number == 42260)
and port.service == "ftp"
and port.protocol == "tcp"
and port.state == "open"
then
decision = true
else
decision = false
end
require "shortport"
return decision
end
portrule = shortport.port_or_service({7955, 14920, 42260}, "ftp")
action = function(host, port)
local socket = nmap.new_socket()