1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-19 05:59:01 +00:00
Commit Graph

4571 Commits

Author SHA1 Message Date
fyodor
fafd5a85a7 Note that Nmap should have a better way to handle XML script output. Also that we should do at least 1-2 Nmap releases in July 2010-07-02 01:03:59 +00:00
david
5506d55ee6 Document irc-unrealircd-backdoor.nse in CHANGELOG. 2010-07-01 00:15:28 +00:00
david
5c85f224c0 Accuracy and speed improvements to irc-unrealircd-backdoor.nse. The main
problem was that the timer was including the time taken by the server to
do reverse-DNS resolution and an ident lookup, before it handled the
magic "AB" sleep command. So if a server took 10 seconds to time out the
ident lookup, the time recorded would be 10 seconds greater than it
should have been. If the timeout was long enough, as server would be
reported as vulnerable even if not. To compensate for this, the delay
was set high, but false positives were still possible and this slowed
down the script.

First, remove the mutex that allowed only one instance of the script to
run at a time. The mutex was meant to provide more accurate timing, but
it wasn't really needed because scritp parallelism wasn't the cause of
inaccuracy.

Next, make sure the server is done sending its initialization messages
(and hence is done with its timeouts) before sending the magic "AB"
sleep command and starting the timer. This is done by sending an
innocuous TIME command immediately upon connection. This is partly
because comm.tryssl has to send something, and partly because we can
detect when the server has processed the TIME command by looking for a
message like ":hostname 451 TIME :You have not registered". Once this is
done, we start the timer and send the "AB" command. If we haven't gotten
a response to TIME in 60 seconds, go ahead and send the "AB" command
anyway.

Finally, reduce the delay to 8 seconds from 25. The delay only has to be
long enough to overcome any network delay, now that confounding timeouts
have been eliminated. In a test of around 600 hosts, the only times I
recorded were 0, 1, 8, and 9 seconds, so this looks like a good enough
safety margin.
2010-07-01 00:11:59 +00:00
fyodor
15b869cdb7 Update nmap-mac-prefixes to include latest IEEE data 2010-06-30 22:14:12 +00:00
luis
c1057bcadd Moved a few items to the DONE section and fixed a few minor style and formatting issues 2010-06-30 16:00:11 +00:00
david
fe7c14cbe2 New TODO items. 2010-06-30 15:40:47 +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
d8f2dd538a Use lzma compression in the winpcap-nmap.nsi too. This reduces the size of the
winpcap-nmap installer itself from 720288 to 433535 bytes (60%) and the nmap
installer from 14225186 to 13947278 bytes (98%).
2010-06-30 15:04:42 +00:00
david
cd29377b15 Use lzma whole-file compression in the Windows installer, instead of the
default zlib. The lzma-compressed installer is 15% smaller than the zlib one.
See http://seclists.org/nmap-dev/2010/q2/1011 for test results.
2010-06-30 14:55:12 +00:00
david
6df527a98c Update version number in nmap.rc and Nmap.nsi. 2010-06-30 14:50:00 +00:00
fyodor
429e2b9dfd note a task done by David 2010-06-30 05:11:06 +00:00
fyodor
173a3a5476 Add a section on generating and installing deb files from the RPMs using alien and dpkg on Debian/Ubuntu - thanks to Jason for posting details at http://seclists.org/nmap-dev/2010/q2/982 2010-06-30 05:08:36 +00:00
david
9d1a797c8f Revert r18424. This was mean to fix OpenBSD compilation but it broken on
Windows because of a lack of <sys/socket.h>. We have a request in to the
original reporter for more information and a cleaner fix.
2010-06-30 00:11:07 +00:00
djalal
72a06a3b5c Merge r18160:18278 from nmap-exp/djalal/nmap-nse/ to fix NSE not honoring the exclude directive bug. 2010-06-29 21:56:59 +00:00
djalal
329d9e3c2b Merge r18144:18422 from nmap-exp/djalal/nse-nfs/scripts 2010-06-29 21:06:07 +00:00
djalal
1c100da16b Merge r18143:18422 from nmap-exp/djalal/nse-nfs/nselib 2010-06-29 21:00:03 +00:00
batrick
c43576e5f2 Fix error in documentation. 2010-06-29 17:20:21 +00:00
fyodor
29e95309ad Made some changes per discussion w/Luis 2010-06-28 21:39:22 +00:00
luis
8aa0a4b5fe Fixed compiler warning caused by a possible uninitialized var 2010-06-28 07:47:35 +00:00
luis
c32d0c6d66 Fixed a couple of compiler warnings, caused by signed vs unsigned comparisons 2010-06-28 07:46:00 +00:00
luis
6e0e3964bb Fixed compilation problem in OpenBSD 4.7. This was reported and fixed by Lori 2010-06-28 07:44:28 +00:00
ron
4105ee3379 Initial import of irc-unrealircd-backdoor, used to detect Trojanned UnrealIRCd servers. This script still has reliability problems, due to the method of detection. 2010-06-25 20:05:54 +00:00
david
77df357acd Check for target->deviceName == NULL in target_needs_new_hostgroup in
targets.cc, and return false if it is so. This indicates that we are not
doing a raw scan. target->deviceName != NULL is necessary before
checking target->directlyConnected(), otherwise you get this assertion
failure when doing any non-root scan (such as -sT or -sL) as root with
two or more targets:

