fyodor
86e59a8c4e
Update copyright statements from 2010 to 2011
2011-01-21 00:04:16 +00:00
david
7653cf7d4a
Move COPYING.OpenSSL to OpenSSL.txt, update copyright notices to match.
2010-10-30 03:01:50 +00:00
fyodor
1aecac420f
Update copyright year from 2009 to 2010
2010-05-03 21:20:25 +00:00
david
e9fc299fea
Fix a typo in an error message, also provide more information.
2010-04-19 18:01:37 +00:00
david
06afa7b303
Add a constructor for FingerPrint.
2009-12-18 07:59:31 +00:00
david
e945eb0c8d
Change the static functions getattrbyname and gettestbyname into public
...
methods of AVal and FingerTest, respectively.
2009-12-18 00:04:35 +00:00
david
a06b900f00
Merge from /nmap-exp/david/nmap-mem. This reduces the memory usage of OS
...
scan by about 95%. (66832396 bytes to 2815061 bytes according to
Massif.)
2009-11-23 21:22:07 +00:00
david
3bea09fabc
Get rid of a warning "Classification of observed fingerprint does not
...
appear in reference fingerprint" and the code used to support it. This
happens all the time with submitted fingerprints and is nothing to worry
about. I don't want to be distracted from other warnings. This code was
only used by the OS fingerprint integration tools, not by Nmap itself.
2009-11-13 18:29:08 +00:00
david
53deb965ce
All parse_single_fingerprint to handle a MatchPoints pseudo-print.
2009-11-11 19:36:10 +00:00
david
6dc99d0e25
Fix a typo in parse_fingerprint_file; after calling strpbrk we need to
...
test teh return value, not the (unchanged) value we passed in. This
would cause a segmentation fault instead of a fatal error if nmap-os-db
ended in a Fingerprint line that didn't have a terminating newline.
2009-08-24 21:25:06 +00:00
david
66ec6eab6f
Fix a memory leak in parse_single_fingerprint. This function isn't used
...
in Nmap, but only in the separate fingerprint utilities.
2009-08-24 19:19:11 +00:00
david
4c6bafb3fa
o There is a new OS detection pseudo-test, SCAN.DC, which records how
...
the network distance in SCAN.DS was calculated. Its value can be "L"
for localhost, "D" for a direct connection, "I" for an ICMP TTL
calculation, and "T" for a traceroute hop count. This is mainly for
the benefit of OS integration, when it is sometimes important to
distinguish between DS=1%DC=I (probably the result of forged TTLs)
and DS=1%DC=D (a true one-hop connection.) [David]
2009-08-23 23:58:28 +00:00
josh
df71e36084
Updated uses of the ctype function to support explict casting of the arguments
...
to (int)(unsigned char).
2009-08-06 15:10:00 +00:00
fyodor
d0e21e1d03
Suggest that people send patches to nmap-dev rather than to me directly
2009-04-15 00:37:03 +00:00
fyodor
eccc235d5a
Increase copyright year to 2009, simplify/reword some derivative works text, and remove a confusing clause about selling proprietary front-ends to Nmap
2009-03-31 04:16:12 +00:00
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