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

5148 Commits

Author SHA1 Message Date
david
4cdc50e95d Do copyediting of NSEDoc up through pgsql-brute. 2010-07-12 06:21:03 +00:00
david
725e6b85ac Put some indexterms inside certain elements like term and member. Having
them outside causes an error, "[warning] unresolved internal
destination" and a broken link in the index.
2010-07-12 03:54:06 +00:00
fyodor
a9a47afe3b Added a missing sect2 end tag 2010-07-11 07:42:58 +00:00
batrick
0f8946efc9 Update to Implementation section of NSE chapter to account for changes made
to NSE (Lua).
2010-07-10 07:38:12 +00:00
batrick
c08922c411 Reset environment after creating new script thread. (This may fix problems with
some memory not being reclaimed.)
2010-07-10 06:03:15 +00:00
david
b9633ed69b Do copyediting of NSEDoc. This is a first pass up to ms-sql-xp-cmdshell. 2010-07-09 23:32:18 +00:00
david
0e7f78bcd0 Break off a comment in afp-brute.nse so it doesn't appear as part of the
@output.
2010-07-09 17:48:10 +00:00
fyodor
e839430d82 Note a networking problem task 2010-07-09 06:22:53 +00:00
djalal
81d927513d Make value_follows variable local 2010-07-08 20:21:24 +00:00
fyodor
ca0bf1da69 Put a standard Nmap header on nmap-rpc 2010-07-08 03:50:27 +00:00
fyodor
8c45bca9ec add a very minor task 2010-07-08 03:17:41 +00:00
batrick
e55589c5cc Another change to this from r18458 that adds a note to check if you need
to escape quotes differently based on which shell you use.
2010-07-07 17:26:48 +00:00
batrick
45a51eff5c Move Script Database Update code from nse_main.cc (Lua code embedded in C
strings) to nse_main.lua.
2010-07-07 16:31:17 +00:00
batrick
885bc6e034 SCRIPT_ENGINE is defined in nse_main.h. 2010-07-07 15:01:19 +00:00
fyodor
d758631be8 remove recommendation to install lintian as it is apparently not required 2010-07-07 01:28:49 +00:00
kris
05abf37ead get rid of a warning 2010-07-07 01:25:20 +00:00
luis
aca3354d0a Fixed a few errors in the description 2010-07-06 22:57:27 +00:00
fyodor
6b1638aad4 reword an entry to better note the diff between how ncat and nping echo mode handle multiple connects 2010-07-06 20:52:30 +00:00
fyodor
1af9684fa9 Note a completed task 2010-07-06 20:14:32 +00:00
fyodor
2cf41cecf3 Minor typo 2010-07-06 18:23:54 +00:00
fyodor
e4c0674b35 Add a potential task for discussion re: adding server support to nsock 2010-07-06 18:23:18 +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
djalal
53b2b629dc Merge r18534:r18591 from nmap-exp/djalal/nse-nfs/ 2010-07-06 00:29:54 +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
62c2276755 Properly match up directly connect routes with alias interface addresses
in getsysroutes_proc. This was already being done for non–directly
connected routes, those with a gateway. Victor Rudnev reported this bug.

The /proc/net/route file doesn't contain alias qualifications so we must
match them up after the fact with the interface table. When the gateway
address isn't set, use the route destination for matching instead.

For example, with these interfaces and routing table,

eth0      Link encap:Ethernet  HWaddr 00:50:BF:16:11:61
          inet addr:192.168.1.21  Bcast:192.168.1.255 Mask:255.255.255.0

eth0:1    Link encap:Ethernet  HWaddr 00:50:BF:16:11:61
          inet addr:192.168.0.21  Bcast:192.168.0.255 Mask:255.255.255.0

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
192.168.0.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0

nmap --iflist before this commit:

DEV    (SHORT) IP/MASK         TYPE     UP MAC
eth0   (eth0)  192.168.1.21/24 ethernet up 00:50:BF:16:11:61
eth0:1 (eth0)  192.168.0.21/24 ethernet up 00:50:BF:16:11:61

DST/MASK       DEV    GATEWAY
192.168.1.0/24 eth0
192.168.0.0/24 eth0

nmap --iflist after this commit:

DEV    (SHORT) IP/MASK         TYPE     UP MAC
eth0   (eth0)  192.168.1.21/24 ethernet up 00:50:BF:16:11:61
eth0:1 (eth0)  192.168.0.21/24 ethernet up 00:50:BF:16:11:61

DST/MASK       DEV    GATEWAY
192.168.1.0/24 eth0
192.168.0.0/24 eth0:1
2010-07-04 17:42:49 +00:00
fyodor
dec2f7c3bc add task about implementing security technologies such as dep and aslr on Win 2010-07-03 21:16:56 +00:00
jah
e651aced8c Strip newlines from the the portion of the http status line starting after a
space.
2010-07-02 11:35:18 +00:00
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