nmapops.h
来自「Ubuntu packages of security software。 相」· C头文件 代码 · 共 372 行 · 第 1/2 页
H
372 行
int generate_random_ips; /* -iR option */ FingerPrintDB *reference_FPs; /* Used in the new OS scan system. */ u16 magic_port; unsigned short magic_port_set; /* Was this set by user? */ int num_ping_synprobes; /* The "synprobes" are also used when doing a connect() ping */ u16 *ping_synprobes; int num_ping_ackprobes; u16 *ping_ackprobes; int num_ping_udpprobes; u16 *ping_udpprobes; int num_ping_protoprobes; u16 *ping_protoprobes; /* Scan timing/politeness issues */ int timing_level; // 0-5, corresponding to Paranoid, Sneaky, Polite, Normal, Aggressive, Insane int max_parallelism; // 0 means it has not been set int min_parallelism; // 0 means it has not been set double topportlevel; // -1 means it has not been set /* The maximum number of OS detection (gen2) tries we will make without any matches before giving up on a host. We may well give up after fewer tries anyway, particularly if the target isn't ideal for unknown fingerprint submissions */ int maxOSTries() { return max_os_tries; } void setMaxOSTries(int mot); /* These functions retrieve and set the Round Trip Time timeouts, in milliseconds. The set versions do extra processing to insure sane values and to adjust each other to insure consistance (e.g. that max is always at least as high as min) */ int maxRttTimeout() { return max_rtt_timeout; } int minRttTimeout() { return min_rtt_timeout; } int initialRttTimeout() { return initial_rtt_timeout; } void setMaxRttTimeout(int rtt); void setMinRttTimeout(int rtt); void setInitialRttTimeout(int rtt); void setMaxRetransmissions(int max_retransmit); int getMaxRetransmissions() { return max_retransmissions; } /* Similar functions for Host group size */ int minHostGroupSz() { return min_host_group_sz; } int maxHostGroupSz() { return max_host_group_sz; } void setMinHostGroupSz(unsigned int sz); void setMaxHostGroupSz(unsigned int sz); unsigned int maxTCPScanDelay() { return max_tcp_scan_delay; } unsigned int maxUDPScanDelay() { return max_udp_scan_delay; } void setMaxTCPScanDelay(unsigned int delayMS) { max_tcp_scan_delay = delayMS; } void setMaxUDPScanDelay(unsigned int delayMS) { max_udp_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 Nmap is used. If you call it with NULL as the xslname, no stylesheet line is printed. */ void setXSLStyleSheet(char *xslname); /* Returns the full path or URL that should be printed in the XML output xml-stylesheet element. Returns NULL if the whole element should be skipped */ char *XSLStyleSheet() { return xsl_stylesheet; } /* Sets the spoofed MAC address */ void setSpoofMACAddress(u8 *mac_data); /* Gets the spoofed MAC address, but returns NULL if it hasn't been set */ const u8 *spoofMACAddress() { return spoof_mac_set? spoof_mac : NULL; } int max_ips_to_scan; // Used for Random input (-iR) to specify how // many IPs to try before stopping. 0 means unlimited. int extra_payload_length; /* These two are for --data_length op */ char *extra_payload; unsigned long host_timeout; /* Delay between probes, in milliseconds */ unsigned int scan_delay; bool open_only; int scanflags; /* if not -1, this value should dictate the TCP flags for the core portscaning routine (eg to change a FIN scan into a PSH scan. Sort of a hack, but can be very useful sometimes. */ int defeat_rst_ratelimit; /* Solaris 9 rate-limits RSTs so scanning is very slow against it. If we don't distinguish between closed and filtered ports, we can get the list of open ports very fast */ struct in_addr resume_ip; /* The last IP in the log file if user requested --restore . Otherwise restore_ip.s_addr == 0. Also target_struct_get will eventually set it to 0. */ // Version Detection Options int override_excludeports; int version_intensity; struct in_addr decoys[MAX_DECOYS]; int osscan_limit; /* Skip OS Scan if no open or no closed TCP ports */ int osscan_guess; /* Be more aggressive in guessing OS type */ int numdecoys; int decoyturn; int osscan; int servicescan; int pingtype; int listscan; int pingscan; int allowall; int fragscan; /* 0 or MTU (without IPv4 header size) */ int ackscan; int bouncescan; int connectscan; int finscan; int idlescan; int ipprotscan; int maimonscan; int nullscan; int rpcscan; int synscan; int udpscan; int windowscan; int xmasscan; int noresolve; int append_output; /* Append to any output files rather than overwrite */ FILE *logfd[LOG_NUM_FILES]; FILE *nmap_stdout; /* Nmap standard output */ int ttl; // Time to live int badsum; char *datadir; /* A map from abstract data file names like "nmap-services" and "nmap-os-db" to paths which have been requested by the user. nmap_fetchfile will return the file names defined in this map instead of searching for a matching file. */ std::map<std::string, std::string> requested_data_files; /* A map from data file names to the paths at which they were actually found. Only files that were actually read should be in this map. */ std::map<std::string, std::string> loaded_data_files; bool mass_dns; int resolve_all; char *dns_servers; bool log_errors; bool traceroute; bool reason;#ifndef NOLUA int script; char *scriptargs; int scriptversion; int scripttrace; int scriptupdatedb; void chooseScripts(char* argument); std::vector<std::string> chosenScripts;#endif /* ip options used in build_*_raw() */ u8 *ipoptions; int ipoptionslen; int ipopt_firsthop; // offset in ipoptions where is first hop for source/strict routing int ipopt_lasthop; // offset in ipoptions where is space for targets ip for source/strict routing // Statistics Options set in nmap.cc int numhosts_scanned; int numhosts_up; int numhosts_scanning; stype current_scantype; bool noninteractive; bool release_memory; /* suggest to release memory before quitting. used to find memory leaks. */ private: int max_os_tries; int max_rtt_timeout; int min_rtt_timeout; int initial_rtt_timeout; int max_retransmissions; unsigned int max_tcp_scan_delay; unsigned int max_udp_scan_delay; unsigned int min_host_group_sz; unsigned int max_host_group_sz; void Initialize(); int addressfamily; /* Address family: AF_INET or AF_INET6 */ struct sockaddr_storage sourcesock; size_t sourcesocklen; struct timeval start_time; bool pTrace; // Whether packet tracing has been enabled bool vTrace; // Whether version tracing has been enabled char *xsl_stylesheet; u8 spoof_mac[6]; bool spoof_mac_set;};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?