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:
@@ -14,18 +14,11 @@ id="Open Relay SMTP"
|
||||
description="Checks to see if a SMTP server is an open relay"
|
||||
categories = {"demo"}
|
||||
|
||||
require "shortport"
|
||||
|
||||
ourdomain="scanme.org"
|
||||
|
||||
portrule = function(host, port)
|
||||
if (port.number == 25
|
||||
or port.service == "smtp")
|
||||
and port.protocol == "tcp"
|
||||
then
|
||||
return true
|
||||
else
|
||||
return false
|
||||
end
|
||||
end
|
||||
portrule = shortport.port_or_service(25, "smtp")
|
||||
|
||||
action = function(host, port)
|
||||
local socket = nmap.new_socket()
|
||||
|
||||
Reference in New Issue
Block a user