1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 04:31:29 +00:00

Merge Jay Fink's patch that puts UDP payloads in an external data file

instead of being hard-coded in payloads.cc. This is the patch from
http://seclists.org/nmap-dev/2010/q2/497.
This commit is contained in:
david
2010-05-25 17:38:23 +00:00
parent 32e6b837cb
commit 994da96f9c
6 changed files with 445 additions and 217 deletions

View File

@@ -92,7 +92,10 @@
#ifndef PAYLOAD_H
#define PAYLOAD_H
#define PAYLOAD_FILENAME "nmap-payloads"
const char *get_udp_payload(u16 dport, size_t *length);
const char *udp_port2payload(u16 dport, size_t *length);
int init_payloads(void);
#endif /* PAYLOAD_H */