1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-22 15:39:03 +00:00
Commit Graph

1666 Commits

Author SHA1 Message Date
kris
5f2e6cf5ac Fixing a Windows casting-related compilation error. Thanks to Jah for reporting this 2008-07-26 02:58:07 +00:00
kris
332e8aa176 (The last paragraph of this message has an implementation re-work suggestion)
o Fixed host discovery probe matching when looking at the returned TCP data in
  an ICMP error message.  This could lead to incorrectly discarded responses
  and the debugging error message: "Bogus trynum or sequence number in ICMP
  error message" [Kris]

Fyodor was getting the error message "Got ICMP error with a TCP header that was
too short" while scanning, and looked at the code to see a comment I made about
requiring 12 bytes of TCP data in an ICMP error message instead of the minimum
RFC requirement of 8 bytes.

I made this comment and requirement because tcp_trynum_pingseq_decode() was
being called on the TCP data, and was using the ACK field (which is just past
the 8 byte range).  However, upon further inspection, we came to the conclusion
that this code was broken because examining the ACK field should only be done
on a TCP response, not on our own probe (which is what we're looking at in the
ICMP data).

This assumes that -g is used (the only reason that the SEQ/ACK is checked since
the source port number is used otherwise), but the code is also broken without
it because the *_decode() function checks the destination port number rather
than the source port (which should be checked since it's our own probe we're
looking at).

So I've removed the 12-byte requirement and pingseq checking calls, and just
check that the received SEQ number matches the probe SEQ number.


