1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-23 16:09:02 +00:00
Commit Graph

4571 Commits

Author SHA1 Message Date
david
3191e09595 Remove a duplicate paragraph in refguide.xml. The paragraph about port
selection wildcards was under the idle scan heading also.
2008-10-08 00:07:10 +00:00
david
c91f49ab80 Canonicalize an indexterm in scripting.xml. 2008-10-07 14:22:27 +00:00
sven
8f83450228 revert tonumber() conversion in stdnse.tohex() because tonumber() discards whitespace 2008-10-07 07:28:10 +00:00
fyodor
840b276b6c From Jason R. DePriest:
Fixed it to normalize the line endings before replacing them with
commas and I have it remove extra spaces.
2008-10-07 03:54:46 +00:00
batrick
2c6554a435 Updated stdnse.tohex() to coerce strings to numbers if possible for the first
argument. That is, the first argument is interpretted as a number if possible.
2008-10-07 02:24:31 +00:00
batrick
f71135f796 Changed stdnse.tohex to no longer create tables unnecessarily if options
are ommitted.
2008-10-07 02:22:17 +00:00
fyodor
84bb81d6ee 1-line fix from Jah:
The attached fixes an error in ipOps.ip_to_bin() when a string is passed
to stdnse.tohex().  This should always be (and should always have been)
a number.
2008-10-07 02:17:08 +00:00
fyodor
9e4772dc50 Improvements to the nsedoc comments by Arturo 'Buanzo' Busleiman 2008-10-07 00:10:40 +00:00
sven
6057449ae0 add comments to stdnse.tohex() 2008-10-06 09:52:55 +00:00
sven
2dd98df5b9 don't split and concat hex string in stdnse.tohex() if no separator is given 2008-10-06 09:29:27 +00:00
david
01ca5f9188 Encapsulate the redirect decision rules in showHTMLTitle.nse into their own
function.
2008-10-06 00:03:33 +00:00
david
ac19339d5f o showHTMLTitle.nse can now follow (non-standard) relative redirects,
and may do a DNS lookup to find if the redirected-to host has the
  same IP address as the scanned host. [Jah]
2008-10-05 23:46:22 +00:00
david
342272eca7 Revert r10484, which added checks for GTK+ and PyGTK in configure. The checks
failed if a user didn't have the development versions of those libraries
installed; in particular, they tried to compile a GTK+ program and looked for
pkg-config's .pc files. It is better to err on the side of building Zenmap when
it may not be supported than not building it when it may in fact be supported
(which was the previous behavior anyway). See discussion at
http://seclists.org/nmap-dev/2008/q4/0054.html.
2008-10-05 00:42:25 +00:00
david
ae7455279e Add a new msrpc.lua module, plus new scripts smb-enumdomains.nse,
smb-enumshares.nse, and smb-enumusers.nse. Also enhance the netbios.lua and
smb.lua modules. Remove the smb-enum.nse script. All these changes are from Ron
Bowes.
2008-10-04 21:58:39 +00:00
david
13663fb649 Have configure check for GTK+ 2.8.0 and PyGTK 2.8.0 in addition to Python 2.4
when deciding whether to build Zenmap. Those versions are required for the
Cairo functions used by RadialNet.
2008-10-04 01:24:38 +00:00
sven
565a5ee3ed o Enhanced the tohex() function in the NSE stdnse library to support strings
and added options to control the formatting. [Sven]
2008-10-03 19:55:58 +00:00
david
7f9bac76b2 Make the buffer for formatting the SCAN.DS test value in an OS fingerprint a
little bit bigger, so some seriously wrong distances aren't truncated. The
buffer size used to be 8, which couldn't hold an observed network distance of
-190:
	%DS=-19\0
	01234567
