1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-18 21:49:01 +00:00
Commit Graph

4399 Commits

Author SHA1 Message Date
fyodor
1a0fb588ec update nsedoc to reflect current name 2010-03-29 01:29:59 +00:00
fyodor
6493b8ad39 add task 2010-03-29 00:51:07 +00:00
fyodor
7e3748f197 add another task to consider 2010-03-28 23:48:07 +00:00
david
36927f0810 Fix a problem in the changes to the openssl NSE library made in r17002
found by Patrik Karlsson. The second and subsequent times we call
EVP{Encrypt,Decrypt}Init_ex, we have to pass NULL for the type argument.
This allows setting to accumulate from previous calls.
2010-03-28 21:18:02 +00:00
patrik
a646a2ec60 o [NSE] Changed and documented the name of the maxfiles argument used
to limit output in the nfs-dirlist script.
2010-03-28 09:26:58 +00:00
fyodor
eef02370cf new task: consider memory usage audit for zenmap 2010-03-27 22:33:07 +00:00
david
8bc5135d93 When iterating over the interface list on systems that have sa_len, only
allow the sa_len to increase the size of the current structure, not
decrease it below sizeof(struct ifreq). Doing it this way makes it work
on NetBSD. This technique more or less matches that used in Unix Network
Programming, 3rd Edition, section 17.6. The old implementation was
likely incorrect, though it happened to work on FreeBSD.
2010-03-26 22:11:30 +00:00
fyodor
34d65139d0 Add script scan results parsing task 2010-03-26 20:54:54 +00:00
fyodor
888d23d2db Nmap package on NetBSD is no longer out of date! Let's hope they stay current, at least on the major platforms. 2010-03-26 18:34:51 +00:00
fyodor
2b46d7f5a3 Add zenmap os icon art task 2010-03-26 08:19:15 +00:00
david
a0b011fa84 Increase the size of passwords.lst from 201 to 5000 entries. 2010-03-25 02:57:56 +00:00
david
15dbb78266 o [NSE] The unpwdb library now has a default time limit on the
usernames and passwords iterators. This will prevent brute force
  scripts from running for a long time when a service is slow. These
  new script arguments control the limits:
    unpwdb.userlimit  Limit on number of usernames.
    unpwdb.passlimit  Limit on number of passwords.
    unpwdb.timelimit  Time limit in seconds.
  Pass 0 for any of these limits to disable it. [David]
2010-03-24 17:36:41 +00:00
fyodor
364ecfca39 Fixed a bug which lead to libpcap ./configure errors on Solaris which
looked like:

./configure: line 6651: syntax error near unexpected token `in'
./configure: line 6651: `       for ac_header in'
configure: error: ./configure failed for libpcap

Example: http://seclists.org/nmap-dev/2010/q1/444