Should we just work with the SEQ/ACK matching when using TCP and leave the
pingseq/trynum port number encoding to UDP?  This means behavior won't change
with the use of -g, and it should be guaranteed to be there since we'll only
be looking at whole TCP headers rather than any smaller chunks.  Plus, the SEQ
number is already getting encoded with the pingseq/trynum info, we're just not
decoding the ACK responses unless -g is used.
2008-07-26 00:25:24 +00:00
fyodor
9cbd4d40ba slight updates to some MailEnable smtpd sigs 2008-07-25 21:56:50 +00:00
michael
aa067825d2 Updated changelog with information about new menu items for zenmap 2008-07-25 21:41:50 +00:00
david
d7601de2e4 Add July 2008 OS corrections. 2008-07-25 15:36:44 +00:00
david
ef0ee2fc39 Commit CHANGELOG entry for r9056 (don't show byte rates during TCP connect
scan).
2008-07-23 22:24:01 +00:00
david
625d88293e Avoid showing the sending rate in bytes per second if no sent bytes have been
recorded. This applies during a TCP connect scan, where we have a count of
packets sent but not of bytes (which we cannot measure, and will vary from
platform to platform).
2008-07-23 22:21:37 +00:00
david
18a4caff83 svn:ignore some more Autoconf-generated files. 2008-07-23 21:29:48 +00:00
david
620a727e39 Add some CHANGELOG entries for recent work. 2008-07-23 21:27:41 +00:00
david
08a3d13bae Integrate another 180 OS submissions, the last of the batch from July 16. 2008-07-23 20:08:35 +00:00
fyodor
5f75bb7dd2 fix a wrong function name, noted by Matthew Boyle 2008-07-23 07:31:56 +00:00
fyodor
d0dddaf216 fixed nmapparser link, as the project has moved and nmapparser . com has become a spam blog :(. Noticed by David 2008-07-23 05:20:44 +00:00
david
244f1a33d5 Add the results of integrating 130 OS submissions. 2008-07-23 03:15:43 +00:00
fyodor
8f90946c0f fix some typos notest by João Medeiros 2008-07-23 03:07:55 +00:00
david
64b2a328bc Slightly expand the SEQ.SP range of an OS fingerprint. 2008-07-17 16:40:19 +00:00
michael
949ec1a6ca Fixed old comments and added an assertion, and updated the changelog. 2008-07-17 16:09:07 +00:00
david
6d41534dee Fix a duplicate word: "We designed NSE to to versatile". 2008-07-17 14:48:47 +00:00
fyodor
bad861112a apply some changes suggested by João Medeiros 2008-07-17 05:02:47 +00:00
michael
43d21f7faa Prevented protocol timing probes from being sent out during udp or tcp scans 2008-07-16 18:51:46 +00:00
david
e14b863cb9 Update nmap-os-db to use Apple capitalization: "iPod touch". 2008-07-16 17:11:58 +00:00
david
70ad9ac51b Commit the results of 127 OS submissions. 2008-07-16 17:05:08 +00:00
david
30216131a6 Remove some new index duplicates. 2008-07-16 15:03:21 +00:00
fyodor
e88e1306b8 applied some suggestions from eldraco <eldraco@gmail.com> 2008-07-16 09:22:20 +00:00
david
78fa9e8198 Integrate May 2008 OS corrections. 2008-07-16 02:39:03 +00:00
david
3592f0c29b Add the results of intergrating about 300 OS submissions. 2008-07-16 00:52:23 +00:00
fyodor
97ebf72f84 minor updates 2008-07-15 23:49:53 +00:00
michael
58536720e9 Fixed ping timing probe slowing down scan problem. 2008-07-15 22:18:36 +00:00
david
dbb3452315 Bump up MAX_OS_CLASSIFICATIONS_PER_FP from 8 to 10. 2008-07-15 20:07:25 +00:00
kris
bc3b9484e6 Move tval2msecs() to Nbase for reuse 2008-07-15 20:06:05 +00:00
bmenrigh
c123984aa5 Minor wording changes to improve the flow of the opening few
paragraphs.  I'll be going through the rest of the chapter if time
permits.
2008-07-15 19:36:08 +00:00
michael
62340eabc8 Fixed bug from my previous commit, recommiting 2008-07-15 19:11:53 +00:00
michael
575b6cee19 Rolled back change while I fix a bug 2008-07-15 18:15:34 +00:00
michael
f57301ef61 Expand the range of pcap filters in scan_engine.cc to allow more types
of timing pings during port scanning.
2008-07-15 07:13:27 +00:00
david
486856bf17 Increase the line buffer for reading fingerprints in osscan.cc. The latest
nmap-os-db has a fingerprint with a lot of merged options with different window
scales that was too long for the buffer.
2008-07-15 05:33:33 +00:00
david
d9ad62fa60 Commit the results of about 220 OS submissions. 2008-07-15 05:32:24 +00:00
fyodor
10d136939b some more changes from jah 2008-07-15 01:10:35 +00:00
fyodor
187fe5c506 a bunch of updates from jah 2008-07-15 00:50:36 +00:00
david
b48edf6108 Remove "the order used to be" comment in scan_engine.cc. 2008-07-15 00:01:45 +00:00
michael
819831772b nged the order that pingprobes are favored in, the order is now:
-Raw TCP (not SYN to an open port)
-ICMP information queries (echo request, timestamp request, netmask req)
-ARP
-Raw TCP (SYN to an open port)
-UDP, IP protocol, or other ICMP
-TCP connect
-Anything else

The order used to be
-ARP
-Raw TCP (not SYN to an open port)
-UDP, IP protocol, or ICMP
-Raw TCP (SYN to an open port)
-TCP connect
-Anything else
2008-07-14 21:11:58 +00:00
fyodor
0f41f60361 proofreading changes from Eric Krosnes 2008-07-14 21:10:22 +00:00
fyodor
8e1102ed27 proofreading changes from Eric Krosnes 2008-07-14 21:06:52 +00:00
kris
299e0de19e o Added --ip-options support for the connect() scan (-sT). [Kris] 2008-07-14 20:02:30 +00:00
kris
ffb3d8202d Documenting an earlier change and adding a new, related one:
o Nsock now supports binding to a local address and setting IPv4 options
  with nsi_set_localaddr() and nsi_set_ipoptions(), respectively. [Kris]

o Nmap's Nsock-utilizing subsystems (DNS, NSE, version detection) have been
  updated to support the -S and --ip-options flags. [Kris]
2008-07-14 19:52:31 +00:00
fyodor
205ffa2274 IP address change 2008-07-14 10:14:44 +00:00
fyodor
2c5087e010 a couple changes suggested by tic (tic@eternalrealm.net) 2008-07-14 08:36:46 +00:00
fyodor
7bc9b524cd apply some edits from Kris Katterjohn <katterjohn@gmail.com> 2008-07-14 07:12:10 +00:00
fyodor
13878c1a1f apply some suggestions from Michael Pattrick 2008-07-14 06:51:23 +00:00
david
f8a9054ffd Use abbreviated xrefs when they are close to the things they reference. 2008-07-14 06:36:23 +00:00
fyodor
911a55cccf apply some changes suggested by Tom Sellers 2008-07-14 06:08:55 +00:00
fyodor
63eef82b69 some fixes suggested by Eric Krosnes 2008-07-14 04:35:18 +00:00