1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-23 07:59:03 +00:00
Commit Graph

10291 Commits

Author SHA1 Message Date
dmiller
eea45a5bf0 Process 177 more OS fingerprint submissions 2014-07-21 03:59:39 +00:00
dmiller
5f8ce142aa Process 200 more OS fingerprint submissions 2014-07-19 03:28:31 +00:00
dmiller
59feae8a5e Process 200 more OS fingerprint submissions 2014-07-18 03:01:56 +00:00
dmiller
04f1b83d0d Process 250 more OS fingerprint submissions 2014-07-17 20:17:00 +00:00
dmiller
9c9533a404 Process 250 more OS fingerprint submissions 2014-07-16 19:15:52 +00:00
dmiller
fc743a77eb Manual merging of OS fingerprints
Because of previous merging, some fingerprints had grown to encompass
others. Other fingerprints for the same or similar devices were close
enough that they could be merged. This was a manual review of 614
fingerprints that were identified as differing from some other
fingerprint by only the SEQ line (256 unique non-SEQ fingerprints).

The result: 44 fingerprints were merged into others, or were deleted
because they were a proper subset of some other fingerprint (e.g. Linux
2.6.17 that is not distinguishable from a broader Linux 2.6.11-2.6.32
fingerprint). A couple of these appeared to be identical copy-and-paste
errors in the past. I was very conservative in what I chose to merge,
choosing only the most-obvious fingerprint pairs that did not lose
information (e.g. not merging unrelated specialized devices, even if
their fingerprints were very close).
2014-07-15 03:04:34 +00:00
dmiller
70e318c2ff Process 200 OS fingerprint submissions 2014-07-12 04:41:28 +00:00
dmiller
5ce61b556e Make a more descriptive error when raw sockets fail.
Doesn't happen often, but as the message says, certain Solaris zones can
cause problems here. This message is more informative than the previous
"socket troubles in Init"
2014-07-11 04:00:26 +00:00
dmiller
e603da4a4f Remove some minor changes to timing updates in connect scans
This change restores the control flow of handling connect() return and
error values. This shouldn't result in any real changes, but makes it
simpler to see the differences introduced in r33185.
2014-07-10 14:21:30 +00:00
jay
f555f91382 Added documentation in docs/refguide.xml for --data and --data-string options 2014-07-10 11:18:37 +00:00
henri
b5a6d20a6e Fail early when unable to properly resolve proxy names.
Some errors were not properly propagated. Ensure proxy_resolve() returns
a negative error code and make the caller fatal() when unable to complete
proxy_chain initialization for whatever reason.
2014-07-08 17:50:51 +00:00
dmiller
12004b5d41 Detect self-connected TCP connect probes
Recent discussion here: http://seclists.org/nmap-dev/2014/q1/136
2014-07-08 16:09:15 +00:00
dmiller
567e344ad7 Fix assertion failure in do_one_select_round
Since the refactor in r33185, getting a good response for a host during
a ping scan can remove all outstanding probes for that host, since we
already know the host is up. This broke the existing iteration in some
cases. I could force the crash with: nmap -sn -PS80-89 scanme.nmap.org

Now we check explicitly for an empty list each time through the loop.
2014-07-08 15:17:12 +00:00
dmiller
65c50eb695 re-apply r33185
Consolidate connect-scan status and errno checking

    Previously, the return value and socket errors from the connect() call
    were checked in two different places: immediately after the call, and
    then later as the sockets were select()ed over. This led to a divergence
    of logic, so the immediate checking failed to set state reasons or
    contribute to timing. This commit puts all such checking into a single
    function, handleConnectResult, so further improvements will not diverge
    again.
2014-07-08 15:17:10 +00:00
d33tah
e267e79938 Coding style fix (grep ' =[^ =]' *.h *.cc). 2014-07-08 14:47:56 +00:00
d33tah
2cc8da210a Revert "Consolidate connect-scan status and errno checking". 2014-07-08 14:23:51 +00:00
dmiller
ae4cae1c6e Consolidate connect-scan status and errno checking
Previously, the return value and socket errors from the connect() call
were checked in two different places: immediately after the call, and
then later as the sockets were select()ed over. This led to a divergence
of logic, so the immediate checking failed to set state reasons or
contribute to timing. This commit puts all such checking into a single
function, handleConnectResult, so further improvements will not diverge
again.
2014-07-08 02:59:15 +00:00
batrick
4d131d2217 Fix a pattern mixup.
\ --> /

found by klaudiu@freenode.

