mirror of
https://github.com/nmap/nmap.git
synced 2025-12-10 17:59:04 +00:00
merge soc07 r5109, r5117 - Modified some of the scripts to use NSELib for portrule
This commit is contained in:
@@ -5,16 +5,9 @@ license="See nmaps COPYING for licence"
|
||||
|
||||
categories = {"intrusive"}
|
||||
|
||||
portrule = function(host, port)
|
||||
if port.service == "ftp"
|
||||
and port.protocol == "tcp"
|
||||
and port.state == "open"
|
||||
then
|
||||
return true
|
||||
else
|
||||
return false
|
||||
end
|
||||
end
|
||||
require "shortport"
|
||||
|
||||
portrule = shortport.service("ftp")
|
||||
|
||||
line_iterate = function(s)
|
||||
local line
|
||||
|
||||
Reference in New Issue
Block a user