I increased it to 10.
2008-10-03 18:46:22 +00:00
sven
83ec6aa665 It is unnecessary to prefer targetname over the ip in the request()
function since host is only passed to socket:connect() which would have to
resolve the targetname back to the ip.
2008-10-03 17:17:45 +00:00
david
d8e40a3546 Add Sven's modifications to http.lua. In his words:
It is unnecessary to prefer targetname over the ip in the request()
function since host is only passed to socket:connect() which would have to
resolve the targetname back to the ip.
I've rewritten the header/body separation to use a single regex which
should do the same as your code and since the first match is non-greedy
should always prefer the shorter version.
I've done something similar for the header splitting.
I've removed the type checks for header and body since they are always
strings.
2008-10-03 15:43:38 +00:00
david
ebaf939f5f Make the http NSE module better handle different delimiters in the headers of
messages (and in the body when chunked encoding is used). The patch is from
jah.
2008-10-03 01:00:55 +00:00
david
168e38357e When launching Zenmap's help, properly convert the pathname of the local help
file to a URL, using "file:///C|/Program Files/..." rather than
"file://C:\Program Files\...". This is apparently needed by some web browsers.
2008-10-02 17:12:28 +00:00
david
1b4782d9df Add a missing word "script" in CHANGELOG. 2008-10-02 17:06:47 +00:00
david
08c98a26e6 Update HTTP_open_proxy.nse to use Google Web Server's changed header field:
"Server: gws" instead of "Server: GWS/". The patch is based on one from Vlatko
Kosturjak. Sven suggested a better portrule.
2008-10-02 16:11:22 +00:00
david
62d840d8ce In nmap-os-db, change the OS family of a couple of IOS devices from "12.2" to
"12.X".
2008-10-01 21:58:16 +00:00
sven
1444e02a86 apply Matt Selsky's patch for ssh version detection signatures to properly detect daemons only supporting protocol version 2 2008-10-01 21:05:03 +00:00
david
87c6a7ef50 Make Zenmap's Nmap output viewer automatically scroll. 2008-10-01 20:49:18 +00:00
fyodor
f2e3648470 misc. changes, most of which came from review feedback by Dan Henage 2008-09-30 09:04:53 +00:00
fyodor
d14e9345b3 Update a bunch of Nmap scan examples (sometimes required rescanning and/or changing surrounding text 2008-09-30 07:29:03 +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
3517f3965e Change the test for the failure of strtol in the OS scan point-matching code.
Previously the code checked for a zero (or negative) return value, but I want
to assign some tests a value of 0 during OS scan refinement. Now it checks
errno, makes sure the entire value was consumed, and errors on negative
numbers. In addition to allowing values of 0, this change catches bogus values
where garbage follows the number.
2008-09-26 19:04:25 +00:00
fyodor
d16e94534f Removed a comment which simply declared /* WANKER ALERT! */ for no good reason. 2008-09-26 06:41:05 +00:00
david
ecd2b372c1 Make the refguide.xml indexentry for "traceroute" preferred. 2008-09-25 15:14:59 +00:00
david
78e5ae0432 Use an – rather than a hyphen to separate a couple of numeric ranges in
docs/refguide.xml. It doesn't break the man page for me.
2008-09-25 15:10:58 +00:00
kris
74e98e3beb o Reduced memory consumption for some longer running scans by removing
completed hosts from the lists after two minutes.  These hosts are
  kept around in case there is a late response, but this draws the
  line on how long we wait and hence keep this information in memory.
  See http://seclists.org/nmap-dev/2008/q3/0902.html for more.
2008-09-24 19:37:06 +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
sven
abd40e3f96 make --script-updatedb skip scripts producing load errors 2008-09-24 07:39:28 +00:00
david
466a760e67 Remove a few remaining references to NMAPLIBEXECDIR, where compiled NSE modules
used to be installed.
2008-09-23 23:25:40 +00:00
david
41b35795ba Remove ndiff from the export-% rule as it's not an external anymore. 2008-09-23 22:09:14 +00:00
david
23ba187869 Revert r10342, the alignment of columns in nmap-services. I didn't realize it
would increase the size of the file so much.
2008-09-23 22:02:25 +00:00
david
9b01592e12 Update the documentation for the -F option in the reference guide. 2008-09-23 21:19:16 +00:00
david
6e79e2c419 Regenerate nmap-services from nmap-services-all; this is to align the columns.
This also brings in a few new port names and some adjusted frequencies.
2008-09-23 18:52:46 +00:00
batrick
0e984d85b7 Removed some unnecessary code. 2008-09-23 13:19:13 +00:00
batrick
17020acc26 Missing dependencies (such as OpenSSL) are no clutter nmap output (other run
time errors are not affected by this change). If verbose is 4 or greater than
a simple message is output saying what file could not be loaded due to X
library missing. If debugging is set, then the previous error message is
used.
2008-09-23 11:06:22 +00:00
sven
0b0bdc14b4 adjust zero one tech printserver matchline to match more models 2008-09-21 13:33:15 +00:00
fyodor
131dbdbcf0 move --reason to the output section 2008-09-21 09:40:47 +00:00