mirror of
https://github.com/nmap/nmap.git
synced 2026-06-09 17:22:26 +00:00
Let daytime.nse run against both TCP and UDP port 13. It only did UDP before.
RFC 867 says the service runs over both protocols.
This commit is contained in:
parent
d9db019495
commit
7307d28e88
1 changed files with 2 additions and 2 deletions
|
|
@ -11,10 +11,10 @@ categories = {"discovery"}
|
|||
require "comm"
|
||||
require "shortport"
|
||||
|
||||
portrule = shortport.port_or_service(13, "daytime", "udp")
|
||||
portrule = shortport.port_or_service(13, "daytime", {"tcp", "udp"})
|
||||
|
||||
action = function(host, port)
|
||||
local status, result = comm.exchange(host, port, "dummy", {lines=1, proto="udp"})
|
||||
local status, result = comm.exchange(host, port, "dummy", {lines=1, proto=port.proto})
|
||||
|
||||
if status then
|
||||
return "Daytime: " .. result
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue