mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +00:00
merge soc07 r5109, r5117 - Modified some of the scripts to use NSELib for portrule
This commit is contained in:
parent
98ad71e782
commit
bd1ee83bd9
24 changed files with 63 additions and 283 deletions
|
|
@ -9,14 +9,9 @@ license = "See Nmap's COPYING"
|
|||
categories = {"discovery"}
|
||||
|
||||
require("stdnse")
|
||||
require "shortport"
|
||||
|
||||
portrule = function(host, port)
|
||||
return (portnumber == 6667 or port.service == "irc")
|
||||
and port.protocol == "tcp"
|
||||
and port.state == "open"
|
||||
end
|
||||
|
||||
|
||||
portrule = shortport.port_or_service(6667, "irc")
|
||||
|
||||
init = function()
|
||||
-- Start of MOTD, we'll take the server name from here
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue