1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-08 07:29:03 +00:00
Commit Graph

1682 Commits

Author SHA1 Message Date
david
46a08eef1f Add CHANGELOG entry.
o Zenmap no longer leaves any temporary files lying around. [David]
2008-08-22 03:25:54 +00:00
david
b7985aef90 Add some changelog entries.
o Nmap sometimes sent packets with incorrect IP checksums,
  particularly when sending the UDP probes in OS detection. This has
  been fixed. Thanks to Gisle Vanem for reporting and investigating the
  bug. [David]

o In the interest of forward compatibility, the xmloutputversion
  attribute in Nmap XML output is no longer constrained to be a
  certain string ("1.02"). The xmloutputversion should be taken as
  merely advisory by authors of parsers.
2008-08-21 17:54:16 +00:00
david
177e2cd4a2 constify the pointer passed to magic_tcpudp_cksum. 2008-08-21 17:43:23 +00:00
pgpickering
9e6a88ad67 changed option in dns.lua 2008-08-21 10:00:25 +00:00
pgpickering
d8bb0e8c73 added NSE DNS library 2008-08-21 09:38:28 +00:00
pgpickering
0e7549c485 added nmap.get_dns_servers() to the NSE 2008-08-21 09:25:28 +00:00
pgpickering
a5b421e67c added get_dns_servers() to nmap_dns.cc/.h 2008-08-21 09:24:35 +00:00
pgpickering
3c9833b57c added nsedoc documentation for the binlib 2008-08-21 09:12:19 +00:00
pgpickering
c007b41389 modified binlib to use type definitions from nbase.h to achieve portability
(especially between 32 and 64 bit platforms)
2008-08-21 08:24:02 +00:00
pgpickering
442288feb2 documented new binlib data types 2008-08-21 08:06:59 +00:00
david
87b54dc9f2 Fix magic_tcpudp_cksum not to write into memory outside the buffer it's passed.
The partial checksum for the TCP/UDP pseudo-header is calculated and then it is
added to the checksum for the rest of the packet. I started to write the
functions for such incremental checksum calculation but then I saw they are
already implemented in libdnet.
2008-08-20 19:52:46 +00:00
david
5910fb80fd Change "UDP & TCP" to "UDP and TCP". 2008-08-20 03:45:01 +00:00
david
b4c60f49e5 Canonicalize capitalization of protocol names. Generally we use capitalized forms in probes. When quoting from Nmap output we use whatever Nmap uses and enclose it in <literal> or similar tags. 2008-08-20 03:37:59 +00:00
david
ef650e0f67 Delete install-sh. We don't need it because we can use shtool (configure checks
for both).
2008-08-19 18:23:47 +00:00
david
1bba311884 Upgrade shtool to version 2.0.8. This is supposed to fix NLS problems with
"make install"; see http://seclists.org/nmap-dev/2008/q3/0088.html.
2008-08-19 17:49:47 +00:00
david
e0435b8b98 Go back to the old method of calculating the completion percentage. My clever
formula algebraically reduced to
1.0 - gstats->numprobes / host->freshPortsLeft(), which doesn't regard the
number of sent probes, leading to long stalls in the completion when, for
example, maxtries is increased.
2008-08-19 17:01:44 +00:00
batrick
42a3d83c70 Updated documentation for some scripts. 2008-08-19 06:50:05 +00:00
batrick
8134cda566 Added newlines to output. 2008-08-19 06:06:03 +00:00
batrick
f67f015d67 Updated documentation for scripts. 2008-08-19 06:00:58 +00:00
david
0ef70aae15 In nmap.dtd, let the xmloutputversion attribute be any CDATA. See
http://seclists.org/nmap-dev/2008/q3/0346.html.
2008-08-18 17:58:05 +00:00
pgpickering
1936743c81 removed obsolete debug output 2008-08-18 17:56:32 +00:00
fyodor
bc3dbbabc9 Apply nsedoc system details written by Patrick 2008-08-18 07:09:08 +00:00
fyodor
0229b89f1b trivial wording improvement 2008-08-18 06:44:31 +00:00
batrick
670792a4a6 Updated all libraries documentation.
packet and url both need more work.
2008-08-18 04:03:45 +00:00
david
567bad86e3 svn:ignore Windows build files. 2008-08-18 02:42:27 +00:00
batrick
20ff1375d5 Fix for scripts returning multiple results causing the getting of the script's
ID to fail.
2008-08-18 00:34:09 +00:00
batrick
9a1831cdfc Updated SMTPcommands script. 2008-08-16 05:05:39 +00:00
batrick
462c289f4a Fixed all the modules to give a default name if absent.
Also necessary for the documentation system to know the name
of the module.
2008-08-16 04:20:15 +00:00
david
e401cb4a00 Reuse a cached copy of the result of freshPortsLeft() instead of calculating it
again.
2008-08-16 01:45:14 +00:00
david
1c727400d2 Add some missing <filename></filename> tags to refguide.xml. 2008-08-16 01:16:43 +00:00
david
7c821a3c9a Change a few instances of "nmap" to "Nmap" in refguide.xml. 2008-08-16 01:15:12 +00:00
david
371a19f79a Make a tiny whitespace fix. 2008-08-16 01:12:36 +00:00
david
debfc5f683 Change RateMeter to be more general, measuring just one quantity. Add a
PacketRateMeter specialized for measuring packet and byte rates, and use that
in scan_engine.cc.
2008-08-16 01:05:11 +00:00
jurand
0644d84fca Added to the CHANGELOG a bunch of changes that I made this summer. 2008-08-16 00:48:49 +00:00
batrick
05c7d791cd Added nmap luadoc documentation file. 2008-08-16 00:28:28 +00:00
batrick
b90ba111c9 Updated scripts' documentation. 2008-08-16 00:24:32 +00:00
batrick
fbfc2fa045 Changed showSSHVersion to properly return one result (not through
concatentation).
2008-08-15 23:45:57 +00:00
fyodor
8964cb8773 set the ip->ip_sum to 0 before computing the checksum of fragments. I'm not sure if this is necessary, but it is a useful sanity check at least. 2008-08-15 22:38:30 +00:00
david
116ba8fb91 Change the completion percentage algorithm to estimate the total number of
probes that will be sent and calculate from that. This makes the 100%
completion match up closely with the end of the scan, as the estimate gets
better as the scan gets closer to finishing. It also works against filtered
hosts. There is still the related problem that the completion time estimate
uses a global average to estimate completion rate, so it tends to
underestimate.
2008-08-15 05:59:05 +00:00
fyodor
0dee9b603d Nmap now avoids collapsing large numbers of ports in open|filtered state if verbosity or debugging levels are greater than two. 2008-08-15 03:30:34 +00:00
batrick
cbfde183cb Updated documentation for Kris' scripts. 2008-08-14 23:47:51 +00:00
kris
789906f3a8 o Added IPProto Ping (-PO) support to Traceroute, and fixed support for
IPProto Scan (-sO) and the ICMP Pings (-PE, -PP, -PM) in Traceroute
  as well.  These would cause Nmap to hang during Traceroute. [Kris]