I added some short test asserts to confirm the pattern works.
2014-07-07 17:36:17 +00:00
dmiller
9ac14c97df Fix some globals and name mismatches in telnet-brute 2014-07-07 17:15:13 +00:00
jay
5391cd646c Added --exclude-ports to docs/nmap.usage.txt 2014-07-04 05:58:08 +00:00
jay
3b59b0ae16 Added --exclude-ports option to Nmap 2014-07-04 05:47:11 +00:00
jay
e63eb7211e Corrected some typos in portlist.h 2014-07-03 12:14:58 +00:00
dmiller
cfd1c5fe65 Set reasons when connect() comes back immediately
In sendConnectScanProbe, the usual method is to start a non-blocking
connect() and then do select() on the sockets until we get a result. On
some platforms and in some circumstances, connect() either blocks or
comes back immediately. We handled this by setting the port state
appropriately, but we didn't set the reason, yielding results like "Host
is up, received no-response" and "80/tcp  open  http  no-response"
2014-07-02 15:35:12 +00:00
jay
40722be200 Added an item to todo list 2014-07-02 13:49:06 +00:00
dmiller
64a6e9325d Integrate 240 OS fingerprint submissions 2014-07-02 04:17:01 +00:00
jay
2b30085d90 Catch Zenmap's MemoryError (caused by large Nmap Output) and provide the user a more useful error message so that we get less of the out-of-memory "crash reports" 2014-07-01 16:53:10 +00:00
fyodor
0066d3b24e Add Nmap on Android idea 2014-06-30 19:05:52 +00:00
devin
7dbf13ab3e Modified http-affiliate-id to follow amzn.to tinyurls. 2014-06-30 19:00:14 +00:00
jay
9de9c77d91 Make Zenmap use SIGTERM (instead of SIGKILL) for "Cancel Scan" so that Nmap has a chance to shutdown cleanly.
However, if Nmap is still running after 5 seconds, send a SIGKILL.
2014-06-28 09:59:00 +00:00
dmiller
1d0509f210 Integrate 160 OS fingerprint submissions 2014-06-27 03:03:57 +00:00
devin
d68396d823 Merged Lpeg branch 2014-06-26 20:12:54 +00:00
d33tah
9fe9545d49 Some more whitespace fixes. 2014-06-26 15:14:04 +00:00
dmiller
1320ea9ca2 Remove leftover debugging statement 2014-06-26 04:01:44 +00:00
dmiller
a0a94f9303 Properly handle interfaces with NULL addresses
Some vsnprintf implementations (or perhaps some compiler options?) don't
like formatting NULL as %s, and will segfault (ran into this with
libstdc++ on Solaris). We don't get bug reports because at least some
(including mine on Ubuntu) will simply format it as "(null)".

This patch adds explicit checking for NULL to avoid the segfault
condition.
2014-06-26 02:53:57 +00:00
dmiller
add985a2d1 Update configure from configure.ac after r33055 (whitespace) 2014-06-26 02:53:55 +00:00
d33tah
a80c90608c sed -i 's/if ( /if (/g' *.cc *.h; sed -i 's/for ( /for (/g' *.cc *.h; sed -i 's/( /(/g' nmap_amigaos.h tcpip.h service_scan.cc
There's still quite a lot of code like this, nse_openssl.cc being most
messy IMHO. Also, I left out "if( something )" syntax.
2014-06-25 15:40:54 +00:00
dmiller
3e6e5b1c51 Integrate 200 OS fingerprint submissions 2014-06-25 04:48:33 +00:00
jay
380de5f576 Catch badly named output files
For example, "-oX -sV logfile.xml" would have meant write to a file named '-sV' previously
Now, it generates the error message "Output filename begins with '-'. Try '-oX ./-sV' if you really want it to be named as such. QUITTING."
2014-06-24 16:05:09 +00:00
d33tah
6327679f15 Fix whitespace in configure.ac. 2014-06-24 09:25:09 +00:00
claudiu
39def56cde Fix false positives with SSL/TLS implementations that are not OpenSSL 2014-06-20 10:20:24 +00:00
claudiu
2772733958 STARTTLS support for LDAP 2014-06-20 10:11:38 +00:00
jay
f5e438b966 Got rid of (unnecessary) spaces in blank lines in *.cc and *.h files.
sed -i 's/^\s*$//'
2014-06-19 11:36:10 +00:00
dmiller
ec9074f718 Correct "it's" to "its" where necessary
it's = it is
its = belonging to it
2014-06-19 04:58:46 +00:00
dmiller
d90d991571 Correct a typo 2014-06-19 04:06:08 +00:00
dmiller
af57ddfd90 Minor whitespace cleanup 2014-06-18 17:16:24 +00:00
d33tah
c0873dc81d Whoops. Missed Target.cc. 2014-06-18 11:33:35 +00:00
d33tah
421176fc00 Get rid of double newline at the EOF I accidentally introduced in the
last commit.
2014-06-18 11:30:02 +00:00
d33tah
e3d1c178e3 Add newlines at the EOF in conformance to Daniel's coding standards
proposal. This only affects Nmap's root directory. We might also need to
modify the code which autogenerates Nmap's source code files such as IPv6
fingerprinting code.
2014-06-18 10:18:58 +00:00
dmiller
e69325c0f8 Add s7-info script, for more SCADA/ICS enumeration 2014-06-18 02:53:29 +00:00
claudiu
0f17475b15 Implemented STARTTLS support for IMAP and POP3 2014-06-17 07:46:55 +00:00