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

187 Commits

Author SHA1 Message Date
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
david
1ea0135dc8 Fix printStatusMessage to show the correct elapsed time after 24
minutes. Part of what printStatusMessage does is display the total
elapsed time. The code looked like this:

  log_write(LOG_STDOUT, 
	    "Stats: %d:%02d:%02d elapsed; %d hosts completed (%d up), %d undergoing %s\n", 
	    time/60/24, time/60 % 24, time % 60, o.numhosts_scanned - o.numhosts_scanning, 
	    o.numhosts_up, o.numhosts_scanning, scantype2str(o.current_scantype));

where time is the number of seconds since the program started. However,
this code acts as though each hour has only 24 minutes. That is, after
0:23:59 it would become 1:00:00. This commit changes the 24s to 60s to
make it work right.
2008-04-23 22:42:41 +00:00
david
c0490af2fd Remove mentions of the TCP sequence class in XML output. 2008-04-11 18:57:32 +00:00
david
c7017806cc Remove some dead gen-1 OS code. 2008-04-11 03:54:44 +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
doug
0012bd6192 Let XML output include "good" (G=N) fingerprints. 2008-01-20 23:52:23 +00:00
fyodor
29c912f394 URL change from http://insecure.org/nmap/* to http://nmap.org/* 2008-01-17 07:22:03 +00:00
fyodor
b686bc1964 We now escape newlines, carriage returns, and tabs (\n\r\t) in XML
output.  While those are allowed in XML attributes, they get
  normalized which can make formatting the output difficult for
  applications which parse Nmap XML. [Joao Medeiros, David, Fyodor]
2008-01-13 22:13:53 +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
david
b131ed23fa Fix the message printed when a host is skipped, for example on Windows when
attempting to scan localhost. It used to look like
  All 0 scanned ports on 127.0.0.1 are 
("Are what?") Now it looks like
  0 ports scanned on 127.0.0.1