nmap: Target.cc:369: bool Target::directlyConnected() const: Assertion `directly_connected == 0 || directly_connected == 1' failed.
Aborted

This is how the logic originally worked, and I accidentally broke it in
r17892.
2010-06-25 05:34:08 +00:00
david
edfc8a1ec0 Show/hide buttons in NSEDoc are done. 2010-06-24 18:22:37 +00:00
david
32c8ee9f1f Fix some NSEDoc. 2010-06-24 17:01:55 +00:00
david
9c3f61d870 svn:ignore Windows build files in libnetutil. 2010-06-24 16:37:58 +00:00
david
f7b766eff1 Use CXXFLAGS in libnetutil. 2010-06-24 15:04:40 +00:00
david
0a3c6f1fc7 Include <sys/types.h> before <net/if_arp.h> in netutil.cc. I needed this on OS
X when compiling against the 10.4u SDK.
2010-06-24 15:04:16 +00:00
david
a468082429 Remove DOS line endings from some lines in netutil.cc. 2010-06-24 14:34:33 +00:00
david
a4d050125b svn:ignore Linux build files in libnetutil. 2010-06-23 22:14:27 +00:00
fyodor
99498ccf53 latest changes from chat w/David 2010-06-23 19:48:59 +00:00
jah
8dc22d6305 Output libnetutil.lib to nmap/libnetutil instead of nmap/mswin32/(Release|Debug)
avoiding a linker error.
2010-06-23 09:15:56 +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
d11edeb3e7 Changed send_frag_ip_packet() to make sure it accepts big MTU values, and fixed the format specifier, which was printing a signed integer when it should print an unsigned one 2010-06-22 18:22:54 +00:00
luis
eae5577f2c Added an entry about the new netutil library 2010-06-22 17:58:49 +00:00
luis
c7be757035 Fixed small format specifier error that caused a compiler warning 2010-06-22 17:47:32 +00:00
luis
da126c8b78 Merged nmap-dedup branch from nmap-exp/luis/nmap-dedup. This completes the Nmap/Nping code de-duplication phase. 2010-06-22 17:24:34 +00:00
luis
c069b10c27 Added missing rules to clean and distclean Nping 2010-06-22 11:12:58 +00:00
luis
ff1b76ab83 Updated with the latest DONE items 2010-06-22 11:05: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
d90b7b15a7 Make a new function called resolve_all in tcpip.cc, which is like
resolve except that it returns all resolved addresses. Use this new
function to resolve IPv4 addresses instead of gethostbyname in
TargetGroup.cc. The gethostbyname code assumed that only IPv4 addresses
would be returned. If the resolver returned IPv6 addresses, TargetGroup
would blindly copy the first four bytes of the IPv6 address into the
IPv4 struct. This was first reported by Mats Erik Andersson at
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=584301; he also
suggested the fix.
2010-06-19 00:13:44 +00:00
david
bf9e17778c Add another mailing list link for the "Zenmap fails to start" todo item. 2010-06-18 22:30:27 +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
5135cf678a Add mailing list links to new todo items. Add an item for a PHP version
disclosure script.
2010-06-18 21:06:51 +00:00
david
dbb30db4be New and fixed nmap-service-probes probes from Matt Selsky. 2010-06-18 19:43:23 +00:00
fyodor
a045aa939e latest changes from chat w/David 2010-06-18 19:13:20 +00:00
david
e3e9dedc78 Regenerate configure with Autoconf 2.63 for ease of merging with
nmap-dedup.
2010-06-18 15:28:31 +00:00
luis
220e462cbb Removed extra character in the Nping logo 2010-06-18 10:25:17 +00:00
luis
3d0c3af1c2 Removed another two items 2010-06-18 10:24:37 +00:00