1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-03 13:19:04 +00:00
Commit Graph

6918 Commits

Author SHA1 Message Date
patrik
d9b67a884b Added missing author and licensing information. 2012-05-20 14:45:16 +00:00
david
df516bc398 Fix typo when self.root is not None. 2012-05-19 19:31:10 +00:00
patrik
322ed971a2 o Added the script distcc-CVE-2004-2687 that checks and exploits a remote
command execution vulnerability in distcc. [Patrik Karlsson]
2012-05-19 17:39:53 +00:00
patrik
af950450b7 o Added two new scripts mysql-query and mysql-dump-hashes, which add support
for performing custom MySQL queries and dump MySQL password hashes. [Patrik
  Karlsson]
2012-05-19 17:33:41 +00:00
aca
c6341d2245 Fixed a typo in the description. 2012-05-19 16:36:59 +00:00
patrik
425ced35ab o Improved the mysql library to handle multiple columns with the same name,
added a formatResultset function to format a query response to a table
  suitable for script output. [Patrik Karlsson]
2012-05-19 12:23:41 +00:00
fyodor
660cb42825 fix a tiny typo 2012-05-19 08:37:25 +00:00
david
b33dd2d1da Don't use getuid and getgid on Windows. 2012-05-19 01:15:36 +00:00
david
402960a2a7 Friendlier error message when Zenmap modules can't be imported. 2012-05-18 16:41:37 +00:00
david
0283d41798 Replace INSTALL_LIB on installation.
This restores code removed in r28342, which rewrites sys.path to include
the directory in which the Zenmap modules are installed. This is needed
to run the program without changes to PYTHONPATH when the installation
directory is not among the Python interpreter's default search paths.
(/usr/local/lib/python2.7/site-packages/ or a user's home directory are
common cases.) A difference is that now we make sure that the directory
we are adding is not writable by any other users, to avoid installation
mistakes like Debian bug #663217.
2012-05-18 16:34:40 +00:00
david
263f57e87b Placeholder for sys.path augmentation. 2012-05-18 16:34:39 +00:00
david
a177d86601 add is_secure_dir function. 2012-05-18 16:34:38 +00:00
batrick
3498086354 Corrected buggy formatting from lua-format. David had used the Lua formatter in
r28582.
2012-05-18 03:59:14 +00:00
fyodor
5efa8bccee Improve the nsedoc for duplicates script slightly. The attempt to make a list wasn't rendered as one by nsedoc, so I just switched it to a comma-separated list for now 2012-05-18 02:48:13 +00:00
david
b838110933 Add more rationale for not installing suid root. 2012-05-18 01:27:15 +00:00
david
8d621f91aa Show a warning if we are running setuid or setgid. 2012-05-18 01:27:14 +00:00
david
824834bbf3 Expand an OS fingerprint. 2012-05-17 22:51:25 +00:00
david
37d623d070 Limit the errors that cause Sendto to sleep and retry.
Sendto has logic to automatically sleep and retry a send if it fails.
Fyodor tells me that it was once necessary because of some transient
buffer shortage, though we can't remember the exact error it was in
response to.

The retry looks as though it has been slowly growing a list of
exceptional error codes for which sleeping is not done:
	EPERM EACCES EMSGSIZE EADDRNOTAVAIL EINVAL
The latest was EMSGSIZE in r19378.

I changed this to only sleep on specific errors. Not knowing what the
original error was, I have guessed
	ENOBUFS ENOMEM
2012-05-17 22:04:13 +00:00
kroosec
9d37d8bdca Added fallback to GET + body grepping for servers that return non 404 status codes for inexisting files. 2012-05-17 11:46:00 +00:00
david
70d728ffcf Make "failed to determine route" a warning, not a fatal error. 2012-05-16 23:50:03 +00:00
kroosec
1e936a2eda Added http-drupal-modules.nse to script.db 2012-05-16 08:10:27 +00:00
fyodor
0e73946e9b Add an entry about our awesome Summer of Code team 2012-05-16 07:57:16 +00:00
fyodor
29f4bb2f34 Add a trivial task 2012-05-16 07:44:47 +00:00
kroosec
1baf0077b0 CHANGELOG for http-drupal-modules.nse 2012-05-16 00:18:57 +00:00
kroosec
ced6a8cc01 o [NSE] Added the script http-drupal-modules, which enumerates the installed
Drupal modules using drupal-modules.lst. [Hani Benhabiles]
2012-05-16 00:14:16 +00:00
fyodor
affa202a75 Add a todo entry about fixing NSE pipelining 2012-05-15 21:16:49 +00:00
david
16334a19f6 Reindent http-fingerprints.lua using lua-format.
lua-format is Patrick's script and the reformatted file was done by
stripes.
2012-05-15 04:00:57 +00:00
david
fba5e4307a Fix backslash escapes in Windows paths in http-fingerprints.lua.
With the luac from Lua 5.2.0 I got this error:
luac: http-fingerprints.lua:2781: invalid escape sequence near '\.'
2012-05-15 03:24:35 +00:00
david
ab293593f1 CHANGELOG for http-vuln-cve2012-1823.nse. 2012-05-15 00:08:32 +00:00
fyodor
0eae74e0c0 add a task about detecting suid operation and printing a warning, and also note a finished task 2012-05-14 21:57:11 +00:00
aca
85066093de Rewrite of ftp-brute.nse script
Rewriten original ftp-brute.nse script to use 
brute library to perform password guessing.
2012-05-14 21:53:37 +00:00
patrik
60c62a3514 o [NSE] Added the script dict-info, which retrieves information from a
DICT server, by issuing the SHOW SERVER command. [Patrik Karlsson]
2012-05-14 21:37:39 +00:00
patrik
b1fa1f567c o [NSE] Added the script gkrellm-info, which displays information retrieved
from the GKRellm monitoring service. [Patrik Karlsson]
2012-05-14 21:34:01 +00:00
patrik
2a3a2520fa o [NSE] Added the script ajp-request, which adds support for creating custom
Apache JServer Protocol requests. [Patrik Karlsson]