2008-08-14 17:53:23 +00:00
david
e6d4512f4d Revert to the previous method of calculating completion percentage. Just
counting the ratio of finished to total ports fails against filtered ports,
which are not marked completed until the very end.
2008-08-14 15:35:29 +00:00
david
47aa010d2e Factor out the code that calculates the completion percentage into its own
subroutine. It was present in two places.
2008-08-14 14:19:39 +00:00
david
8e6576f00e Use only the number of completed ports when computing completion time
estimates, and don't consider the number of outstanding probes or number of
retries. The old code would overestimate completion, causing a period of 99.99%
completion at the end of a scan (which caused earlier estimates to be too
soon). For a long UDP scan this puts the completion estimate right on after a
little time to allow for convergence. See
http://www.bamsoftware.com/wiki/Nmap/CompletionTimeEstimates.
2008-08-14 07:00:24 +00:00
david
afc805a1ef Add a CHANGELOG entry for r9462, faster nmap-services loading. 2008-08-13 01:50:59 +00:00
fyodor
30e26e481e we generally don't update the xmlversion just for a new attribute. Doing so may cause more trouble than its worth, though I'm open to convincing 2008-08-13 01:30:42 +00:00
david
3a67da3a7e Improve the efficiency of loading the nmap-services file. We now use an STL map
instead of a custom hash table and an STL list instead of a custom linked list.
The biggest gain comes from using the list.sort method rather than inserting
ports in sorted order (equivalent to insertion sort). The new code passes
Doug's p-switch-tests.

Here are time comparisons, using the old and new services code, and using the
standard nmap-services file and the 65535-port nmap-services-huge. The times
are the duration of the call to nmap_services_init. Three trials were done for
each case, except for the old-code/nmap-services-huge case.

nmap-services:
old code:   0.215  0.201  0.227  (average   0.214 s)
new code:   0.025  0.022  0.023  (average   0.023 s)

nmap-services-huge:
old code: 441.014                (average 441.014 s)
new code:   0.984  0.975  0.978  (average   0.979 s)
2008-08-13 01:19:09 +00:00
michael
931285f765 Updated DTD, XML version, and anded scanflags attribute to scaninfo element. 2008-08-13 00:59:22 +00:00
bmenrigh
57ffa96d51 Fixed a few typos and improved wording in a few places 2008-08-11 23:35:37 +00:00