From 5f8ac9a9db3cfcc88a2917bd0bdcfc0be7ca44d0 Mon Sep 17 00:00:00 2001 From: david Date: Tue, 18 Aug 2009 01:27:49 +0000 Subject: [PATCH] Add the RPCCheck payload for UDP port 111/sunrpc. --- payload.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/payload.cc b/payload.cc index 6cf4c62b8..cfd931da6 100644 --- a/payload.cc +++ b/payload.cc @@ -113,6 +113,10 @@ extern NmapOps o; static const char payload_GenericLines[] = "\015\012\015\012"; static const char payload_DNSStatusRequest[] = "\000\000\020\000\000\000\000\000\000\000\000\000"; +static const char payload_RPCCheck[] = + "\162\376\035\023\000\000\000\000\000\000\000\002\000\001\206\240" + "\000\001\227\174\000\000\000\000\000\000\000\000\000\000\000\000" + "\000\000\000\000\000\000\000\000"; static const char payload_NTPRequest[] = "\343\000\004\372\000\001\000\000\000\001\000\000\000\000\000\000\000" "\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000" @@ -235,6 +239,9 @@ const char *udp_port2payload(u16 dport, size_t *length){ case 53: SET_PAYLOAD(payload_DNSStatusRequest); break; + case 111: + SET_PAYLOAD(payload_RPCCheck); + break; case 123: SET_PAYLOAD(payload_NTPRequest); break;