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:
@@ -9,15 +9,9 @@ license = "See nmap's COPYING for license"
|
||||
|
||||
categories = {"safe", "discovery"}
|
||||
|
||||
portrule = function(host, port)
|
||||
if port.number == 4569 and
|
||||
port.protocol == "udp"
|
||||
then
|
||||
return true
|
||||
else
|
||||
return false
|
||||
end
|
||||
end
|
||||
require "shortport"
|
||||
|
||||
portrule = shortport.portnumber(4569, "udp")
|
||||
|
||||
action = function(host, port)
|
||||
local soc = nmap.new_socket()
|
||||
|
||||
Reference in New Issue
Block a user