The problem is a bogus empty test in the libpcap/configure.in.  It
was actually fixed by libpcap in SVN back in 2008, but there hasn't
been a release since then :(.  They seem to still be actively developing,
just not making releases.  Sigh.
2010-03-24 05:48:02 +00:00
david
ede6b224f5 Make it a fatal error if you try to combine traceroute with idle or
connect scan, IPv6, or non-root. Previously it only printed a warning
and disabled traceroute, which was easy to miss until the scan finished.
2010-03-24 01:12:58 +00:00
fyodor
f685111f8a Changes from chat w/David 2010-03-24 00:22:31 +00:00
david
d375aa25e9 Print a "TRACEROUTE" header for directly connected hosts, even though it
lacks a probe specification like "(using proto 1/icmp)".
2010-03-23 23:38:34 +00:00
david
2684b78ce5 In traceroute, separate the directly connected targets from the rest
before starting. There is a special function that does a trace of
directly connected targets without sending any packets, just by filling
in one hop directly to the target. The traceroute code was only checking
whether the first target in the group was directly connected, and if it
was, it assumed all of them were. Now it filters the list into two and
calls traceroute_direct on one and traceroute_remote on the other.
Fyodor discovered this problem today.
2010-03-23 23:30:36 +00:00
david
cb22a8a788 Add mailing list links to script review TODO items. 2010-03-23 20:24:57 +00:00
david
4671c2db54 Add some more pending script review to TODO. 2010-03-23 20:06:51 +00:00
kris
ef61857d6c Mention the use of the NSE raw IP functionality in the qscan.nse log entry
since it's still fresh
2010-03-22 12:32:59 +00:00
fyodor
85217dea98 scan stats ideas 2010-03-22 05:29:41 +00:00
david
b63a586c40 Changes to smtp-enum-users.nse from Duarte Silva. The
smtp-enum-users.method script argument was changed to
smtp-enum-users.methods and now takes an array. 252 and 550 error codes
are handled now. In verbose mode, the method used is included in the
output.
2010-03-22 04:13:08 +00:00
david
192d6336fd Patch to smtp-open-relay.nse from Duarte Silva: show which and what
fraction of tests passed.
2010-03-22 04:09:37 +00:00
david
c9e759fe0b Changes to ssl-enum-ciphers from Mak Kolybabi. This goes back to a
slower one-at-a-time enumeration method that has proved to be more
robust. Other changes:
- Fixes the "malformed packet" bug.
- Treats RSTs as rejections, not fatal errors.
- Adds some obsolete ciphers that were requested.
  - SSL_RSA_FIPS_WITH_3DES_EDE_CBC_SHA
  - SSL_RSA_FIPS_WITH_DES_CBC_SHA
- Adds some other cipher definitions.
  - TLS_DHE_DSS_EXPORT1024_WITH_DES_CBC_SHA
  - TLS_DHE_DSS_EXPORT1024_WITH_RC4_56_SHA
  - TLS_DHE_DSS_WITH_RC4_128_SHA
  - TLS_RSA_EXPORT1024_WITH_DES_CBC_SHA
  - TLS_RSA_EXPORT1024_WITH_RC2_CBC_56_MD5
  - TLS_RSA_EXPORT1024_WITH_RC4_56_MD5
  - TLS_RSA_EXPORT1024_WITH_RC4_56_SHA
2010-03-22 03:26:56 +00:00
fyodor
8a496e221a Add some ideas from Ron Bowes 2010-03-21 21:27:40 +00:00
kris
918a1bb909 o [NSE] Added the qscan script to repeatedly probe ports on a host to
gather round-trip times for each port.  The script then uses these
  times to group together ports with statistically equivalent RTTs.
  Ports in different groups could be the result of things such as port
  forwarding to hosts behind a NAT.  This is based on work by Doug
  Hoyte. [Kris]
2010-03-21 20:05:31 +00:00
patrik
dd9a237fe2 o [NSE] Added RPC library and three new NFS scripts. Modified the rpcinfo and
nfs-showmount scripts to use the new library. The new scripts are:
  - nfs-acls shows the owner and directory mode of NFS exports
  - nfs-dirlist lists the contents of NFS exports
  - nfs-statfs shows file system statistics for NFS exports
  [Patrik]
2010-03-21 17:56:17 +00:00
david
e72ecb11ac Fix spelling neccessary -> necessary. 2010-03-20 03:59:31 +00:00
kris
d503d4042b Print a message (once) if ipidseq.nse doesn't run for lack of privileges 2010-03-19 16:55:01 +00:00
kris
eca6defda6 a couple more __func__ changes 2010-03-19 05:21:06 +00:00
kris
9f979c6da8 use __func__, and fix space in output 2010-03-19 05:11:58 +00:00
kris
a4d9644b19 Use targetipstr() instead of NameIP() in places so output is like
192.168.10.14:21

instead of

	hostname (192.168.10.14):21
2010-03-19 05:03:39 +00:00
kris
7c384d480f o Fixed the Idle Scan (-sI) so that scanning multiple hosts doesn't
retest the zombie proxy and reinitialize all of the associated data
  at the beginning of each run. [Kris]

The underlying code checking for this and for changing proxies goes all the
way back to r1486 (2002) and presumably before, but lastproxy was never filled
in and so was nonfunctional.
2010-03-18 06:21:05 +00:00
david
b7b14216e2 Add jdwp-version.nse from Michael Schierl. 2010-03-18 00:08:30 +00:00
david
ff69b9722e Add smtp-enum-users to script.db. 2010-03-18 00:08:07 +00:00
patrik
53460a9682 o [NSE] Fixed mysql-brute.nse error that would cause brute-forcing to fail
if password contained a format string. Fixed a problem with SSL support
  detection in mysql.lua library. [Patrik]
2010-03-17 09:30:26 +00:00
david
68f3bca589 Add new packaging of x64 WinPcap drivers from Rob Nicholls. He observed that
64-bit applications wouldn't work using Nmap's installed WinPcap. This fixes
that.
2010-03-17 05:19:08 +00:00
david
91b2aa680b Regenerate passwords.lst from the combination of these databases:
faithwriters, hotmail, myspace, phpbb, and rockyou. I kept the output at
200 lines for now until we have more comprehensive limits on the unpwdb
module.

The only password that didn't come straight out of the databases was the
empty password. I added it manually at the top. The previous version of
passwords.lst had it too.
2010-03-17 00:25:30 +00:00
fyodor
c6337ee9af Latest TODO items 2010-03-16 22:43:38 +00:00
david
c1eeb7bf8c Update to smtp-open-relay.nse from Duarte Silva. Minor changes to the
output format.
2010-03-16 15:26:24 +00:00
fyodor
537a65d7d5 Just update an out-of-date (but was still working due to redirection) URL 2010-03-16 03:19:47 +00:00
david
181bb7ca93 Check the key and iv length before giving them to OpenSSL in l_encrypt
and l_decrypt. Otherwise, OpenSSL reads unallocated memory:

openssl.encrypt("DES", "key", "iv", "datadatadatadata")

==5691== Invalid read of size 1
==5691==    at 0x412F07D: DES_set_key_unchecked (in /usr/lib/libcrypto.so.0.9.8)
==5691==  Address 0x4bcc415 is 2 bytes after a block of size 19 alloc'd
==5691==    at 0x402598A: malloc (vg_replace_malloc.c:195)
==5691==    by 0x4025A16: realloc (vg_replace_malloc.c:476)
==5691==    by 0x80ED502: luaM_realloc_ (in /home/david/nmap/nmap)
==5691==    by 0x80F134B: luaS_newlstr (in /home/david/nmap/nmap)
==5691==    by 0x80F85FA: luaX_newstring (in /home/david/nmap/nmap)
==5691==    by 0x80F8FF6: llex (in /home/david/nmap/nmap)
==5691==    by 0x80F9861: luaX_next (in /home/david/nmap/nmap)
==5691==    by 0x80EDCAF: testnext (in /home/david/nmap/nmap)
==5691==    by 0x80EF718: explist1 (in /home/david/nmap/nmap)
==5691==    by 0x80EF7C0: funcargs (in /home/david/nmap/nmap)
==5691==    by 0x80EFA1C: primaryexp (in /home/david/nmap/nmap)
==5691==    by 0x80EEE16: subexpr (in /home/david/nmap/nmap)
2010-03-15 22:49:09 +00:00
david
7d1aa1a634 Add to CHANGELOG:
o [Ncat] The HTTP proxy server now accepts client connections over
  SSL. That means connections to the proxy can be encrypted and
  authenticated. We haven't found any HTTP clients that directly
  support SSL connections to proxies, but you can use Ncat as a tunnel
  to an SSL-supporting Ncat proxy. This new feature was implemented by
  Markus Klinik.
2010-03-15 21:24:35 +00:00
david
2f00ea5cb7 Add smtp-enum-users.nse from Duarte Silva. 2010-03-13 04:03:26 +00:00
kris
599bb361a4 Update ip_is_reserved(): I decided to go through the existing address checks
to verify their correctness and to check more than just the table in
ipv4-address-space.  Beyond comment changes and some code movement:

* 198.51.100.0/24 and 203.0.113.0/24 are reserved by RFC5737 (Jan 2010)
* Fix 198.18.0.0/15, which was implemented wrongly.  This goes back a while
and was handled somewhat like 198.18.0.0/18.
2010-03-13 01:31:11 +00:00
david
8e0d0c2929 Mention that --open now omits entire host listings in refguide.xml. 2010-03-12 22:20:20 +00:00
david
7d0fbfb4c2 Don't print output for hosts that don't have any open ports when --open
is used. See discussion at http://seclists.org/nmap-dev/2010/q1/837.

In this patch, all output formats are treated the same. So if a host
isn't shown in normal output, it's not shown in XML output either.
2010-03-12 22:15:22 +00:00
kris
002a4647c8 fix variable initialization 2010-03-12 21:56:06 +00:00
david
5318dd3c58 Only write host elements for down hosts to XML in verbose mode. This
makes it consistent with other output formats.
2010-03-12 21:20:05 +00:00
david
5b00a325c0 Add a PortList::hasOpenPorts member function to find out if a host has
any open, open|filtered, or unfiltered ports (those that would be
displayed by --open).
2010-03-12 20:48:03 +00:00