mirror of
https://github.com/nmap/nmap.git
synced 2026-02-09 06:56:35 +00:00
NSE committed
This commit is contained in:
35
scripts/strangeSMTPport.nse
Normal file
35
scripts/strangeSMTPport.nse
Normal file
@@ -0,0 +1,35 @@
|
||||
id = "Unexpected SMTP"
|
||||
|
||||
description = "\
|
||||
If smtp is running on a strange port\
|
||||
there be a backdoor set up by crackers to send spam\
|
||||
or even control your machine."
|
||||
|
||||
author = "Diman Todorov <diman.todorov@gmail.com>"
|
||||
|
||||
license = "See nmaps COPYING for licence"
|
||||
|
||||
categories = {"backdoor"}
|
||||
|
||||
portrule = function(host, port)
|
||||
if
|
||||
( port.number ~= 25
|
||||
and
|
||||
port.number ~= 465
|
||||
and
|
||||
port.number ~= 587
|
||||
and
|
||||
port.service == "smtp" )
|
||||
and port.protocol == "tcp"
|
||||
and port.state == "open"
|
||||
then
|
||||
return true
|
||||
else
|
||||
return false
|
||||
end
|
||||
end
|
||||
|
||||
action = function()
|
||||
return "Warning: smtp is running on a strange port"
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user