1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-20 06:29:02 +00:00
Commit Graph

2789 Commits

Author SHA1 Message Date
fyodor
f0c645b9f2 2009-02-17 07:30:23 +00:00
fyodor
7917f7ae92 2009-02-17 07:12:52 +00:00
fyodor
874318bb34 note LQ award 2009-02-17 05:28:41 +00:00
fyodor
b226bdea98 Changes from chat with David and some of my own brainstorming 2009-02-17 00:00:54 +00:00
doug
7b862ddd1e Another batch of misc from nmapsubmit-svfp-020309.mbx (hah - gopher) 2009-02-16 22:27:30 +00:00
david
827bf68360 Remove nmap-$(NMAP_VERSION)-win32.zip before rebuilding. If this isn't done,
then old files that were in a previous build can be in the zip file of a new
build that doesn't have those files anymore. When the zip command sees an
existing archive, it modifies the archive rather than rebuilding it from
scratch.
2009-02-16 19:04:41 +00:00
david
de3b94ac54 Remove the /OPT:NOWIN98 option from the Windows linker options. This gets rid
of a warning:
6>Linking...
6>LINK : warning LNK4224: /OPT:NOWIN98 is no longer supported;  ignored
2009-02-16 18:50:36 +00:00
david
111146a717 Use script ids instead of full paths in NSE start/finish/error debug output. 2009-02-16 17:40:55 +00:00
david
0b3ff10e1d Simplify the retrieval of script ids. Make get_id a method of struct
thread_record. Pass that directly to ScritpResult::set_id. The function
process_getScriptId is no longer needed.
2009-02-16 17:37:14 +00:00
doug
91129a3830 Lots more misc services from nmapsubmit-svfp-020309.mbx 2009-02-15 03:00:02 +00:00
fyodor
2f15befaf8 2009-02-15 02:40:12 +00:00
fyodor
8fe1c1226d 2009-02-15 01:54:23 +00:00
doug
bae386daa4 * Lots of misc fingerprints from nmapsubmit-svfp-020309.mbx
* Update to socks5 probe. Big thanks to Brandon for letting me test his machines!
2009-02-14 21:31:36 +00:00
david
31e62d195d Fix an awkward cross-reference in scripting.xml. The generated text looked like
"These five variables are described in <versioninfo>" because the reference was
to a list item, not to its enclosing section. I changed it so it becomes 'These
five variables are the same as those described under <versioninfo> in the
section called "match Directive"'.
2009-02-14 16:26:50 +00:00
david
fb0f1cdd93 Remove an unnecessary call to keyWasPressed right before service_scan;
service_scan does that itself.
2009-02-14 16:25:46 +00:00
david
df25884daa Add to CHANGELOG:
o [Ncat] The --send-only and --recv-only options now work in listen
  mode as well as connect mode. [David]
2009-02-13 21:21:22 +00:00
david
77a304fb24 Eliminate a couple of (false) uninitialized variable warnings in
scan_engine.cc. Patch by Daniel Roethlisberger.
2009-02-13 16:14:20 +00:00
doug
7d6ead8b39 Last of the HTTP fingerprints from nmapsubmit-svfp-020309.mbx. 710 out of 1746 remaining FPs 2009-02-12 21:13:29 +00:00
david
f2bbe854c8 Use unsigned chars when writing an Ncat hex dump file. On platforms with signed
chars, bytes with value above 0x7F were being sign-extended within a three-byte
buffer to become FFF. This made output like