o [NSE] Added the script ajp-brute, which enables password brute force auditing
  against the Apache JServ Protocol service. [Patrik Karlsson]
2012-05-14 21:30:24 +00:00
patrik
aeb0cbb546 Added more AJP methods 2012-05-14 21:23:06 +00:00
patrik
45164ba18c Changed so that the stdnse.get_hostname method is used to determine the contents of the
Host request header.
2012-05-13 12:16:38 +00:00
david
c5cf1ab6e2 ru.po typo correction from Dmytro Soloviov. 2012-05-13 09:04:30 +00:00
robert
bc73457e5f Updated the hash information in http-php-version to include PHP/5.4.1-5.4.3 and 5.3.11-5.3.13. 2012-05-13 08:43:50 +00:00
david
4c5022b100 Fix the fd6 condition for SIOCGLIFFLAGS. 2012-05-13 01:20:56 +00:00
david
7cfee5944c Don't let Solaris IPMP devices appear as Ethernet. 2012-05-12 23:27:49 +00:00
patrik
2842c85900 updated script documentation 2012-05-11 17:15:07 +00:00
david
01a613f7a8 Typo. 2012-05-11 15:38:05 +00:00
david
25fdaf95f3 Use a large initial buffer in the call to GetAdaptersAddresses.
GetAdaptersAddresses is supposed to return ERROR_BUFFER_OVERFLOW and set
len to the required size when len is too small. So normally we would
call the function once with a small len, and then again with the longer
len. But, on Windows 2003, apparently you only get ERROR_BUFFER_OVERFLOW
the *first* time you call the function with a too-small len--the next
time you get ERROR_INVALID_PARAMETER. So this function would fail the
second and later times it is called.

So, make the first call using a large len. On Windows 2003, this will
work the first time as long as there are not too many adapters. (It will
still fail with ERROR_INVALID_PARAMETER if there are too many adapters,
but this will happen infrequently because of the large buffer.) Other
systems that always return ERROR_BUFFER_OVERFLOW when appropriate will
enlarge the buffer if the initial len is too short.
2012-05-10 21:29:54 +00:00
david
cc0f2e1e54 Don't use LIFC_UNDER_IPMP if it's not defined. 2012-05-10 20:45:30 +00:00
aca
e5b0d24607 Small patch to rdp-vuln-ms12-020.nse
Windows resets the connection if we try to reconect too fast to the same port after doing a SYN scan and not completing the handshake. In my tests, sleep values above 0.1s prevent the connection reset so it's set to 0.2 .
2012-05-08 20:51:16 +00:00
paulino
96c6cd7780 Adds http-vuln-cve2012-1823.nse - This script detects PHP-CGI installations that are vulnerable to CVE-2012-1823. This vulnerability is critical and it allows attackers to retrieve source code and execute code remotely. 2012-05-08 05:56:04 +00:00
david
49aafa4a38 Use LIFC_UNDER_IPMP when enumerating Solaris interfaces.
An IPMP interface is a special kind of interface made up of other
interfaces. The other interfaces are hidden by default unless this flag
is passed to ioctl(SIOCGLIFCONF). This allows me to scan over an IPMP
interface in a simple setup.
2012-05-07 21:41:57 +00:00
fyodor
8742d23477 add a feature creeper task idea for resolving compile warnings 2012-05-07 21:06:51 +00:00
patrik
08d35bad20 Added IP information to the returned result and added support for collecting multiple
responses.
2012-05-07 20:16:15 +00:00
patrik
bc7f0106a2 o [NSE] Added the script broadcast-tellstick-discover, which discovers Telldus
Technologies TellStickNet devices on the LAN. [Patrik Karlsson]
2012-05-07 20:01:25 +00:00