1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-08 21:51:28 +00:00
Commit Graph

131 Commits

Author SHA1 Message Date
david
50c4981934 Remove the first-generation OS detection and nmap-os-fingerprints. 2007-11-03 01:31:02 +00:00
david
f23d62d259 Don't use T: and U: in error messages as examples of proper form if they are
not allowed in the particular port/protocol specification that caused the
error.
2007-11-01 16:25:18 +00:00
david
2e65b35f84 Remove the artificial cap on the number of ping scan ports and protocols. Port
lists for ping scan now use the same syntax as the -p option except that T:,
U:, and P: are not allowed.
2007-11-01 16:15:11 +00:00
kris
9dfd8af1f3 updating ip_is_reserved(): 114/8 and 115/8 went to APNIC 2007-11-01 12:53:58 +00:00
david
f020df112f Change some references to o.ipprotscan into (rangetype & SCAN_PROTOCOLS) to avoid using global knowledge in getpts_aux. 2007-11-01 08:11:15 +00:00
kris
8af261ea1a whoops, adding new limits for protocol numbers (0-255) passed to -PO. This didn't cause a crash or anything, just a wraparound in the protocol field (e.g. passing 258 caused 2 to be used) 2007-10-31 23:19:36 +00:00
david
2dcf70d520 Remove the struct scan_lists parameter from getpts_aux and some of its auxiliary functions. It was used only to keep track of the number of ports and protocols, which can be derived after the bit map is filled in. This is preparation for a minor refactoring of getpts so it can be used for ping port selection. 2007-10-30 04:40:10 +00:00
kris
1b1fcc753b Adding a new ping type: IPProto Ping. It's used with '-PO'. I've changed references to -P0 (zero) to -PN throughout the source code and refguide.xml 2007-10-28 00:05:03 +00:00
kris
0f7d4e49d8 Updating ip_is_reserved(): 186/8 and 187/8 went to LACNIC 2007-10-09 13:22:41 +00:00
fyodor
ba545c1ef9 Unix installation now places NSELib dynamic libraries in 'libexec' rather than 'share' directories, since they are architecture dependent. Thanks to Christoph J. Thompson for the patch. 2007-10-07 21:32:38 +00:00
fyodor
4dc8618965 capitalization changes 2007-09-03 02:55:01 +00:00
kris
f68df9d91c Okay, I'm sorry for committing for just a whitespace issue, but this confused the hell out of me because I completely missed that assignment :) 2007-08-29 22:28:22 +00:00
kris
46dc926888 adding --script_args (underscore cousin of --script-args) 2007-08-29 22:19:24 +00:00
kris
69e1ad6a70 Adding back my '-D rnd' from soc07 which I guess was lost in the move back here to /nmap 2007-08-28 01:04:41 +00:00
david
302547375b Look out, world, here comes the Nmap massping migration!
This is the merging of the code that was previously in
/nmap-exp/david/nmap-massping-migration. These are all the big changes
that get rid of massping in favor of doing host discovery using
ultra_scan.

For now, there is a toggle that turns these new changes off. Undefine
NEW_MASSPING in targets.cc to go back to the old code. All of that will
be deleted eventually.

There are likely a few more changes that will be made to this system in
the near future. Those will be made in
/nmap-exp/david/nmap-massping-migration and merged back.

Don't release this just yet, because I'm going to make a few more
commits real quick to remove some debugging stuff.

