1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-22 07:29:01 +00:00
Commit Graph

5148 Commits

Author SHA1 Message Date
kris
1317675fb3 Document the status return value for nmap.resolve(). Patrik noticed the
omission.
2010-11-19 21:38:47 +00:00
patrik
68643a2946 applied patch from Thomas Buchanan containing bugfixes and some re-factoring
http://seclists.org/nmap-dev/2010/q4/447
2010-11-19 19:31:50 +00:00
ron
684c7e0229 Added credit for the new fingerprints 2010-11-18 23:36:41 +00:00
ron
d40bdc8139 Added fingerprints for WRT54g, Prinenergy Dashboard, and Adobe Acrobat Connect Pro 2010-11-18 23:35:27 +00:00
david
c0b8514b4d In realvnc-auth-bypass, check the status in socket receive operations
instead of checking for result == "TIMEOUT".
2010-11-18 22:54:16 +00:00
robert
f91c93dfee Improved the Uninstaller section so it deletes the new license files and doesn't warn if Nmap isn't present (useful if the other tools, such as Ncat, were installed separately). 2010-11-18 15:55:01 +00:00
robert
29d67ee8c3 Updated the Visual C++ 2008 Redistributable to the latest SP1 version to avoid Windows Update prompting for the SP1 update after installing the RTM with ATL update.
Added new functions to create the Nmap uninstaller and install the VC++ 2008 and 2010 redistributables in the appropriate sections. Previously we only created the uninstaller if the Nmap Core Files were selected, and we didn't install the VC++ files if Nping, Ncat and Ndiff were installed on their own.
2010-11-18 13:22:49 +00:00
patrik
fb8ae1ffd0 applied patch from Thomas Buchanan that fixes a bug in the upnp library that
would incorrectly report ports as open if the connection timed out.
2010-11-18 00:06:51 +00:00
ron
38f1689e82 Added a leading '/' to paths where it was missing before. 2010-11-17 23:57:17 +00:00
batrick
c5cfd3128e Fixed some whitespace|formatting and made a small improvement to the iterator. 2010-11-17 22:12:54 +00:00
david
1766507ecf Add a new http-php-version.nse version from a server that said:
X-Powered-By: PHP/5.1.6
2010-11-17 22:05:04 +00:00
batrick
856c6fc3c6 Removed some unnecessary returns. 2010-11-17 21:02:52 +00:00
ron
f4769f75e9 Fixed a bug in http-userdir-enum (was missing an argument to http.pipeline_add()) 2010-11-17 20:24:48 +00:00
david
78877af7e8 o [NSE] There is now a limit of 1,000 concurrent running scripts,
instituted to keep memory under control when there are many open
  ports. Nathan reported 3 GB of memory use (with an out-of-memory NSE
  crash) for one host with tens of thousands of open ports. This limit
  can be controlled with the variable CONCURRENCY_LIMIT in
  nse_main.lua. [David]
2010-11-17 19:31:24 +00:00
robert
7f36aa4ca4 Copy the VC++ 2008 Redistributable that's been added to support Zenmap. 2010-11-17 00:06:47 +00:00
fyodor
8e5f17c36b minor updates 2010-11-16 23:56:39 +00:00
robert
62894a15f0 Added the VC++ 2008 (RTM with ATL fix) Redistributable to support Zenmap as Python 2.6 onwards is built using VC++ 2008. This is required now that Nmap uses VC++ 2010 instead of VC++ 2008 SP1, as we were previously relying upon the files installed by the VC++ 2008 SP1 Redistributable. The Nmap setup file only installs the 2008 redistributable if Zenmap has been selected. 2010-11-16 21:01:20 +00:00
kris
2e838599c3 updating ip_is_reserved(): 105/8 allocated 2010-11-16 04:54:35 +00:00
tomsellers
5e25d02af4 Adding post scan script output to the nmap.xsl XML transform at
David's request.
2010-11-14 18:57:41 +00:00
tomsellers
d464a8228f Multiple changes to support new features and clean up presentation of existing data:
Added support for the pre-scan script data.  The output is formatted using HTML 'pre' tags
in order to maintain formatting.
    - the top menu entry is conditional and only appears if pre-scan data is present
    - the pre-scan script block is currently at the beginning of the page right after
      the scan summary

