1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-19 05:59:01 +00:00
Commit Graph

3106 Commits

Author SHA1 Message Date
david
486ff13e3a Add the --stats-every option. See http://seclists.org/nmap-dev/2009/q1/0404.html. 2009-02-24 00:23:54 +00:00
david
a173fe6ce1 Add the stdnse.sleep function. 2009-02-23 23:57:39 +00:00
david
b819aa7f25 Document half-open and full-open IPv4 octet ranges. 2009-02-23 21:21:36 +00:00
david
5d2393d115 Add to CHANGELOG:
o [Ncat] The syntax accepted by the --allow, --deny, --allowfile, and
  --denyfile options is now the same as Nmap's target specifications.
  Additionally any errors in the allow or deny specifications are
  reported when the program starts, not deferred until a connection is
  received. [David]
2009-02-22 02:58:09 +00:00
david
73356bf715 Interpret '-' by itself as an IPv4 octet as being short for "0-255". So
192.168.-.0 is the same as 192.168.0-255.0. It looks like this was intended all
along, but a coding error kept it from working.
2009-02-21 04:00:21 +00:00
david
4b27c53433 Update target specification section in refguide.xml with newest revisions. 2009-02-21 02:09:20 +00:00
david
29cd3a2675 Some revision of device-types.txt. 2009-02-21 01:15:59 +00:00
david
1273142341 FIx a typo in nmap-service-probes, adjust some categorizations in nmap-os-db. 2009-02-21 00:34:33 +00:00
david
cdd24a6fb4 Add counts of how many of each device type is present in both nmap-os-db and
nmap-service-probes to device-types.txt.
2009-02-20 22:52:10 +00:00
david
c3606c3793 Document the four device types that were present in nmap-os-db but not
nmap-service-probes: encryption accelerator, proxy server, VoIP gateway, web
server.
2009-02-20 22:38:53 +00:00
david
1ca5e5b637 Canonicalize a device type in nmap-service-probes: "media-device" ->
"media device".
2009-02-20 19:36:49 +00:00
david
9323b53c68 Fix NSEDoc in msrpctypes.lua. A <code> was unterminated, and bullet lists can't
have newlines within each entry.
2009-02-20 18:46:26 +00:00
doug
531e2b7c22 MSSQL updates from Tom Sellers 2009-02-20 01:33:55 +00:00
doug
e13283b01e Finished nmapsubmit-svfp-020309.mbx 2009-02-19 22:17:24 +00:00
doug
e087884f2c Another batch of misc from nmapsubmit-svfp-020309.mbx (almost done) 2009-02-18 23:57:43 +00:00
fyodor
3d6a57c585 Khottabych movie 2009-02-18 03:33:50 +00:00
david
d8c3cf21a5 Add missing module name prefixes to usage examples in some NSE documentation. 2009-02-17 19:53:02 +00:00
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