Commit graph

934 commits

Author SHA1 Message Date
kris
412fcbcca0 o [NSE] Added a "times" table to the host table passed to scripts.
This table contains Nmap's timing data (srtt, the smoothed round
  trip time; rttvar, the rtt variance; and timeout), all represented
  as floating-point seconds.  The ipidseq and qscan scripts were
  updated to utilize the host's timeout value instead of the very
  conservative guess of 3 seconds for read timeouts. [Kris]
2010-08-05 01:55:05 +00:00
kris
85f7060088 Update CHANGELOG entry for my r19330 (fix -f/--mtu) to note that Nping's
--mtu was fixed as well.
2010-07-28 23:14:41 +00:00
kris
643d3eb9ff o Fixed the fragmentation options (-f, --mtu) which broke in 5.35DC1.
Instead of sending multiple fragments, Nmap would just send the
  original whole packet instead.  In some circumstances, Nmap would
  fail to send on interfaces with low MTUs (such as SLIP lines) with
  no way to bump down packet sizes for transport. [Kris]

It looks like this has been broken in trunk since merging libnetutil,
and since r18037 in the dedup branch.
2010-07-28 22:34:12 +00:00
kirubakaran
80a741d03a [zenmap] Added a new Script selection Interface. This interface is
present under the Scripting tab of profile editor. Besides selecting 
  script,argument values can also be given. Description and categories 
  of script is also shown.
  [kirubakaran]
2010-07-27 17:14:23 +00:00
david
ef18c40400 Add to CHANGELOG:
o [NSE] The http library's request functions now accept an additional
  "auth" table within the option table, which if provided causes Basic
  authentication credentials to be sent. [David]
2010-07-25 17:14:15 +00:00
kris
cc33a59ca4 Add nmap.clock() for providing scripts with the current time in floating
point seconds since the epoch, and add clock_ms() and clock_us() to stdnse
for convenience (millisecond and microsecond).

qscan.nse now provides microsecond resolution.
2010-07-23 19:49:42 +00:00
kris
ee3c89afe4 o [NSE] When receiving raw packets from Pcap, the packet capture time
is now available to scripts as an additional return value from
  pcap_receive().  It is returned as the floating point number of
  seconds since the epoch.  The qscan.nse script was updated to use
  this more accurate data instead of using the clock_ms() function
  (which returns the current time). [Kris]
2010-07-23 10:43:04 +00:00
fyodor
97284af321 Removed a duplicate entry noted by Matt Selsky 2010-07-22 05:52:37 +00:00
david
a730da1463 o [Zenmap] Fixed a crash that would happen after opening the search
window, entering a relative date criterion such as "after:-7", and
  then clicking the "Expressions" button. The error message was
    AttributeError: 'tuple' object has no attribute 'strftime'
2010-07-18 00:09:45 +00:00
david
85554b0906 CHANGELOG typo fixes. 2010-07-16 18:23:36 +00:00
fyodor
31000c90a9 Add a missing item to the CHANGELOG 2010-07-16 17:09:11 +00:00
fyodor
fe39cb59e6 trivial updates 2010-07-16 01:01:33 +00:00
fyodor
1a2a845e8d Updated CHANGELOG in prep for new release 2010-07-16 00:41:58 +00:00
luis
b39561622e Minor typo fix 2010-07-14 09:43:10 +00:00
fyodor
7e60217bf9 Add the remaining CHANGELOG entries from reviewing all the svn logs since last release. Still needs some ordering and presentation work, and could probably do with proofreading as well 2010-07-14 08:46:31 +00:00
david
16232ff34c Change the warning message for time specifications that look off by a
factor of 1000. I realized there is a bad ambiguity in

The default unit for --host-timeout is seconds (since April 2010),
so your time of "10000" is 2.8 hours.

It could be interpreted as "seconds since April 2010" which is a strange
way to specify a length of time and would be confusing if you took it
that way. I have changed it to

