Enum Class Flag

java.lang.Object
java.lang.Enum<Flag>
org.nmap4j.core.flags.Flag
All Implemented Interfaces:
Serializable, Comparable<Flag>, Constable

public enum Flag extends Enum<Flag>
This enum contains all the publically available flags for NMap as Java constants. It is not a requirement with NMap4J to use these flags, you are free to pass flags as Strings.

To see the complete list of flags, run nmap with no arguments from the command line.

  • Enum Constant Details

    • INPUT_FILENAME

      public static final Flag INPUT_FILENAME
    • RANDOM_TARGETS

      public static final Flag RANDOM_TARGETS
    • EXCLUDE_HOSTS

      public static final Flag EXCLUDE_HOSTS
    • EXCLUDE_FILE

      public static final Flag EXCLUDE_FILE
    • LIST_SCAN

      public static final Flag LIST_SCAN
    • PING_SCAN

      public static final Flag PING_SCAN
    • TREAT_HOSTS_AS_ONLINE

      public static final Flag TREAT_HOSTS_AS_ONLINE
    • TCP_SYN_DISCOVERY

      public static final Flag TCP_SYN_DISCOVERY
    • ACK_DISCOVERY

      public static final Flag ACK_DISCOVERY
    • UDP_DISCOVERY

      public static final Flag UDP_DISCOVERY
    • SCTP_DISCOVERY

      public static final Flag SCTP_DISCOVERY
    • ICMP_ECHO_DISCOVERY

      public static final Flag ICMP_ECHO_DISCOVERY
    • TIMESTAMP_DISCOVERY

      public static final Flag TIMESTAMP_DISCOVERY
    • NETMASK_REQUEST_DISCOVERY

      public static final Flag NETMASK_REQUEST_DISCOVERY
    • PROTOCOL_PING

      public static final Flag PROTOCOL_PING
    • NEVER_DO_DNS

      public static final Flag NEVER_DO_DNS
    • DNS_SERVERS

      public static final Flag DNS_SERVERS
    • SYSTEM_DNS

      public static final Flag SYSTEM_DNS
    • TRACEROUTE

      public static final Flag TRACEROUTE
    • HOST_SCAN

      public static final Flag HOST_SCAN
    • TCP_SYN_SCAN

      public static final Flag TCP_SYN_SCAN
    • CONNECT_SCAN

      public static final Flag CONNECT_SCAN
    • ACK_SCAN

      public static final Flag ACK_SCAN
    • WINDOW_SCAN

      public static final Flag WINDOW_SCAN
    • MAIMON_SCAN

      public static final Flag MAIMON_SCAN
    • UDP_SCAN

      public static final Flag UDP_SCAN
    • TCP_NULL_SCAN

      public static final Flag TCP_NULL_SCAN
    • FIN_SCAN

      public static final Flag FIN_SCAN
    • XMAS_SCAN

      public static final Flag XMAS_SCAN
    • SCANFLAGS

      public static final Flag SCANFLAGS
    • IDLE_SCAN

      public static final Flag IDLE_SCAN
    • SCTP_INIT_SCAN

      public static final Flag SCTP_INIT_SCAN
    • IP_PROTOCOL_SCAN

      public static final Flag IP_PROTOCOL_SCAN
    • FTP_BOUNCE_SCAN

      public static final Flag FTP_BOUNCE_SCAN
    • PORT_SPEC

      public static final Flag PORT_SPEC
    • FAST_SCAN_MODE

      public static final Flag FAST_SCAN_MODE
    • SCAN_PORTS_CONSECUTIVELY

      public static final Flag SCAN_PORTS_CONSECUTIVELY
    • TOP_PORTS

      public static final Flag TOP_PORTS
    • PORT_RATIO

      public static final Flag PORT_RATIO
    • SERVICE_VERSION

      public static final Flag SERVICE_VERSION
    • VERSION_INTENSITY

      public static final Flag VERSION_INTENSITY
    • VERSION_LIGHT

      public static final Flag VERSION_LIGHT
    • VERSION_ALL

      public static final Flag VERSION_ALL
    • VERSION_TRACE

      public static final Flag VERSION_TRACE
    • SCRIPT_SC

      public static final Flag SCRIPT_SC
    • SCRIPT

      public static final Flag SCRIPT
    • SCRIPT_ARGS

      public static final Flag SCRIPT_ARGS
    • SCRIPT_TRACE

      public static final Flag SCRIPT_TRACE
    • SCRIPT_UPDATEDB

      public static final Flag SCRIPT_UPDATEDB
    • OS_DETECTION

      public static final Flag OS_DETECTION
    • OSSCAN_LIMIT

      public static final Flag OSSCAN_LIMIT
    • OSSCAN_GUESS

      public static final Flag OSSCAN_GUESS
    • PARANOID_TIMING

      public static final Flag PARANOID_TIMING
    • SNEAKY_TIMING

      public static final Flag SNEAKY_TIMING
    • POLITE_TIMING

      public static final Flag POLITE_TIMING
    • NORMAL_TIMING

      public static final Flag NORMAL_TIMING
    • AGGRESIVE_TIMING

      public static final Flag AGGRESIVE_TIMING
    • INSANE_TIMING

      public static final Flag INSANE_TIMING
    • PARALLEL_MIN_HOST_GROUP_SIZE

      public static final Flag PARALLEL_MIN_HOST_GROUP_SIZE
    • PARALLEL_MAX_HOST_GROUP_SIZE

      public static final Flag PARALLEL_MAX_HOST_GROUP_SIZE
    • MIN_PROBE_PARALLELIZATION

      public static final Flag MIN_PROBE_PARALLELIZATION
    • MAX_PROBE_PARALLELIZATION

      public static final Flag MAX_PROBE_PARALLELIZATION
    • MIN_RTT_TIMEOUT

      public static final Flag MIN_RTT_TIMEOUT
    • MAX_RTT_TIMEOUT

      public static final Flag MAX_RTT_TIMEOUT
    • INITIAL_RTT_TIMEOUT

      public static final Flag INITIAL_RTT_TIMEOUT
    • MAX_RETRIES

      public static final Flag MAX_RETRIES
    • HOST_TIMEOUT

      public static final Flag HOST_TIMEOUT
    • SCAN_DELAY

      public static final Flag SCAN_DELAY
    • MAX_SCAN_DELAY

      public static final Flag MAX_SCAN_DELAY
    • MIN_RATE

      public static final Flag MIN_RATE
    • MAX_RATE

      public static final Flag MAX_RATE
    • FRAGMENT_PACKETS

      public static final Flag FRAGMENT_PACKETS
    • MTU

      public static final Flag MTU
    • DECOY

      public static final Flag DECOY
    • SPOOF_SOURCE_ADDRESS

      public static final Flag SPOOF_SOURCE_ADDRESS
    • INTERFACE

      public static final Flag INTERFACE
    • SOURCE_PORT_G_FLAG

      public static final Flag SOURCE_PORT_G_FLAG
    • SOURCE_PORT

      public static final Flag SOURCE_PORT
    • DATA_LENGTH

      public static final Flag DATA_LENGTH
    • IP_OPTIONS

      public static final Flag IP_OPTIONS
    • TIME_TO_LIVE

      public static final Flag TIME_TO_LIVE
    • SPOOF_MAC_ADDRESS

      public static final Flag SPOOF_MAC_ADDRESS
    • BADSUM

      public static final Flag BADSUM
    • ADLER32

      public static final Flag ADLER32
    • NORMAL_OUTPUT

      public static final Flag NORMAL_OUTPUT
    • XML_OUTPUT

      public static final Flag XML_OUTPUT
    • SCRIPT_KIDDIE_OUPUT

      public static final Flag SCRIPT_KIDDIE_OUPUT
    • GREPPABLE_OUTPUT

      public static final Flag GREPPABLE_OUTPUT
    • ALL_THREE_OUTPUT

      public static final Flag ALL_THREE_OUTPUT
    • VERBOSE

      public static final Flag VERBOSE
    • DEBUG_LEVEL

      public static final Flag DEBUG_LEVEL
    • REASON

      public static final Flag REASON
    • OPEN

      public static final Flag OPEN
    • PACKET_TRACE

      public static final Flag PACKET_TRACE
    • LOG_ERRORS

      public static final Flag LOG_ERRORS
    • APPEND_OUTPUT

      public static final Flag APPEND_OUTPUT
    • RESUME

      public static final Flag RESUME
    • STYLESHEET

      public static final Flag STYLESHEET
    • WEBXML

      public static final Flag WEBXML
    • NO_STYLESHEET

      public static final Flag NO_STYLESHEET
    • IPV6

      public static final Flag IPV6
    • A_FLAG

      public static final Flag A_FLAG
    • DATADIR

      public static final Flag DATADIR
    • SEND_ETH

      public static final Flag SEND_ETH
    • SEND_IP

      public static final Flag SEND_IP
    • PRIVILEGED

      public static final Flag PRIVILEGED
    • UNPRIVILEGED

      public static final Flag UNPRIVILEGED
    • VERSION

      public static final Flag VERSION
    • HELP

      public static final Flag HELP
  • Method Details

    • values

      public static Flag[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Flag valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • toString

      public String toString()
      Overrides:
      toString in class Enum<Flag>
    • getComment

      public String getComment()