mirror of
https://github.com/nmap/nmap.git
synced 2026-08-03 22:29:06 +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,21 +9,9 @@ license = "See nmaps COPYING for licence"
|
|||
|
||||
categories = {"backdoor"}
|
||||
|
||||
portrule = function(host, port)
|
||||
local decision
|
||||
if
|
||||
( port.number == 8888
|
||||
or port.service == "auth")
|
||||
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(8888, "auth")
|
||||
|
||||
action = function(host, port)
|
||||
local status = 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue