1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-09 14:11:29 +00:00
Commit Graph

402 Commits

Author SHA1 Message Date
kris
ca5848efdb Updating ip_is_reserved(): 112/8 and 113/8 were allocated to APNIC 2008-05-27 18:31:26 +00:00
fyodor
779b96a197 trivial copyright text tweak: filename nmap-os-fingerprints has changed to nmap-os-db 2008-05-22 20:45:32 +00:00
fyodor
e843583ef3 o Nmap now reports scan start and end times for individual hosts
within a larger scan. The information is added to the XML host
  element like so: [host starttime="1198292349" endtime="1198292370"]
  (but of couse with angle brackets rather than square ones).  It is
  also printed in normal output if -d or "-v -v" are
  specified. [Brandon, Kris, Fyodor]
2008-05-09 05:21:44 +00:00
bmenrigh
9b9d2bd85e Updated all the stray calls to rand() to use nbase_rnd instead. The
only code left in Nmap that still uses rand() is in the Lua math 
library.  Perhaps at some point we'll need to expose high-quality random 
numbers to Lua via our custom nmap library.
2008-05-06 01:05:51 +00:00
fyodor
10b54b773b minor license template updates from Kris--fix gnu.org link to GPLv2 (moved) and openssl license filename (COPYING.OpenSSL) 2008-05-05 04:10:00 +00:00
fyodor
884395da68 potential fix for the Nbase get_random_bytes() bug on Windows 2008-04-24 03:23:01 +00:00
david
7f910924ec Mention the removal of tcpsequence class in the CHANGELOG, and bump the XML output version to 1.02. 2008-04-11 19:33:49 +00:00
david
c0490af2fd Remove mentions of the TCP sequence class in XML output. 2008-04-11 18:57:32 +00:00
david
c7017806cc Remove some dead gen-1 OS code. 2008-04-11 03:54:44 +00:00
fyodor
5551c5a311 o Fixed a bunch of code to avoid compilation warning messages (at
least on some Linux machines) [Andrew J. Bennieston]
2008-04-09 02:11:20 +00:00
david
feab94ebd3 Merge the minimum-rate scanning feature (--min-rate) from
/nmap-exp/david/nmap-fixed-rate.
2008-03-26 02:41:32 +00:00
fyodor
1accc12fb2 fix typo in legal header found by Leigh Zhao (missing word: of) 2008-02-28 18:52:06 +00:00
kris
477967e69b updating ip_is_reserved(): 173/8 and 174/8 went to ARIN 2008-02-15 03:42:43 +00:00
diman
cf4c7081e8 moving debugger to nmap-exp/diman until further notice 2008-02-03 21:38:38 +00:00
diman
2d9bc1b43d added a CLI debugger 2008-02-03 14:21:36 +00:00
kris
9be72c95d5 updating ip_is_reserved(): 14/8 is now IANA reserved 2008-01-24 06:10:47 +00:00
kris
af76658dff no biggie: updating printusage() (the Nmap help screen) to suggest using -v twice *or more* for greater effect. This just kinda goes along with r6617 (man page update) 2008-01-19 04:25:15 +00:00
fyodor
29c912f394 URL change from http://insecure.org/nmap/* to http://nmap.org/* 2008-01-17 07:22:03 +00:00
fyodor
8220c8a42f update copyright line at the top of files from 1996-2006 to 1996-2008 2007-12-22 06:32:03 +00:00
fyodor
09512ff092 o Fix a bunch of warning/error messages which contained an extra
newline.  Thanks to Brandon Enright for the patch.
2007-12-21 03:38:04 +00:00
kris
2425765f4e Adding my strftime()-like conversion extensions to the logging functions (-oA, -oX, etc). This contains a CHANGELOG entry and refguide changes which (hopefully) sum it up pretty well. 2007-12-13 21:22:57 +00:00
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