Since April 2010, the default unit for --host-timeout is seconds,
so your time of "10000" is 2.8 hours.
2010-07-13 17:22:58 +00:00
fyodor
3f124b9bcc Added some items to the CHANGELOG 2010-07-13 10:38:07 +00:00
fyodor
97efad8500 Started working on CHANGELOG for next release (due this week) 2010-07-13 07:01:31 +00:00
djalal
98cf1dd7c4 Remove nfs-acls and nfs-dirlist scripts, all their features are supported by nfs-ls.nse script. 2010-07-06 00:56:41 +00:00
david
0347e05487 Add to CHANGELOG:
o Fixed the assignment of interface aliases to directly connected
  routes on Linux, which was broken in 5.30BETA1 (it always assigned
  the base interface instead of the alias). This was visible in the
  host.interface variable passed to NSE scripts. The bug was reported
  Victor Rudnev. [David]
2010-07-04 18:01:31 +00:00
david
5506d55ee6 Document irc-unrealircd-backdoor.nse in CHANGELOG. 2010-07-01 00:15:28 +00:00
david
0d897a8d2a Add to CHANGELOG:
o The Windows executable installer now uses LZMA compression instead
  of zlib, making it about 15% smaller. See
  http://seclists.org/nmap-dev/2010/q2/1011 for test results. [David]
2010-06-30 15:38:19 +00:00
david
acb92d0494 Add Gutek's modifications to http-passwd.nse that enable it to check for
boot.ini.
2010-06-23 02:29:24 +00:00
luis
eae5577f2c Added an entry about the new netutil library 2010-06-22 17:58:49 +00:00
david
5b4e171444 o [NSE] Added ftp-libopie.nse by Gutek. This script checks for an
off-by-one stack overflow vulnerability in libopie by giving the FTP
  service an overlong name. See
  http://security.freebsd.org/advisories/FreeBSD-SA-10:05.opie.asc for
  details.
2010-06-21 20:25:11 +00:00
david
424385b541 Add to CHANGELOG:
o Fixed name resolution in environments where gethostbyname can return
  IPv6 (or other non-IPv4 addresses). In such an environment, Nmap
  would wrongly use the first four bytes of the IPv6 address as an
  IPv4 address. You could force this, at least on Debian, by adding
  the line "options inet6" to /etc/resolv.conf or by running with
  RES_OPTIONS=inet6 in the environment. This was reported by Mats Erik
  Andersson, who also suggested the fix. [David]
2010-06-19 00:16:54 +00:00
david
c50c7a2c0b o Added http-php-version.nse from Gutek. This script retrieves
version-specific pages through a couple of magic PHP queries, which
  can identify the PHP version even when a server doesn't advertise
  it.
2010-06-18 22:12:17 +00:00
david
43654abc71 o Combined service match lines for Oracle Enterprise Manager Agent
into one more effective line. This patch is from Matt Selsky.
2010-06-16 00:46:03 +00:00
david
316e20f8dc o Fixed captures in the mupdate service probe matches. This patch is
from Matt Selsky.
2010-06-16 00:38:38 +00:00
drazen
204ed474e2 Added CHANGELOG entry for smb-check-vulns.nse update 2010-06-14 18:48:07 +00:00
david
e4162e6771 o [NSE] Added dns-cache-snoop.nse by Eugene Alexeev. This script does
cache snooping by either sending non-recursive queries or by measuring
  response times.
2010-06-12 02:25:44 +00:00
jah
a17609e6b4 Ports are now considered open during a SYN scan if a SYN packet (without the ACK
flag) is received in response. This can be due to an extremely rare TCP feature
known as a simultaneous open or split handshake connection.
see http://nmap.org/misc/split-handshake.pdf
Added a reason code: ER_SYN and associated reason string: "split-handshake-syn".
2010-06-08 01:50:45 +00:00
kris
3a0aa06db1 Fix a bug in qscan.nse which kept a confidence level of 0.9995 from working;
Marcin Hoffmann reported the problem.
2010-06-05 00:46:48 +00:00
jah
ab6e84b40d Added ntp-monlist discovers NTP server, peer and client hosts associated with a
scanned target by sending NTPv2 Private Mode 'monitor' and 'peers' commands to
the target.
2010-06-03 12:15:40 +00:00
david
38019ded5c o [libpcap] Added a --disable-packet-ring option to force the use of
an older, slower packet capture mechanism on Linux. Before Linux
  2.6.27, the packet ring mechanism uses different-sized kernel
  structures on 32- and 64-bit architectures, so a 32-bit program will
  not run correctly on a 64-bit kernel. The older mechanism does not
  have this flaw.
