mirror of
https://github.com/nmap/nmap.git
synced 2025-12-15 20:29:03 +00:00
o Added initial SCTP port scanning support to Nmap. SCTP is
a layer 4 protocol used mostly for telephony related applications.
This brings the following new features:
o SCTP INIT chunk port scan (-sY): open ports return an INIT-ACK
chunk, closed ones an ABORT chunk. This is the SCTP equivalent
of a TCP SYN stealth scan.
o SCTP COOKIE-ECHO chunk port scan (-sZ): open ports are silent,
closed ports return an ABORT chunk.
o SCTP INIT chunk ping probes (-PY): host discovery using SCTP
INIT chunk packets.
o SCTP-specific IP protocol scan (-sO -p sctp).
o SCTP-specific traceroute support (--traceroute).
o The ability to use the deprecated Adler32 algorithm as specified
in RFC 2960 instead of CRC32C from RFC 4960 (--adler32).
o 42 well-known SCTP ports were added to the nmap-services file.
Part of the work on SCTP support was kindly sponsored by
Compass Security AG, Switzerland. [Daniel Roethlisberger]
This commit is contained in:
@@ -123,6 +123,7 @@ class NmapOps {
|
||||
|
||||
bool TCPScan(); /* Returns true if at least one chosen scan type is TCP */
|
||||
bool UDPScan(); /* Returns true if at least one chosen scan type is UDP */
|
||||
bool SCTPScan(); /* Returns true if at least one chosen scan type is SCTP */
|
||||
|
||||
/* Returns true if at least one chosen scan type uses raw packets.
|
||||
It does not currently cover cases such as TCP SYN ping scan which
|
||||
@@ -222,8 +223,10 @@ class NmapOps {
|
||||
void setMaxHostGroupSz(unsigned int sz);
|
||||
unsigned int maxTCPScanDelay() { return max_tcp_scan_delay; }
|
||||
unsigned int maxUDPScanDelay() { return max_udp_scan_delay; }
|
||||
unsigned int maxSCTPScanDelay() { return max_sctp_scan_delay; }
|
||||
void setMaxTCPScanDelay(unsigned int delayMS) { max_tcp_scan_delay = delayMS; }
|
||||
void setMaxUDPScanDelay(unsigned int delayMS) { max_udp_scan_delay = delayMS; }
|
||||
void setMaxSCTPScanDelay(unsigned int delayMS) { max_sctp_scan_delay = delayMS; }
|
||||
|
||||
/* Sets the Name of the XML stylesheet to be printed in XML output.
|
||||
If this is never called, a default stylesheet distributed with
|
||||
@@ -291,6 +294,8 @@ class NmapOps {
|
||||
int rpcscan;
|
||||
int synscan;
|
||||
int udpscan;
|
||||
int sctpinitscan;
|
||||
int sctpcookieechoscan;
|
||||
int windowscan;
|
||||
int xmasscan;
|
||||
int noresolve;
|
||||
@@ -314,6 +319,7 @@ class NmapOps {
|
||||
bool log_errors;
|
||||
bool traceroute;
|
||||
bool reason;
|
||||
bool adler32;
|
||||
|
||||
#ifndef NOLUA
|
||||
int script;
|
||||
@@ -347,6 +353,7 @@ class NmapOps {
|
||||
int max_retransmissions;
|
||||
unsigned int max_tcp_scan_delay;
|
||||
unsigned int max_udp_scan_delay;
|
||||
unsigned int max_sctp_scan_delay;
|
||||
unsigned int min_host_group_sz;
|
||||
unsigned int max_host_group_sz;
|
||||
void Initialize();
|
||||
|
||||
Reference in New Issue
Block a user