Changed host script and port script output to use 'pre' tags so that lengthy output, such 
as that from ssl-cert.nse  and snmp-win32-services will be readable.

Added title section for hostscript output
Added table headers for hostscript output
Added MAC vendor text to address section 

Fixed a bug in the port script output that caused it to only span 5 columns instead of 6.

Changed color of script output cells in port table as well as hostscript and prescan result
tables slightly to make visual parsing easier.

Changed nmap_xsl_version variable from 9b to 9c

Changed wording related to OS fingerprint being present even though the OS was positively identified.
This occurs when Nmap is run with higher levels of verbosity.

Change the OS guess accuracy percentage to use bold font.
2010-11-14 14:45:39 +00:00
david
cec33e3aad o The command line in XML output (/nmaprun/@args attribute) now does
quoting of whitespace using double quotes and backslashes. This
  allows recovering the original command line array even when
  arguments contain whitespace. [David]
2010-11-14 02:09:58 +00:00
fyodor
3c2b82100e reword an item to make it a bit more clear that the python and gtk upgrades are only needed if you want to build Zenmap and that all these upgrades are only needed if you want to compile Nmap yourself 2010-11-12 23:12:11 +00:00
david
5b010f927a o XML output now excludes output for down hosts when doing host
discovery only, except in verbose mode. This is how it already
  worked for normal scans, but the ping-only case was overlooked.
  [David]
