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

77 Commits

Author SHA1 Message Date
david
b87ef8aabd Give a better error message "requires root privileges" when trying to run a raw
scan on Windows with --unprivileged. Previously Nmap assumed that the only way
o.isr00t could be false on Windows was if pcap functions were not available, so
the user would get the false message "requires that WinPcap version 3.1 or
higher...". NmapOps now has a state variable have_pcap so the meaning of isr00t
isn't overloaded.
2008-11-20 00:15:42 +00:00
david
651cb6e486 Allow dns.get_servers to return a list of known DNS servers even when IPv6
scanning, when system DNS resolution is used. This makes ASN.nse work for IPv6.
See the thread at http://seclists.org/nmap-dev/2008/q4/0081.html.
2008-11-02 20:32:26 +00:00
david
05b5c87558 Make the filename_to_url function static. 2008-09-29 21:50:34 +00:00
david
e0870ade30 Index the URL string with a std::string::size_type rather than an unsigned int.
Fyodor got the warning
NmapOps.cc: In function ‘char* filename_to_url(const char*)’:
NmapOps.cc:195: warning: comparison is always true due to limited range of data type
and later a segmentation fault.
2008-09-29 21:44:12 +00:00
david
e37020553e When making a file:// URL, additionally percent-escape the percent character
itself. Also fix a signedness warning.
2008-09-29 17:03:53 +00:00
david
63b0689834 As long as we're converting file names to URLs we may as well do it right and
do percent-encoding to avoid interpretation of characters such as ? and #.
2008-09-29 16:47:20 +00:00
david
447ace73e1 It appears URLs to Windows files should look like file:///C:/..., not
file://C:/...  (three slashes after file:).
2008-09-29 16:10:35 +00:00
david
ed2616909b Use a file:// URL for the XML stylesheet in XML output. 2008-09-29 15:59:56 +00:00
david
0359cb8f14 Use nmap_fetchfile to find nmap.xsl so the full path to nmap.xsl will be
included in XML output on Windows. This also makes the location of nmap.xsl
depend on NMAPDIR, --datadir, etc., rather than being hard-coded.
2008-09-24 19:15:22 +00:00
david
9621ab338a Make some change to make --without-liblua work again. 2008-08-05 19:28:51 +00:00
david
25215ce9ba Add --max-rate to go with --min-rate. 2008-07-30 00:15:57 +00:00
kris
ffb3d8202d Documenting an earlier change and adding a new, related one:
o Nsock now supports binding to a local address and setting IPv4 options
  with nsi_set_localaddr() and nsi_set_ipoptions(), respectively. [Kris]

o Nmap's Nsock-utilizing subsystems (DNS, NSE, version detection) have been
  updated to support the -S and --ip-options flags. [Kris]
2008-07-14 19:52:31 +00:00
fyodor
8605cc3682 Merge r863 of nmap-exp/fyodor-perf:
o Added the undocumented (except here) --nogcc option which disables
  global/group congestion control algorithms and so each member of a
  scan group of machines is treated separately.  This is just an
  experimental option for now. [Fyodor]
2008-07-11 07:28:36 +00:00
kris
0632f1f8da updating --release-memory (thus far) and freeing some other areas early on 2008-06-08 05:29:00 +00:00
batrick
2cea96ea2b Minor change to Kris' change to make nmap.registry.args always available.
Avoided using strdup() although it's minor.
2008-06-03 02:17:10 +00:00
kris
a5bf21e5db o The NSE nmap.registry.args table is now available, albeit empty, when
--script-args isn't used.  Now scripts don't need to check if it's nil
  before attempting to index it. [Kris]
2008-06-01 06:31:50 +00:00
michael
9f1c28ad9c This patch reorganizes the way ping probes are handled internally.
Previously the ping probe data structures were stored in NmapOps,
now they will be stored in the scan_lists struct. All other changes
auxiliary to this reorganization.
2008-05-29 07:49:37 +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
kris
d2a8535ebc Fixing r7470 (patch for ICMP ping + IPv6)--it stopped every IPv6 scan 2008-05-14 16:55:09 +00:00
fyodor
732c32a09e Quite if user tries ICMP echo/netmask/timestamp request ping with IPv6, sine we don't yet support it. Patch from Jah. 2008-05-12 03:04:01 +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
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
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
fyodor
29c912f394 URL change from http://insecure.org/nmap/* to http://nmap.org/* 2008-01-17 07:22:03 +00:00
kris
1a5657511f adding IPv6 support to RPC scan 2008-01-15 00:50:26 +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
0cdedc07fc reword error message 2007-11-14 22:58:37 +00:00
david
50c4981934 Remove the first-generation OS detection and nmap-os-fingerprints. 2007-11-03 01:31:02 +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
fyodor
8238243261 change Nmap version number to 4.22SOC8 in prep for next release; remove some useless defines 2007-10-29 00:51:45 +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
5b052e84dd NmapOps functions shouldn't call other NmapOps functions through the global NmapOps o variable (e.g. use af() instead of o.af() in NmapOps::ValidateOptions()). It didn't hurt anything as 'o' is the only NmapOps object though 2007-10-21 02:52:52 +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
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
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
8d74bbcd8a merge soc07 r4871:4884 and r4888 - renaming __FUNCTION__ to __func__ and changing hardcoded func names to __func__ 2007-08-11 04:06:09 +00:00
fyodor
58522c59f6 merge soc07 r4822 - Reduce the number of build dependencies. 2007-08-11 03:35:46 +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
kris
4fd4757e63 Disable OSScan as well if it's used with IPProto Scan 2007-05-21 22:29:10 +00:00
kris
89f6423b67 A few changes involving the use of -sV with other scan types [is the CHANGELOG entry useful?] 2007-05-21 19:14:26 +00:00
fyodor
9b28f5ecc5 typo fix 2007-02-28 21:03:24 +00:00
kris
3695115c65 Changed location of IP options + root privs check in NmapOps.cc. It's now just checked along with the other things that require root privileges, and now uses privreq instead just saying 'you must be root'. 2007-01-29 03:22:15 +00:00
kris
4d190f3751 Allow environment variable NMAP_UNPRIVILEGED to be equivalent to --unprivileged as NMAP_PRIVILEGED is to --privileged. 2007-01-12 02:31:47 +00:00
fyodor
b361685be8 NSE committed 2006-12-11 00:34:26 +00:00
fyodor
e4ee4d5e4c getting closer to 4.20ALPHA9 2006-10-14 01:25:43 +00:00
fyodor
25bbd2983d New dynamic number of OS tries, and --max-os-tries option 2006-10-02 03:21:40 +00:00