mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 06:40:48 +00:00
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.
This commit is contained in:
parent
6aee1ce91c
commit
2204f79d57
1 changed files with 11 additions and 0 deletions
11
payload.cc
11
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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue