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

1728 Commits

Author SHA1 Message Date
david
00cc96ba95 Add ipv6-ra-flood script by Adam Števko.
http://seclists.org/nmap-dev/2012/q2/250
https://bitbucket.org/xenol/nse-scripts/raw/6d3ad48e6251/ipv6-ra-flood.nse
2012-09-20 00:50:05 +00:00
david
9f0f8e33c0 Change hbase-region-info URL to /rs-status.
http://seclists.org/nmap-dev/2012/q3/903
2012-09-18 21:22:14 +00:00
david
874bbe28cd Pass the dst argument to existing calls to nmap.ip_send. 2012-09-15 17:56:21 +00:00
david
fdc2f96c8c Use http.get(host, port) in hadoop scripts.
As well as being shorter, this prevents connecting using a different
address family (e.g., IPv6 rather than IPv4) compared to doing this:
  http.get(host.targetname, port.number)
Patch by John Bond.

http://seclists.org/nmap-dev/2012/q2/637
2012-09-15 15:05:13 +00:00
dmiller
f97c8db5e8 Correct output for ssl-enum-ciphers against non-ssl
ssl-enum-ciphers was producing output against non-ssl services, listing
"least strength: strong" when there was no cipher matched. Fixed to
return nil in this case, and to clearly indicate when a protocol is
supported but does not support any of our ciphers (a very unlikely
situation! Had to artificially reduce attempted ciphers to test.)
2012-09-14 21:06:46 +00:00
dmiller
2f36d0b968 Fix date handling in ssl-cert
Was crashing on unparseable dates (example: "2147483647Z"). Now the
exact string is placed in structured output when it cannot be
normalized. Also, the structured-format timestamp is used for Normal
output for consistency; no timezone offset was previously displayed.
2012-09-13 20:23:07 +00:00
david
5cc7049402 Add structured output to http-auth.nse. 2012-09-13 03:01:18 +00:00
robert
a9d060cb43 Prevent tftp-enum from incorrectly setting the port as closed when an error occurred (e.g. timeout when port is filtered). 2012-09-12 09:27:51 +00:00
david
ba88cb4f5d Check for received packet in rpc-grind.nse.
The script was checking the returned data, but not the status. When
status is false, data is actually an error message. So in case of a
timeout, the script was receiving nil, "TIMEOUT" and interpreting
"TIMEOUT" as a response from the server. It looked like this:

Discovered open port 1434/udp on 127.0.0.1
NSE: rpc-grind: RPC checking function response data is not RPC.
NSE: Target port 1434 is not a RPC port.

This was reported by Christopher Clements.
http://seclists.org/nmap-dev/2012/q3/685
2012-09-11 00:39:04 +00:00
paulino
5071a66330 Fixes typo in output. 2012-09-10 23:33:14 +00:00
henri
f9881bab18 In hostrule: return false if mountport is nil (prevents from crashing when accessed as a table, a couple lines below). 2012-09-10 14:45:21 +00:00
henri
e255be0990 In hostrule: return false if mountport is nil (prevent from crashing when accessed as a table, a couple line below). 2012-09-10 14:11:38 +00:00
david
4d6f81122c Better break down structured output in smb-os-discovery.
smb.get_os already returns something that is fairly well structured, so
basically return that. Keep the "os" and "lanmanager" fields separate,
though they are combined as "os (lanmanager)" for normal output. Combine
"time" and "timezone" into a single "date" output.
2012-09-08 17:05:39 +00:00
david
87bce81b8c Use stdnse.format_timestamp in scripts that output structured dates. 2012-09-08 16:09:15 +00:00
henri
f366c0d191 Don't always assume that 'safe=1' was set. Added a check for 'unsafe' in ms08-67 2012-09-08 09:36:25 +00:00
paulino
ed65dd66d3 Removes the script from the "safe" category. 2012-09-07 23:44:58 +00:00
paulino
d7234e2582 Renames http-method-tamper to http-vuln-cve2010-0738 and adds the new version of http-method-tamper.
The new version improves the detection mechanism to cover PHP environments with .htaccess files and adds spidering to locate password protected resources automatically.
2012-09-07 23:42:39 +00:00
dmiller
00e37443ed Update @output luadoc on ssl-date 2012-09-07 16:39:02 +00:00
dmiller
a456186e77 Keep delta readable in Normal output
per http://seclists.org/nmap-dev/2012/q3/756
2012-09-07 16:37:47 +00:00
dmiller
b8604e066c ssl-date date formatting issues
Fix date format string to format as UTC (prepend "!") instead of local
time. Also changed "offset" xmloutput elem to "delta" to match http-date
2012-09-07 15:18:33 +00:00
robert
1a726ba337 Updated hashes to include PHP 5.3.15, 5.3.16, 5.4.5 and 5.4.6. 2012-09-07 10:03:05 +00:00
henri
f35cf8b93a Fixed indentation. 2012-09-05 20:55:42 +00:00
henri
902000afad Report an error instead of crashing when pipeline_go() returns nil. 2012-09-05 20:55:04 +00:00
patrik
13411ab6d1 Fixed a bunch of errors related to inproper responses from webservers. 2012-08-31 15:17:14 +00:00
patrik
b14a8518a3 replaced try/catch with silent failure 2012-08-31 14:59:25 +00:00
dmiller
e5129cf8bf Update ip-geolocation-geobytes for structured output
Also fixed error handling as reported here:
http://seclists.org/nmap-dev/2012/q3/693
2012-08-31 11:46:44 +00:00
aca
c13d7c719a Added msrpc-enum script and msrpc lua changes 2012-08-31 10:00:54 +00:00
dmiller
9c199916b8 ssl-known-key: return if sslcert fails 2012-08-30 23:29:06 +00:00
patrik
fe25ec912f fixed bug that would result in a crash when the browser service would return
an empty result.
2012-08-30 18:39:49 +00:00
patrik
6c97e0721d nse-check-globals cleanup 2012-08-29 05:42:27 +00:00
patrik
448bb5a71b fixed a bug in a loop where the script would wait for a condition that was
supposed to be signalled by other threads which were no longer running.
2012-08-29 05:37:56 +00:00
dmiller
c71478d91f Fix interfaces bug in broadcast-listener
Reported here: http://seclists.org/nmap-dev/2012/q3/672
2012-08-28 23:07:28 +00:00
kroosec
2f21e49cfb Updated http-drupal-modules documentation. 2012-08-25 17:31:53 +00:00
kroosec
e3db186435 xml output support for http-drupal-modules.nse 2012-08-25 14:02:27 +00:00
aca
fd32aec639 Merged http-slowloris-check 2012-08-24 09:19:30 +00:00
patrik
a49667aa02 Reverted bad commit to http-title 2012-08-22 17:11:10 +00:00
patrik
a18d0b2ff0 nse_check_globals cleanup 2012-08-18 07:10:27 +00:00
dmiller
a329909fdf Update nfs-{showmount,statfs} to new rpc-grind 2012-08-18 04:07:11 +00:00
dmiller
592f31fa0f Make nfs-ls work with new rpc-grind
rpc-grind script puts version information in a different place. Also
switched from using file-local variables to host-registry entries for
nfs and mount ports and versions. I'm pretty sure the old way would have
failed on scans with more than one NFS version on separate machines.
2012-08-18 03:32:52 +00:00
dmiller
4728d7437d Fixes to rpc-grind
NSE: rpc-grind Connect(): RPC library does not support: nil protocol
NSE: rpc-grind Connect(): RPC library does not support: rpcbind version
81578896

These errors caused by ChkProgram and ChkVersion called from
rpc.Comm.Connect. Added a dummy program in rpc-grind and a check for
self.checkprogver in ChkVersion, and everything works great.

Also fixed portrule to only fail if the non-rpcbind service name was not
the result of table lookup. Was failing on port 2049 (in nmap-services
as "nfs") without -sV.
2012-08-18 03:32:50 +00:00
dmiller
f8335fc3f0 Update ssl-enum-ciphers to use structured output
This includes a minor hack to stringify a structure with sorted keys.
This should probably be moved to a formatting library when one is
committed.
2012-08-17 20:14:46 +00:00
kroosec
b1990f2b33 Added rpc-grind.nse 2012-08-17 18:44:35 +00:00
patrik
4157e63c9e nse_check_globals fixup 2012-08-17 05:37:59 +00:00
dmiller
6294398668 Update ssl-date to use structured output 2012-08-16 22:13:33 +00:00
dmiller
9fbd30f191 Use ISO8601 time for smb-os-discovery 2012-08-16 15:46:37 +00:00
dmiller
74a2168a15 Use base64-encoded key, not double-encoded type and key 2012-08-16 14:46:40 +00:00
david
8206146d2a Put just the base64-encoded key in the ssh-hostkey "key" field.
Previously it had the key type prepended (already available in the
"type" field).
2012-08-16 11:59:02 +00:00
david
e96b7d55fb Use key "type" not "algorithm" in ssh-hostkey structured output.
"algorithm" seems to be a mapping computed by our ssh2 library:
	ssh-rsa → RSA
	ssh-dss → DSA
"type" is just the string "ssh-rsa" or "ssh-dss". "Type" seems to be the
terminology used in the ssh-keygen man page.
2012-08-16 11:58:40 +00:00
david
7ebf300c0c Use binary strings, not hex strings, as keys in ssl-known-key. 2012-08-16 10:51:51 +00:00
david
600ef58aa0 Don't check whether cert:digest succeeded.
The digest isn't something stored in the cert that may or may not be
present; it is calculated locally.
2012-08-16 10:51:37 +00:00