1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-31 11:59:03 +00:00

Add a UDP payload for port 520/udp, route.

This commit is contained in:
david
2009-08-14 17:26:08 +00:00
parent fae45d2c3c
commit 2bd2bf87cc

View File

@@ -131,6 +131,13 @@ static const char payload_SNMPv3GetRequest[] =
http://cgit.freedesktop.org/xorg/doc/xorg-docs/plain/hardcopy/XDMCP/xdmcp.PS.gz */
static const char payload_xdmcp[] = "\000\001\000\002\000\001\000";
/* Routing Information Protocol version 1. Special-case request for the entire
routing table (address family 0, address 0.0.0.0, metric 16). RFC 1058,
section 3.4.1. */
static const char payload_rip[] =
"\001\001\000\000\000\000\000\000\000\000\000\000\000\000\000\000"
"\000\000\000\000\000\000\000\020";
/*
This one trips a Snort rule with SID 2049 ("MS-SQL ping attempt").
static const char payload_Sqlping[] = "\002";
@@ -181,6 +188,9 @@ const char *udp_port2payload(u16 dport, size_t *length){
case 177:
SET_PAYLOAD(payload_xdmcp);
break;
case 520:
SET_PAYLOAD(payload_rip);
break;
/*
case 1434:
SET_PAYLOAD(payload_Sqlping);