(Note to self: this merge back was from r5693 in
/nmap-exp/david/nmap-massping-migration.)
2007-08-27 23:58:23 +00:00
fyodor
8d0b39dadb capitalize Lua 2007-08-27 03:18:56 +00:00
stoiko
4767dd8c70 script arguments now get checked before nmap starts scanning 2007-08-20 21:56:36 +00:00
fyodor
ed5de36e7f make sure Nmap help output does not contain the XML CDATA termination string (] then ] then >) 2007-08-17 22:34:50 +00:00
stoiko
e765af4103 added --script-args to the usage-text (nmap.cc)
fixed to typos in error messages (nse_nsock.cc)
added a short description of --script-args to refguide.xml
2007-08-16 10:51:27 +00:00
kris
0b50c16b38 Adding Snprintf() and Vsnprintf() to nbase/nbase_str.c. This is because of Windows' stupid implementation where it doesn't write a NULL byte at the end of the buffer if the result is truncated. I would've just #defined snprintf and vsnprintf to some wrapper function for Windows, but this doesn't work as libdnet and libpcap (and libpcap includes under mswin32) define snprintf to _snprintf and vsnprintf to _vsnprintf like we do, and through the many defines they end up being available in the Nmap sources. Vsnprintf() uses vsnprintf() (and writes a NULL byte at the end if truncated), and Snprintf uses Vsnprintf(). 2007-08-14 06:46:54 +00:00
fyodor
62d7e3ed87 merge soc07 r5317:5322 - NSE buffered receives and script arguments 2007-08-11 06:09:50 +00:00
fyodor
0dc44d08b0 merge soc07 r5283:5298 - updating ip_is_reserved(); add sys/types.h include so it compiles on OpenBSD 2007-08-11 06:05:07 +00:00
fyodor
03b4dc0ec5 merge soc07 r5233 - Changed perror()s with hardcoded function names to Nmap's gh_perror() and __func__, changed perror()s followed by exit()s to Nmap's pfatal(), and removed newlines from perror()s because it breaks the line after that and before the colon and error string, which doesn't make sense 2007-08-11 05:57:54 +00:00
fyodor
980dc9b1bb merge soc07 r5226 - added a section describing briefly the NSE to the refguide. 2007-08-11 05:56:52 +00:00
fyodor
7b5f9f5dd5 merge soc07 r5100:5105 - Added traceroute to -A & updated docs 2007-08-11 05:20:08 +00:00
fyodor
6c06f51bd7 merge soc07 r5100 - Changing fprintf(stderr, )'s to error()'s (or fatal() if followed by and exit()). Besides providing consistency, this also allows more errors to actually be logged with --log-errors. 2007-08-11 05:16:56 +00:00
fyodor
8dc9673928 merge soc07 r5085 - Changing bare printf()s to log_write(LOG_PLAIN,)s because these were always printed even when things like XML and greppable output were sent to stdout (e.g. -oX -). This also adds o.scriptTrace() to make --script-trace behave more like --packet-trace and --version-trace. Nsock tracing was done unconditionally in NSE, and that has been changed to only be done when o.scriptTrace() is true. 2007-08-11 05:13:16 +00:00
fyodor
90a0087bb4 merge soc07 r5081 - changed close to 100 occurrences of LOG_NORMAL|LOG_SKID|LOG_STDOUT (and combinations) to LOG_PLAIN, and moved LOG_PLAIN definition to output.h from traceroute.h 2007-08-11 05:11:47 +00:00
fyodor
aac82901d3 merge soc07 r5005:5016 - Adding <times> element for the host's final times (srtt, rttvar, to) 2007-08-11 04:47:38 +00:00
fyodor
424981b064 merge soc07 r4982 - Fixing a small bug relating to 2nd gen osdetection output for tcp timestamp sequences. 'ERROR, WTF?' was being printed in XML because TS_SEQ_OTHER_NUM was omitted from tsseqclass2ascii(). Now it just prints 'other' 2007-08-11 04:32:07 +00:00
fyodor
65bc340828 merge soc07 r4863 - Add some logic to printdatafilepaths to control what gets displayed 2007-08-11 04:00:36 +00:00
fyodor
5e3bb361f2 merge soc07 r4860 - Add verbose data file path reporting. Some more changes might be coming, for example to change the conditions under which this information is displayed. 2007-08-11 03:59:18 +00:00
fyodor
c0e32d45df merge soc07 r4823:4827 - rename --services to --servicedb, add --versiondb 2007-08-11 03:43:52 +00:00
fyodor
58522c59f6 merge soc07 r4822 - Reduce the number of build dependencies. 2007-08-11 03:35:46 +00:00
fyodor
c6f2ab6e83 merge soc07 r4804 - misc. NSE improvements 2007-08-11 03:32:26 +00:00
fyodor
b642be63c5 merge soc07 r4803 - Implement the --services option using a filename translation map and some additional logic in nmap_fetchfile. 2007-08-11 03:31:22 +00:00
fyodor
b2d25c8b4d merge soc07 r4792 - Fixing --port_ratio and --top_ports option names (using optcmp instead of strcmp and adding underscore versions to long_options[]) 2007-08-11 03:28:01 +00:00
fyodor
90e464602a merge soc07 r4768 - Don't print an error message when no ports are specified with list or ping scan. 2007-08-11 03:19:43 +00:00
fyodor
58f46706e5 merge soc07 r4751 - UDP traceroute hop distance and port state reason feature 2007-08-11 03:15:24 +00:00
fyodor
e51abafe02 merge soc07 r4727 - Added --top-ports/--port-ratio and wildcard/[] -p switch extensions. 2007-08-11 02:58:03 +00:00
fyodor
21e986b0fd merge r4943 from soc07 - fixed a cosmetic bug related to low --host-timout arguments. Bug reported by Chris Drake 2007-06-19 21:39:05 +00:00
kris
ea49d9c4e2 merging r4789:4790 from nmap-exp/soc07 -- fixing "--release_memory" option name 2007-05-29 02:27:39 +00:00
kris
92e08b2f09 Updating IANA IP list (ip_is_reserved()). 046/8 is back with IANA, and 092/8 and 093/8 were given to RIPE. With CHANGELOG entry. 2007-04-12 16:53:06 +00:00
kris
528bec100a One liner. Change 'LOG_STDOUT|LOG_SKID|LOG_PLAIN' in a log_write() (traceroute) in nmap.cc to just 'LOG_PLAIN' because it's defined to 'LOG_NORMAL|LOG_SKID|LOG_STDOUT' 2007-03-15 20:19:37 +00:00
fyodor
e4b863328f properly lowercase traceroute.h 2007-03-15 18:14:23 +00:00
fyodor
e882edf484 added Eddie Bell's traceroute patch, with only minor changes 2007-03-13 08:02:19 +00:00
kris
cd806922c0 Fix typo in error message when given bad argument for TCP ACK Ping. "-PB" -> "-PA" 2007-02-11 20:42:38 +00:00
kris
abbaffe21c Updating with Jan '07 IANA IPv4 assignment changes. And the previous IANA patch from Mike Phipps was, in fact, wrong. Apparently he was undoing my previous IANA patch (which Fyodor committed in r4251) 2007-02-09 01:28:58 +00:00
fyodor
5fbc63cc22 revert last patch -- Kris tells me the new assignment numbers may be wrong 2007-02-09 00:17:38 +00:00
fyodor
7c9805b954 IANA patch from Mike Phipps 2007-02-07 21:06:29 +00:00