david
7f9bac76b2
Make the buffer for formatting the SCAN.DS test value in an OS fingerprint a
...
little bit bigger, so some seriously wrong distances aren't truncated. The
buffer size used to be 8, which couldn't hold an observed network distance of
-190:
%DS=-19\0
01234567
I increased it to 10.
2008-10-03 18:46:22 +00:00
david
3517f3965e
Change the test for the failure of strtol in the OS scan point-matching code.
...
Previously the code checked for a zero (or negative) return value, but I want
to assign some tests a value of 0 during OS scan refinement. Now it checks
errno, makes sure the entire value was consumed, and errors on negative
numbers. In addition to allowing values of 0, this change catches bogus values
where garbage follows the number.
2008-09-26 19:04:25 +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
e9a8e327b4
Don't ever print out a FingerPrint line in fp2ascii (this was never used, and
...
in fact was worked around in several places fp2ascii was called). Ignore a
second Fingerprint line in parse_single_fingerprint.
2008-06-14 02:24:46 +00:00
david
9c646a4873
Make the parameter to parse_fingerprint_file const.
2008-06-13 17:32:47 +00:00
david
214c29c80b
Whoops, we can't free something allocated with cp_alloc. Handle it another way.
2008-06-07 04:28:56 +00:00
david
1058a9bfd9
Refactor parse_classline to be a lot more straightforward. Some of my recent
...
commits had changed its behavior because of the complicated logic that was used
before.
2008-06-07 04:18:26 +00:00
david
6abba38b19
Remove a fingerprint parsing error that can't happen anymore.
2008-06-07 03:23:52 +00:00
david
51ae7d1f24
Make parse_classline accept blank class lines like
...
Class || |
2008-06-07 03:22:00 +00:00
david
6f9f79cabf
Allow a fingerprint to have an empty description in parse_single_fingerprint.
...
This is used by OSassist which often has to read such prints. Previously it
caused a parse error.
2008-06-07 01:16:24 +00:00
fyodor
779b96a197
trivial copyright text tweak: filename nmap-os-fingerprints has changed to nmap-os-db
2008-05-22 20:45:32 +00:00
fyodor
10b54b773b
minor license template updates from Kris--fix gnu.org link to GPLv2 (moved) and openssl license filename (COPYING.OpenSSL)
2008-05-05 04:10:00 +00:00
fyodor
5551c5a311
o Fixed a bunch of code to avoid compilation warning messages (at
...
least on some Linux machines) [Andrew J. Bennieston]
2008-04-09 02:11:20 +00:00
fyodor
1accc12fb2
fix typo in legal header found by Leigh Zhao (missing word: of)
2008-02-28 18:52:06 +00:00
fyodor
29c912f394
URL change from http://insecure.org/nmap/ * to http://nmap.org/ *
2008-01-17 07:22:03 +00:00
fyodor
8220c8a42f
update copyright line at the top of files from 1996-2006 to 1996-2008
2007-12-22 06:32:03 +00:00
fyodor
09512ff092
o Fix a bunch of warning/error messages which contained an extra
...
newline. Thanks to Brandon Enright for the patch.
2007-12-21 03:38:04 +00:00
kris
c5244fb05f
Fixing a double-free crash caused when using -O and --release-memory. Found with Coverity, CID 19
2007-11-15 23:36:18 +00:00
david
c0c4c72bc5
Document that an apparently unused function is actually used by the fingerprint utilities.
2007-11-05 22:54:07 +00:00
david
50c4981934
Remove the first-generation OS detection and nmap-os-fingerprints.
2007-11-03 01:31:02 +00:00
kris
0b50c16b38
Adding Snprintf() and Vsnprintf() to nbase/nbase_str.c. This is because of Windows' stupid implementation where it doesn't write a NULL byte at the end of the buffer if the result is truncated. I would've just #defined snprintf and vsnprintf to some wrapper function for Windows, but this doesn't work as libdnet and libpcap (and libpcap includes under mswin32) define snprintf to _snprintf and vsnprintf to _vsnprintf like we do, and through the many defines they end up being available in the Nmap sources. Vsnprintf() uses vsnprintf() (and writes a NULL byte at the end if truncated), and Snprintf uses Vsnprintf().
2007-08-14 06:46:54 +00:00
fyodor
03b4dc0ec5
merge soc07 r5233 - Changed perror()s with hardcoded function names to Nmap's gh_perror() and __func__, changed perror()s followed by exit()s to Nmap's pfatal(), and removed newlines from perror()s because it breaks the line after that and before the colon and error string, which doesn't make sense
2007-08-11 05:57:54 +00:00
fyodor
5528726e5b
merge soc07 r5124:5142 - build/install system updates; changelog updates; umit install code; compilation fixes; integrate umit
2007-08-11 05:41:41 +00:00
fyodor
98ad71e782
merge soc07 r5105:5107 - Make mergeFPs work with first-gen fingerprints too; Make FingerTest_lessthan give a fatal error if an attempt is made to order even one unknown test name.
2007-08-11 05:28:15 +00:00
fyodor
6c06f51bd7
merge soc07 r5100 - Changing fprintf(stderr, )'s to error()'s (or fatal() if followed by and exit()). Besides providing consistency, this also allows more errors to actually be logged with --log-errors.
2007-08-11 05:16:56 +00:00
fyodor
8dc9673928
merge soc07 r5085 - Changing bare printf()s to log_write(LOG_PLAIN,)s because these were always printed even when things like XML and greppable output were sent to stdout (e.g. -oX -). This also adds o.scriptTrace() to make --script-trace behave more like --packet-trace and --version-trace. Nsock tracing was done unconditionally in NSE, and that has been changed to only be done when o.scriptTrace() is true.
2007-08-11 05:13:16 +00:00
fyodor
90a0087bb4
merge soc07 r5081 - changed close to 100 occurrences of LOG_NORMAL|LOG_SKID|LOG_STDOUT (and combinations) to LOG_PLAIN, and moved LOG_PLAIN definition to output.h from traceroute.h
2007-08-11 05:11:47 +00:00
fyodor
69763672e0
merge soc07 r5049 - Print a more useful error message if an attempt is made to compare two unknown fingerprint tests.
2007-08-11 04:56:38 +00:00
fyodor
824af7f76e
merge soc07 r5046 - Make the merging code in osscan.c:mergeFPs more sophisticated.
2007-08-11 04:54:42 +00:00
fyodor
8d74bbcd8a
merge soc07 r4871:4884 and r4888 - renaming __FUNCTION__ to __func__ and changing hardcoded func names to __func__
2007-08-11 04:06:09 +00:00
fyodor
5e3bb361f2
merge soc07 r4860 - Add verbose data file path reporting. Some more changes might be coming, for example to change the conditions under which this information is displayed.
2007-08-11 03:59:18 +00:00
fyodor
58522c59f6
merge soc07 r4822 - Reduce the number of build dependencies.
2007-08-11 03:35:46 +00:00
fyodor
f5e32d305f
merge soc07 r4780 - Moved OSScan warning message (may not be reliable because could not find 1 open and 1 closed port) so it is printed along with the OSScan results instead of above it
2007-08-11 03:24:04 +00:00
kris
aff1d727ef
Merging in r4769:4773 from /nmap-exp/soc07/nmap
2007-05-23 22:51:25 +00:00
fyodor
0cf10273e2
udp port 0 fix from Kris
2007-05-19 23:33:15 +00:00
fyodor
94b77b4980
trivial grammar fix
2007-03-16 08:47:13 +00:00
fyodor
43d61bf6b7
remove fake_seqs nonsense
2007-03-13 18:03:21 +00:00
kris
f221d54908
Change a little over 10 malloc()s and realloc()s to their safe_* equivalents (which let's us get rid a two checks on the returned mem elsewhere in the code).
2007-02-25 15:43:56 +00:00
kris
69754e8311
Use dnet headers for TCP and UDP. This allows us to remove netinet tcp.h and udp.h references, the udphdr_bsd stuff, and the TH_ECE/TH_CWR #defines in tcpip.h. That was easy, but we (Fyodor and I) came to the conclusion that IP and ICMP aren't worth the hassle to switch (I was testing TCP, UDP and IP in my branch). The struct icmp_hdr in dnet isn't setup anything like what we're using now. Then, struct ip_hdr uses ip_addr_t (typedef'd to uint32_t in that ip.h) instead of struct in_addr for the IP addresses, and that would require some dnet modifying to work right. We might be able to come up with some elegant solution for IP, but probably not for ICMP. For now, they're still left up to netinet (or tcpip.h).
2007-01-23 05:29:59 +00:00
doug
cda944c804
oops
2007-01-23 04:01:10 +00:00
doug
d26e54847b
UDP --badsum fix
2007-01-23 03:28:03 +00:00
fyodor
8e2de50dd3
Kris Katterjohn patches for code clean up, iana ip assignment update, fixe fileexistsandisreadable
2006-12-12 09:56:15 +00:00
fyodor
b361685be8
NSE committed
2006-12-11 00:34:26 +00:00
fyodor
1308928e29
Nmap 4.20, woohoo
2006-12-08 03:01:08 +00:00
fyodor
979e57ed9d
Preparing to release ALPHA10
2006-10-24 02:14:20 +00:00
fyodor
c608b64dfd
Integrate the latest fingerprint submissions
2006-10-14 06:02:43 +00:00
fyodor
e4ee4d5e4c
getting closer to 4.20ALPHA9
2006-10-14 01:25:43 +00:00
fyodor
f1440dfc89
Nmap now does better OS detection guesses when there isn't an exact match because it uses the point system (MatchPoints) now given in nmap-os-db
2006-09-25 09:08:56 +00:00
fyodor
354d0f8084
4.20ALPHA7 release imminent
2006-09-12 23:59:05 +00:00
fyodor
d7ee3ebfa7
parse_nmap_service_probe_file may not be static, some changes to osscan.cc for more verbose scripts/fingerdiff support
2006-09-12 03:35:29 +00:00