1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-20 14:39:02 +00:00
Commit Graph

1698 Commits

Author SHA1 Message Date
david
d73feb67df Change a sentence because almost all version numbers have been excised from the
book:

From
  Nmap output examples in this book usually include a version number
  near the top, and they may not work with older versions.

to
  Nmap output examples in this book may not match the output produced by
  older versions.
2008-07-02 03:56:37 +00:00
david
bfdc13d311 Fix a typo in the CHANGELOG: aid -> said. 2008-07-02 01:58:32 +00:00
kris
83ed199791 Adding packet validity checking to readip_pcap() so the caller can assume the
packet is OK from the get-go rather than running basic checks of it's own.

In a nutshell this patch checks to make sure:

1) there is enough room for an IP header in the amount of bytes read
2) the IP version number is correct
3) the IP length fields are at least as big as the standard header
4) the IP packet received isn't a fragment, or is the initial fragment
5) that next level headers seem reasonable

For TCP, this checks that there is enough room for the header in the number
of bytes read, and that any option lengths are correct.  The options checked
are MSS, WScale, SackOK, Sack, and Timestamp.

This also fixes a bug I discovered while testing.  Since the Ethernet CRC
(and other datalink-layer data) could be read and counted, it was being
returned that there was more IP packet than there really was.  This didn't
cause an overrun of the buffer or anything, just that garbage data could have
easily been read instead of real packet data.  Now, if validity is checked for
and the number of total bytes read is larger than the IP's length, the length
is set to the IP header's total length field.

This seems to work great after doing what testing I could.  It's been out on
nmap-dev for a couple of weeks without any bad reports (none at all for that
matter).  I reviewed this patch again before committing and it looks good as
well.
2008-06-30 23:55:19 +00:00
vladimir
ba44abab6e o The Ports/Hosts display in Zenmap now has different colors for open
and closed ports. [Vladimir]

o Fixed the "resolution errors not showing up" bug. Actually, from now
  on, all errors will be displayed properly in the Zenmap window, since
  stderr is also redirected there (until now, only stdout was
  displayed). [Vladimir]
2008-06-30 22:59:11 +00:00
david
6d358a8b6e Fix an error in the Reference Guide: -PT is an undocumented synonym for -PA
(ACK ping), not for -PS (SYN ping).
2008-06-30 20:04:45 +00:00
david
19f82d8224 Do a trivial alphabetization of -s? argument parsing code. 2008-06-30 19:55:10 +00:00
david
6c204ca599 Add a "min_rate" synonym for "min-rate" in nmap.cc, like the other options have. 2008-06-30 19:40:40 +00:00
david
ce8a716e5e Fix two erroneous command-line option index entries: --sR and --T (changed to
-sR and -T).
2008-06-30 19:30:13 +00:00
david
b63cdc769a Remove the part of Makefile.in that calls setup.sh in a subdirectory of zenmap.
setup.sh no longer exists. It was not used anyway.
2008-06-30 19:29:36 +00:00
fyodor
b87c27127f credit myself :) 2008-06-29 09:37:46 +00:00
fyodor
5751967a43 rebuild some generated content 2008-06-29 09:13:57 +00:00
fyodor
0595efc21a update version number 2008-06-29 09:13:44 +00:00
fyodor
9999314a0b update CHANGELOG in prep for upcoming release 2008-06-29 09:06:22 +00:00
fyodor
2c4f8d1a67 o The Nmap Windows self-installer now automatically installs the MS
Visual C++ 2008 runtime components if they aren't already installed
  on a system.  These are some reasonably small DLLs that are
  generally necessary for applications compiled with Visual C++ (with
  dynamic linking).  Many or most systems already have these installed
  from other software packages.  The lack of these components led to
  the error message "The Application failed to intialize properly
  (0xc0150002)." with Nmap 4.65.  A related change is that Nmap on
  Windows is now compiled with /MD rather than /MT so that it
  consistently uses these runtime libraries.  The patch was created by
  Rob Nicholls.
