From 2204f79d571b710c9c5b7b37f3f58925367b3899 Mon Sep 17 00:00:00 2001 From: david Date: Tue, 18 Aug 2009 01:43:46 +0000 Subject: [PATCH] Add a UDP payload for 2049/nfs. This payload, taken from unicornscan, is a call to the NFSPROC_NULL procedure, which is explicitly documented to do nothing. --- payload.cc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/payload.cc b/payload.cc index cfd931da6..0b3aaa81e 100644 --- a/payload.cc +++ b/payload.cc @@ -190,6 +190,14 @@ static const char payload_radius[] = "\001\000\000\024" "\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000"; +/* NFS version 2, RFC 1831. XID 0x00000000, program 100003 (NFS), procedure + NFSPROC_NULL (does nothing, see section 2.2.1), null authentication (see + section 9.1). */ +static const char payload_nfs[] = + "\000\000\000\000\000\000\000\000\000\000\000\002\000\001\206\243" + "\000\000\000\002\000\000\000\000\000\000\000\000\000\000\000\000" + "\000\000\000\000\000\000\000\000"; + /* DNS Service Discovery (DNS-SD) service query, as used in Zeroconf. Transaction ID 0x0000, flags 0x0000, 1 question: PTR query for _services._dns-sd._udp.local. If the remote host supports DNS-SD it will send @@ -272,6 +280,9 @@ const char *udp_port2payload(u16 dport, size_t *length){ case 1812: SET_PAYLOAD(payload_radius); break; + case 2049: + SET_PAYLOAD(payload_nfs); + break; case 5353: SET_PAYLOAD(payload_dns_sd); break;