mirror of
https://github.com/nmap/nmap.git
synced 2025-12-07 13:11:28 +00:00
merge soc07 r5109, r5117 - Modified some of the scripts to use NSELib for portrule
This commit is contained in:
@@ -8,17 +8,9 @@ license = "See nmaps COPYING for licence"
|
||||
|
||||
categories = {"discovery"}
|
||||
|
||||
portrule = function(host, port)
|
||||
if (port.number == 79
|
||||
or port.service == "finger")
|
||||
and port.protocol == "tcp"
|
||||
and port.state == "open"
|
||||
then
|
||||
return true
|
||||
else
|
||||
return false
|
||||
end
|
||||
end
|
||||
require "shortport"
|
||||
|
||||
portrule = shortport.port_or_service(79, "finger")
|
||||
|
||||
action = function(host, port)
|
||||
local socket = nmap.new_socket()
|
||||
|
||||
Reference in New Issue
Block a user