2007-12-14 09:53:42 +00:00
david
48dec0f9d9 Escape OS fingerprints when writing them to an XML log. OS fingerprint don't
currently contain any characters that need escaping, but this makes them
future-proof. This was noticed by João Medeiros.
2007-12-14 07:31:17 +00:00
kris
9ae985ef59 okay, a change to r6530: the current %R and %T are being removed as colons are invalid chracters in Windows and Mac OS X filenames (thanks to jah for pointing out the problem on Windows). What was %r and %t are now the new %R and %T. All this means is that %r and %t are gone, and %R/%T are the same as with strftime() but without colons 2007-12-14 04:04:22 +00:00
kris
2425765f4e Adding my strftime()-like conversion extensions to the logging functions (-oA, -oX, etc). This contains a CHANGELOG entry and refguide changes which (hopefully) sum it up pretty well. 2007-12-13 21:22:57 +00:00
kris
1b1fcc753b Adding a new ping type: IPProto Ping. It's used with '-PO'. I've changed references to -P0 (zero) to -PN throughout the source code and refguide.xml 2007-10-28 00:05:03 +00:00
fyodor
ad74d5a4b0 change IPID to IP ID in Nmap output as I think the latter is more proper, though if anyone thinks IPID is better, I'm happy to hear your reasons. 2007-09-08 21:43:51 +00:00
fyodor
4dda435692 make text line up better 2007-09-07 00:14:19 +00:00
fyodor
39ac78e0bf fixed a bug which prevented the 1st aggressive OS guess (i.e. when there are no exact matches) from being printed to XML output. Bug found by Martyn Tovey 2007-09-03 19:48:44 +00:00
fyodor
6d405bebaf change wording slightly when Nmap finishes. Say 'Nmap done' rather than 'Nmap run completed' or 'Nmap finished'. Its shorter. 2007-08-27 09:28:16 +00:00
kris
d073a19105 Change reason.cc/h to portreasons.cc/h. This is because of a reason.h on Windows which causes compilation problems. A workaround was employed, but this is incase it pops up again. I also changed the recent CHANGELOG entry mentioning reason.h so there's no confusion 2007-08-15 19:26:26 +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
23e9e0b1d2 merge soc07 r5225 - fix for systems which return -1 when vsnprintf doesn't have enough space rather than returning the amount of space needed. 2007-08-11 05:56:10 +00:00
fyodor
622995be62 merge soc07 r5209 - --iflist bug. The parameters to NmapOutputTable were in the wrong order but due to the number of interfaces on my computer it still worked 2007-08-11 05:54:20 +00:00
fyodor
8d85a7b75b merge soc07 r5161:5165 - --iflist null device bugfix 2007-08-11 05:46:39 +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
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
f025e86b0b merge soc07 r5085:5094 - removed a period which could lead to slightly confusing output such as 'Read data files from: ..' when they are read from the current directory; Always print a message when the script database is updated successfully; Added a whole bunch of entries to the CHANGELOG in preparation for the first soc07 release; latest auto-generated files; add a question mark to a textual question 2007-08-11 05:14:52 +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
a09a6e2007 merge soc07 r4994:5001 - Adding <portused> element for the open TCP port used when performing OS Detection. Only closed TCP and UDP were being printed; I guess it was just an oversight; Call endTask() in process_mainloop() in nse_main.cc so task ending information (like the <taskend> element) are printed; old_locale is allocated on the STACK not the HEAP; NULL is NOT a valid PCRE pointer. 2007-08-11 04:42:31 +00:00
fyodor
2af8e785f8 merge soc07 r4957 - Put <extrareasons> inside <extraports> as this should really simplify XML parsers' jobs because they won't have to keep track of what states and reasons go together 2007-08-11 04:29:50 +00:00
fyodor
65e680a634 merge soc07 r4939 - fixed a small bug in formatscriptoutput (output.cc) which caused a core dump 2007-08-11 04:25:05 +00:00
fyodor
f69d93c65a merge soc07 r4899:4902 - Add a note to the reference guide saying that --servicedb implies -F; Rewrite in C the dirname and basename replacements used in printdatafilepaths and move them into nbase. Their names are now path_get_dirname and path_get_basename.; Give a fatal error in printdatafilepaths if memory can't be allocated, rather than returning silently. 2007-08-11 04:15:39 +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
65bc340828 merge soc07 r4863 - Add some logic to printdatafilepaths to control what gets displayed 2007-08-11 04:00:36 +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
8b9a340fc4 merge soc07 r4829 - Added winpcap device names to the --iflist table 2007-08-11 03:44:40 +00:00
fyodor
58522c59f6 merge soc07 r4822 - Reduce the number of build dependencies. 2007-08-11 03:35:46 +00:00
fyodor
c6f2ab6e83 merge soc07 r4804 - misc. NSE improvements 2007-08-11 03:32:26 +00:00
fyodor
3f2f00900a merge soc07 r4799 - NSE formatScriptOutput() function uses strtok which has side effects on its argument. 2007-08-11 03:30:38 +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
fyodor
58f46706e5 merge soc07 r4751 - UDP traceroute hop distance and port state reason feature 2007-08-11 03:15:24 +00:00
fyodor
e02e4cfef2 fix xml bug 2007-03-18 01:00:32 +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
cc14c538ad Removing extraneous newlines (sometimes up to 9 of them) from ends of a few files 2007-02-04 02:53:29 +00:00
diman
65d08549c7 Hopefully final --iflist bug
the routes are now displayed correctly
2007-01-08 21:56:22 +00:00
fyodor
84340f5737 Fixed a bug which prevented the --without-liblua compilation option from working. Thanks to Kris Katterjohn for the patch. 2007-01-03 20:46:14 +00:00
fyodor
12e25f4879 possibly fixed a xml not-well-formed bug in service element reported by Jason Edelstein 2006-12-31 23:36:51 +00:00
fyodor
4ea7ef7178 typo 2006-12-16 08:42:55 +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