2008-06-29 04:52:00 +00:00
fyodor
22fac0e3e5 apply patch by Jah to handle some bogus responses from some devices. See http://seclists.org/nmap-dev/2008/q2/0731.html and http://seclists.org/nmap-dev/2008/q2/0732.html 2008-06-29 04:26:20 +00:00
fyodor
6d52a3db77 o Updated showHTMLTitle NSE script to follow one HTTP redirect if
necessary as long as it is on the same server. [Jah]
2008-06-29 04:21:30 +00:00
fyodor
b3fc32e7a4 signatures for Cyrus synchronization server and newer Cyrus IMAP versions from Matt Selsky 2008-06-29 02:45:38 +00:00
fyodor
4a40579713 fix some syntax problems and rewrite a sentence for more clarity 2008-06-28 23:58:11 +00:00
fyodor
23ebdfd18c a bunch of typos and similar fixes from Eric Krosnes 2008-06-28 23:51:59 +00:00
fyodor
6e14332cdc o Added a UDP SNMPv3 probe to version detection, along with 9 vendor
match lines. [Tom Sellers]
2008-06-28 21:40:44 +00:00
fyodor
f810762936 Increase write buffer length for Nmap output on Windows. This should
prevent error messages like: "log_vwrite: vnsprintf failed.  Even after
increasing bufferlen to 819200, Vsnprintf returned -1 (logt == 1)."
Thanks to prozente0 for the report.
2008-06-28 21:23:39 +00:00
doug
60774c2313 nmapsubmit-svfp-060108.mbx Last major batch of misc FPs 2008-06-28 20:23:26 +00:00
fyodor
cd0da561aa a couple fixes from Eddie Block 2008-06-28 04:48:05 +00:00
doug
16b23a12e1 Fixed slip-up in Tom's probe that was my fault 2008-06-28 02:04:20 +00:00
pgpickering
53a7ba2c6a added binlib documentation in scripting.xml 2008-06-27 20:27:38 +00:00
batrick
6bb6d82fc1 Updated NSE implementation to be more general in anticipation
of possible changes to nse_main.
2008-06-26 07:51:37 +00:00
doug
9219fb7389 nmapsubmit-svfp-060108.mbx lots of misc services 2008-06-26 04:23:24 +00:00
doug
e52e117d13 nmapsubmit-svfp-060108.mbx lots of misc services 2008-06-25 23:50:54 +00:00
fyodor
bf2205ecb0 add sslport 4443 as SecurityGateway apparently uses that (per Marco Balduzzi) 2008-06-25 09:07:39 +00:00
doug
289448ea3a Replaced http-mgmt with http 2008-06-25 07:02:29 +00:00
doug
c975aa2dbe nmapsubmit-svfp-060108.mbx HTTP submissions 2008-06-25 02:57:11 +00:00
fyodor
5274601022 added service detection match lines for ALT-N SecurityGateway and Criston Precision Agent from Marco Balduzzi 2008-06-24 18:12:47 +00:00
kris
fee89db0a1 Update --webxml info in -h help screen: Insecure.Org -> Nmap.Org 2008-06-24 14:35:48 +00:00
batrick
b589575472 Applied Jah's patch for http.lua discussed in:
http://seclists.org/nmap-dev/2008/q2/0833.html
2008-06-23 03:42:57 +00:00
fyodor
a1c363b84a RateMeter::update() used to abort if the new time was earlier than the old time. But on my SMP Linux 2.6.20 system, I've been doing large-scale scanning and I'm getting very occasional values like "now=1214173867.8027; last_update_tv=1214173867.8065". Unless I'm missing something, I think my gettimeofday may have decreased by 38 microseconds. Perhaps due to SMP and the old kernel. Anyway, I changed it so that decreases of up to 1 millisecond just give a warning (one-time) rather than abort Nmap. 2008-06-23 00:56:49 +00:00
fyodor
726febac7c add extra debugging information to an error case -- trying to track down a host discovery crash (abort) 2008-06-22 21:20:10 +00:00
batrick
49a919f401 Fixed nmap library which was returning it's first argument
instead of the library table.
2008-06-22 18:38:53 +00:00
fyodor
aef79acb23 trivial reorg 2008-06-22 05:11:46 +00:00
bmenrigh
dea5974643 Migrated remaining *alloc() calls to safe_*alloc() 2008-06-22 04:56:02 +00:00
batrick
404c0848bf Fixed a incorrect arguments being passed to string.format 2008-06-21 21:08:38 +00:00
batrick
1d82523af0 Removed unnecessary print local from stdnse.lua 2008-06-21 21:02:42 +00:00
batrick
77437b3998 Updated incorrectly applied patch for http.lua's use of stdnse.make_buffer()
See: http://seclists.org/nmap-dev/2008/q2/0823.html
2008-06-21 20:49:30 +00:00
batrick
0c57267b76 http library now uses make_buffer correctly. 2008-06-21 19:18:56 +00:00
batrick
fa93527653 Changed waiting2running to push threads to the back of running, it
caused some nasty bugs when a thread would yield and pop front (a
thread just added).
2008-06-21 18:52:08 +00:00
batrick
d34f06ea49 Fixed a compile error. 2008-06-21 13:33:53 +00:00
batrick
ac52d97c25 Updated library handling in nse_init, and made
nmap library properly return its library table.
2008-06-21 13:28:03 +00:00
kris
ac5138b975 NSE re-categorization
* Merge the "backdoor" category into "malware"
* Add "auth" for authentication credential determination
* Rename "vulnerability" to "vuln"
* Place 12 scripts into their correct categories
2008-06-21 06:34:03 +00:00
michael
30d60b97ed setServiceXMLBuf now uses the string class exclusively instead of the old c-string & string class combination. So it is no longer necessary to calculate the length of the XML service element before writing it to its buffer. 2008-06-21 05:45:11 +00:00
doug
3bc22411eb Moved SIPOptions back down below GetRequest
PRO:
  * GetRequest is applied before SIPOptions to unknown ports
CON:
  * GetRequest will be applied to 5060 before SIPOptions
2008-06-21 01:58:44 +00:00
michael
f0cbbe45f8 Fixed a segfault in printportoutput() and setServiceXMLBuf() in output.cc.
Thanks for pointing this out Brandon.
2008-06-20 22:00:40 +00:00