2010-11-11 23:24:59 +00:00
david
fb0aa3f1e3 Add more http-passwd payloads from Ange Gutek. 2010-11-11 19:02:17 +00:00
david
908c222b82 Kill unused code left over from --interactive mode. 2010-11-11 04:46:38 +00:00
kris
e39eeea8ba Since r20267 (NSE Nsock maintenance), failures in raw IP sends from NSE cause
scripts to bail.  (This is why Ron saw a backtrace when path-mtu elicited an
EMSGSIZE [a separate issue I'm still working on] instead of path-mtu
recognizing the failure and resending with a smaller MTU like it would do
before.)  I'm changing this back to the original design of returning false to
scripts (just like connect-mode send failures).  

I've changed safe_error() in nse_utility.cc to support varargs.
2010-11-11 01:11:13 +00:00
patrik
734f938b04 o [NSE] Added a new Web Service Dynamic Discovery library (wsdd) and the two
scripts broadcast-wsdd-discover and wsdd-discover. [Patrik]
2010-11-10 22:35:13 +00:00
david
5b4a5434ad Update CHANGELOG with new Windows build version numbers and credit for Rob Nicholls and me. 2010-11-10 03:08:56 +00:00
david
cd6fa26efd Uniformity in win32 instructions. 2010-11-10 03:04:16 +00:00
david
7e8e4bf5b9 Update build instructions and build scripts for Python 2.7. 2010-11-10 03:00:01 +00:00
fyodor
6383d051d0 note a couple done tasks 2010-11-09 23:31:35 +00:00
david
69e1295384 Change the way ScriptResult::get_id and ScriptResult::get_output work to avoid
referencing deallocated memory.

The class was defined basically as follows:

class ScriptResult
{
private:
	std::string output;
public:
	std::string get_output() const
	{
		return this->output;
	}
};

The problem was when it was used like this, as in our script output
routines:

const char *s = sr.get_output().c_str();
printf("%s\n", s);

The reason is that the temporary std::string returned by get_output goes
out of scope after the line containing it, which invalidates the memory
pointed to by c_str(). By the time of the printf, s may be pointing to
deallocated memory.

This could have been fixed by returning a const reference that would
remain valid as long as the ScriptResult's output member is valid:

	const std::string& get_output() const
	{
		return this->output;
	}

However I noticed that get_output() was always immediately followed by a
c_str(), so I just had get_output return that instead, which has the
same period of validity.

This problem became visiable when compiling with Visual C++ 2010. The
first four bytes of script output in normal output would be garbage
(probably some kind of free list pointer). It didn't happen in XML
output, because the get_output-returned string happened to remain in
scope during that.
2010-11-09 19:47:18 +00:00
david
6f370e012d Whitespace. 2010-11-09 18:48:49 +00:00
david
9cfac77247 Typo and markup in nmap-install.xml. 2010-11-09 02:58:33 +00:00
fyodor
a31fd51bae Update the Windows section to more clearly note that you need 2010 version of Visual C++ and also describe how to do the build in this newer version (I don't even get a build menu in 2010 version). Also, discuss the option of checking out the source from svn rather than downloading a tarball 2010-11-08 23:44:57 +00:00
fyodor
396016b2cc Add an item for upgrading our Windows build systems to use Python 2.7 instead of 2.6 now that the dependency libraries seem to be available 2010-11-08 22:04:19 +00:00
david
40bce74299 Use the new gtk.Tooltip API instead of the deprecated gtk.Tooltips. This is
adated from a patch by Rob Nicholls. Since gtk.Tooltip was only introduced in
PyGTK 2.12, wrap it in a function that checks if the necessary function is
available.
2010-11-08 21:55:16 +00:00
robert
f91a6868c7 Updated the Nmap installer's description for "Nmap Core Files" to say Visual C++ 2010 instead of Visual C++ 2008 to match the included redistributable file. 2010-11-06 16:31:12 +00:00
ron
bfd642c6fb Removed a line that causes a lot of false positives 2010-11-06 07:34:32 +00:00
david
a92f1cb8a4 Update to firewalk.nse from Henri Doreau to use a more polymorphic style
of supporting multiple protocols.
2010-11-06 01:54:30 +00:00
david
ccce86a1a7 Add an http-passwd.root script argument. Patch by Ange Gutek. 2010-11-05 21:18:23 +00:00
robert
79ab71577a Updated the Visual C++ Redistributable package from 2008 to 2010 and modified the Windows installer to check the new registry keys that are created. This is to support David's update of the Nmap solution file to VC++ 2010. 2010-11-05 18:05:05 +00:00
ron
d73016e41f Added a bunch of fingerprints from @jhaddix 2010-11-05 16:16:54 +00:00
batrick
ca56c00d33 removed some unnecessary locals 2010-11-05 14:25:44 +00:00
batrick
c30cb92e81 Corrected and reformatted the raw packet I/O documentation. 2010-11-05 14:01:05 +00:00
patrik
e26eef6533 fixed typo intead -> instead [Patrik] 2010-11-05 10:10:36 +00:00
patrik
f61358ab28 fixed the following error:
./scripts/domino-enum-users.nse:113: variable 'filename' is not declared
stack traceback:
	[C]: in function 'error'
	./nselib/strict.lua:69: in function <./nselib/strict.lua:60>
	./scripts/domino-enum-users.nse:113: in function <./scripts/domino-enum-users.nse:66>
	(tail call): ?
[Patrik]
2010-11-05 10:07:50 +00:00
david
aca3abc84c Add to CHANGELOG:
o Made everything build with Visual C++ 2010. Thanks to KX for
  providing instructions.
2010-11-05 02:59:57 +00:00
david
134591c311 Update build docs to refer to Visual C++ Express 2010, not 2008. 2010-11-04 23:35:03 +00:00
david
d70d468881 Remove quotes around the OutputFile element contents in liblua for the Release
configuration too (was previously only in Debug).
2010-11-04 23:08:03 +00:00