1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-09 16:09:03 +00:00

Add the RPCCheck payload for UDP port 111/sunrpc.

This commit is contained in:
david
2009-08-18 01:27:49 +00:00
parent 1ffb2f6ec6
commit 5f8ac9a9db

View File

@@ -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;