[0000]   16 03 00 00 53 01 00 00   4F 03 00 3F 47 FFFFFFFFF  ....S... O..?G...
[0010]   2C FFFFFFFFF60 7E FFF00   FFFFFF7B FFFFFFFFFFFF77   ,...`~.. ..{....w
[0020]   FFFFFFFFFFFF3C 3D FFF6F   FFF10 6E 00 00 28 00 16   ....<=.o ..n..(..

Fixed, it looks like

[0000]   16 03 00 00 53 01 00 00   4F 03 00 3F 47 D7 F7 BA   ....S... O..?G...
[0010]   2C EE EA B2 60 7E F3 00   FD 82 7B B9 D5 96 C8 77   ,...`~.. ..{....w
[0020]   9B E6 C4 DB 3C 3D DB 6F   EF 10 6E 00 00 28 00 16   ....<=.o ..n..(..
2009-02-12 17:30:07 +00:00
david
dde083e900 Fix the formatting of the uptime in snmp-ssydescr.nse so it looks like
"0:03:02.72 (18272 timeticks)", not "0:3:2.72 (18272 timeticks)" (note padding
zeroes).
2009-02-12 04:23:41 +00:00
doug
e47bff465c Some more http from nmapsubmit-svfp-020309.mbx 2009-02-11 22:32:47 +00:00
doug
5927876ba9 Rough draft of the different device types for OS and service detection.
* Still needs to be XMLified before adding to docs
2009-02-11 21:54:33 +00:00
david
e0250c1b66 Change the conditions for printing a timing status update to what I think they
were intended to be. We are okay to print if
  1. We don't have a completion time estimate yet; or
  2. We have passed the last completion time estimate; or
  3. The estimated time remaining differs from the last one printed by more
     than 3 minutes, and the difference accounts for more than 5% of the
     estimated total time.
The problem was that the last printed time remaining was calculated not as
difftime(last_est.tv_sec, last_print.tv_sec), but as
difftime(last_est.tv_sec, now->tv_sec). In other words it was constantly
changing, and at the same rate as the estimated time left (if the scan was
progressing at a constant rate). That means that as soon as a completion time
estimate was fairly accurate, you would not get any more estimates because the
difference in the two times would always be small.
2009-02-11 18:56:46 +00:00
david
898c2a41a0 Clean up some ScanProgressMeter code to reduce code duplication and avoid
overflows by doing math with doubles. Based on a patch by Henri Doreau.
2009-02-11 17:50:19 +00:00
david
c2bedcf99a Fix a test against a struct timeval in ScanProgressMeter::printStatsIfNecessary.
The test was (last_print.tv_sec < 0), which is never true. I changed it to
last_print.tv_sec == 0, which checks if the last_print structure has been given
a value yet. This little bug appears not to have mattered much, because in the
else branch of the if, other calculations with an uninitialized last_est struct
seem to have resulted in a true value anyway.
2009-02-11 17:36:11 +00:00
david
6ad92e7983 Fix a small harmless typo in timing.cc. 2009-02-11 16:27:26 +00:00
fyodor
d0120217ad fix bug found by David 2009-02-10 21:18:36 +00:00
fyodor
b85881afe0 some typo fixes from Gisle Vanem 2009-02-10 19:05:06 +00:00
doug
0ccb796e34 * Another batch of HTTP from nmapsubmit-svfp-020309.mbx (almost 2/3 done the HTTP ones now)
* Found and deleted/fixed a few garbage http match lines
2009-02-10 18:03:08 +00:00
doug
bc378dc626 * Another batch of HTTP from nmapsubmit-svfp-020309.mbx
* Moved lighttpd match lines from HTTPOptions to GetRequest (HTTPOptions falls back to GetRequest).
2009-02-10 06:45:32 +00:00
david
40878cecf9 Change the pattern used to decide which NSE output characters to escape. It was
"[^%w%s%p]"; it's now "[^\t\r\n\032-\126]". The old pattern missed the form
feed character, ASCII 12, which is illegal in XML.
2009-02-10 05:57:51 +00:00
david
2d018963ca Use dns.decStr in dns-zone-transfer.nse instead of a custom DNS decoder. This
avoids an infinite recursion bug present in the old decoder. I raised the
number of compression pointers that dns.decStr will follow from 1 to 3 because
I found a server that sent 2.
2009-02-10 00:53:26 +00:00
fyodor
b83d8141bf Changes from 2 hours of IM chatting with David :) 2009-02-10 00:14:56 +00:00
fyodor
5c4444ddb5 new David ndiff task 2009-02-09 19:37:26 +00:00
fyodor
c0e819e86e rewording suggested by angico 2009-02-09 18:56:01 +00:00
david
83cb7d60b9 Clean up usage of the goodseq variable for checking trynum and pingseq. Remove
it from places it's not used. Limit its scope to the places it is used. Patch
from Daniel Roethlisberger.
2009-02-09 18:29:57 +00:00
fyodor
aa4a716c5f 2009-02-08 21:45:58 +00:00
fyodor
c4a2b18aba consolidate categories a abit -- remove 9 categories which only had 1 or 2 members in the whole file 2009-02-08 21:26:49 +00:00
david
1d1ca5346c Add a Croatian translation of Zenmap by Vlatko Kosturjak. 2009-02-08 20:52:16 +00:00
doug
06f5b7e8db Next batch of HTTP fingerprints from nmapsubmit-svfp-020309.mbx 2009-02-08 20:30:41 +00:00
david
aaaed61c52 Improve the efficiency of xml_convert. The old version was wasteful of space;
it started by allocating six times the size of the input string because in the
worst case each byte can take up to six bytes when escaped (&#xXX;). It was
wasteful of time because it built the string up with strncat, which pads the
entire destination buffer with null bytes every time it was called. This led to
quadratic time complexity, not linear as expected.

The new version uses the usual strategy of doubling the size of the buffer
whenever it runs out of space. It builds up the string using memcpy, checking
each time that there is space for the new copy.
2009-02-08 05:28:38 +00:00
david
590e7b7574 Fix abug in the DNS parser in dns-zone-transfer.nse: All '0' characters in
domain names were changed to '.', probably as a result of some code that wasn't
updated when surrounding code was. This changed the name net360.example.com to
net36..example.com.
2009-02-08 04:33:43 +00:00
fyodor
05428883c5 2009-02-07 21:19:57 +00:00
david
1252aa00fa Add CHANGELOG credits for the users who sent in reports for the
dns-zone-transfer.nse parsing bug.
2009-02-07 07:28:54 +00:00
doug
8d75390c9b First batch of http/http-proxy submissions from nmapsubmit-svfp-020309.mbx 2009-02-07 03:35:31 +00:00
fyodor
a7ae3fed29 Some dns-zone-transfer related problems noted by David, and misc. updates 2009-02-06 20:31:14 +00:00
david
e545084ebf Adjust the model numbers on the Tandberg OS print after reading the submission
email more closely.
2009-02-06 20:10:05 +00:00
david
9755978955 Expand an OS fingerprint slightly as a result of someone sending in a follow-up
scan.
2009-02-06 20:06:45 +00:00
david
e6d6e8d83e Fixed a DNS decoding bug in dns-zone-transfer.nse that created
garbage output and could crash Zenmap by including 0x0C bytes in XML
files. The Zenmap crash looked like
  SAXParseException: .../zenmap-XXXXXX.xml:39:290: not well-formed (invalid token)
2009-02-06 19:25:11 +00:00
david
fda214ed63 Make sure now has a value before assigning it to last_print in
ScanProgressMeter::printStats. I messed this up in r11985. Brandon reported the
problem.
2009-02-06 04:49:45 +00:00