2010-05-26 20:43:09 +00:00
david
994da96f9c Merge Jay Fink's patch that puts UDP payloads in an external data file
instead of being hard-coded in payloads.cc. This is the patch from
http://seclists.org/nmap-dev/2010/q2/497.
2010-05-25 17:38:23 +00:00
david
27c0be76d7 Add a UDP payload corresponding to the serialnumberd probe. Document
serialnumberd stuff in CHANGELOG.
2010-05-24 19:21:33 +00:00
david
d863e73c36 Document the new XML output processing merged in r17300 in CHANGELOG. 2010-05-24 19:02:47 +00:00
david
25c56e7fa0 Fix a couple of errors in nmap-os-db caused by erroneous string
replacement. This patch is from James Cook.
2010-05-24 16:36:31 +00:00
david
90b59ef14b o [Nsock, Ncat] Nsock has a new function, nsp_setbroadcast, that
allows setting the SO_BROADCAST option on sockets. Ncat now sets
  this option unconditionally in connect mode to allow connections to
  broadcast addresses (useful in UDP mode). This code was written by
  Daniel Miller.
2010-05-21 01:54:06 +00:00
patrik
b830a036ad o [NSE] Add new DB2 library and two scripts
- db2-brute.nse uses the unpwdb library to guess credentials for DB2
  - db2-info.nse re-write of Tom Sellers script to use the new library
  [Patrik]
2010-05-18 21:11:38 +00:00
david
709ac1131a o [Ncat] In listen mode, the --exec and --sh-exec options now accept a
single connection and then exit, just like in normal listen mode.
  Use the --keep-open option to get the old default inetd-like
  behavior. This was suggested by David Millis. [David]
2010-05-17 19:17:18 +00:00
david
b0e4a020b5 Add to CHANGELOG:
o Nmap now works with "teamed" network interfaces on Windows. In order
  to distinguish the interfaces, their textual descriptions are now
  compared in addition to their MAC addresses. Without this, Nmap
  would send on the wrong interface and not receive any replies. A
  symptom of this problem was all scans failing except when
  --unprivileged was used. Norris Carden reported this bug. [David]
2010-05-14 16:56:50 +00:00
david
8d40939ac8 o [Ncat] Ncat in listen mode now prints the source port with the IP
address when verbosity is turned on. This patch is from rebellis.
2010-05-11 19:58:03 +00:00
kris
0be83cf063 Move around a few gettimeofday() calls, including where port scan timing
comparisons would be affected by debugging level:

http://seclists.org/nmap-dev/2010/q2/373
2010-05-11 03:22:42 +00:00
david
fea2ad0a33 o Moved the parse_long function from ncat to nbase for better reuse,
and used it to simplify netmask parsing code. This patch was
  contributed by William Pursell.
2010-05-08 21:08:55 +00:00
david
6fa497f04e o Added EPROTO to the list of known error codes in service scan. Daniel
Miller reported that an EPROTO was causing Nmap to exit after sending
  the Sqlping probe during service scan. The error message was
  "Unexpected error in NSE_TYPE_READ callback. Error code: 71 (Protocol
  error)". We suspect this was caused by a forged ICMP packet sent by an
  active firewall.
2010-05-06 21:36:11 +00:00
david
ee5b14967b Set the port state open when dns-resursion.nse gets a response. This
patch was sent by Olivier Médoc.
2010-05-03 15:20:25 +00:00
david
5291f8586d Updates to smtp-commands.nse from Jason DePriest.
o [NSE] Improved smtp-commands.nse to work against more mail servers,
  made it take an smtp-commands.domain script argument, and rewrote it
  in the style of other smtp scripts. [Jason DePriest]
2010-04-29 16:42:11 +00:00
patrik
71ca5cceba o [NSE] Improved error handling and reporting and re-designed communication
class in RPC library with patch from Djalal Harouni. [Patrik]
2010-04-22 20:25:38 +00:00