1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-21 15:09:02 +00:00
Commit Graph

3493 Commits

Author SHA1 Message Date
david
bceef244e5 Oops, I forgot to do the OS corrections file as well. Here it is. 2008-03-15 22:06:37 +00:00
ejlbell
7f58dc082c Switched bruteTelnet to the vulnerability category so it is not executed by default. Prompted by a bug report stating bruteTelnet failed on windows but switching is a good idea anyway as the script takes a long time to run. 2008-03-15 21:09:29 +00:00
fyodor
7f0bbd3e3a cannot use %configure macro anymore due to lame bug (spec file tries to use noarch-redhat-linux, but config.sub does not currently recognize that) 2008-03-15 10:24:49 +00:00
fyodor
85ac68ce65 regenerate zenmap man page 2008-03-15 10:23:38 +00:00
fyodor
356352cfa7 regenerated autoconf configure files using autoconf-2.61-9.fc8 2008-03-15 10:23:08 +00:00
fyodor
1c785a2e50 o Updated to latest (as of 3/15) autoconf config.sub/config.guess
files from http://cvs.savannah.gnu.org/viewvc/config/?root=config .
2008-03-15 10:21:56 +00:00
fyodor
d421951a21 update changelog and regenerate files in prep for 4.60 build and release 2008-03-15 01:21:22 +00:00
fyodor
f3782839f1 add zenmap man page to spec file 2008-03-15 01:21:00 +00:00
david
a91c7f75e4 Fix an infinite loop in nmap_dns.cc.
This changes the DNS engine to use addto_etchosts to add entries from
/etc/hosts into the DNS cache, rather than just inserting them using
push_front.

The reason for this is that there is a static unsigned variable in
addto_etchosts that keeps track of how many entries there are in the
cache. Using push_front bypassed this variable, allowing the entries in
/etc/hosts to sneak in under the radar. Thus is was possible for the
cache to contain, say, 266 entries when it thought it only had 256.

When the cache size is greater than or equal to 256, addto_etchosts runs
a deletion pass aiming to reduce the number of entries to 126. But the
peculiar loop logic of that function means that more than 256 entries
can be deleted. (How many more depends in part on how many entries there
are in /etc/hosts. There must be at least one for the hang to occur.)
When this happens, the signed counter underflows and becomes large
positive, ~65000. The code empties the cache trying to get the counter
under 127, but it can never happen.

To reproduce the hang, make an /etc/hosts file like this:

1.0.0.1 host-1-1
1.0.0.2 host-1-2
1.0.0.3 host-1-3
1.0.0.4 host-1-4
1.0.0.5 host-1-5
1.0.0.6 host-1-6
1.0.0.7 host-1-7
1.0.0.8 host-1-8
1.0.0.9 host-1-9
1.0.0.10 host-1-10
2.0.0.1 host-2
3.0.0.1 host-3
...
254.0.0.1 host-254
255.0.0.1 host-255

The hang can occur with even one entry in /etc/hosts, but saturating the
cache like this makes the hang less dependent on network conditions.
Then list-scan a netblock that is greater in size than 256 and is dense
in DNS entries (at least 256 entries per 4096 IP addresses). For
example,

nmap -sL scanme.nmap.org/22

works for me currently.
2008-03-14 21:45:41 +00:00
david
1f8252ba40 Fix a typo in a comment in nmap-os-db: indivudually -> individually. 2008-03-14 19:12:49 +00:00
david
978bfa1e3f Add the results of the last 400 OS submissions. 2008-03-14 04:35:36 +00:00
fyodor
d5f3f3610e improve the tcp options comment even more to ensure is inline with tcp options actually used 2008-03-13 05:34:17 +00:00
fyodor
a71b4d2528 update a comment which lists tcp options used in os scan 2008-03-13 05:25:54 +00:00
david
18bda2d7a2 Add the results of integrating another 500 OS submissions. 2008-03-12 19:44:35 +00:00
david
05c168dcbf Commit the results of 400 OS submissions. 2008-03-11 23:38:46 +00:00
doug
4179a7d524 Sophos Message Router match lines from Brandon Enright 2008-03-08 05:40:13 +00:00
doug
1af9e3fa14 Firebird RDBMS probe from Brandon Enright 2008-03-08 05:35:30 +00:00
doug
cfcfe163d5 Beast trojan probe from Brandon Enright 2008-03-08 05:28:24 +00:00
fyodor
bb17d9961b phrack 60-12 article link changed again, replaced it with a local version 2008-03-04 20:05:50 +00:00
fyodor
cfe783ebb9 small typo 2008-03-01 07:30:58 +00:00
fyodor
1accc12fb2 fix typo in legal header found by Leigh Zhao (missing word: of) 2008-02-28 18:52:06 +00:00
majek04
caf8008940 Previously, process_mainloop() assumed that there can occur only one event for l_nsock_loop(). This is obviously wrong. This caused that some lua threads wakeups (when multiple events happend for one nsock_loop) were delayed. They were handled but way after real events happened. This patch changes the handing of events. Now we execute every lua thread which is in running_scripts(). I hope that every thread will be scheduled in nsock and removed from running_scripts and added to waiting_scripts. 2008-02-27 00:56:19 +00:00
doug
5ca15a1dab New probe for memcached 2008-02-22 06:54:59 +00:00
fyodor
f7628775ab applied patch from William Stearns which moves hyphens to the beginning of character classes ([]) when they appear in other positions. This doesn't matter for our regex engine (PCRE), but is important for the python parser he is writing. His way is cleaner, anyway. 2008-02-21 06:29:44 +00:00
fyodor
b0fdd1d7d5 fix some dnet API names -- thanks to Jah for the patch 2008-02-20 02:43:30 +00:00
kris
a3a78c535b Upgrading libpcre from 7.4 to 7.6. Tested on Linux and Windows XP. 2008-02-16 20:55:50 +00:00
kris
a02bf67a70 reordering UDP port selection for Traceroute: a closed port is now chosen before an open one. 2008-02-15 19:45:34 +00:00
kris
477967e69b updating ip_is_reserved(): 173/8 and 174/8 went to ARIN 2008-02-15 03:42:43 +00:00
fyodor
11cbdfb24a trivial -- just changed a url 2008-02-10 23:20:42 +00:00
fyodor
5fc5941253 some improvements suggested by Joao Medeiros -- also trying to resolve issues re: the new hidepdf ulink role. 2008-02-10 05:29:12 +00:00
fyodor
e56071dc47 add a couple match lines from Thomas Buchanan 2008-02-08 18:29:17 +00:00
fyodor
3511ce0a27 improve the ms-sql service matching scripts. The service name was also changed to ms-sql-s to match the name in nmap-services. [Thomas Buchanan] 2008-02-08 00:25:24 +00:00
fyodor
6a0379d4e6 canonicalize a bunch of service names (for example capitalizing D-Link and Netgear in consistent way). Patch from Brandon Enright 2008-02-07 07:20:57 +00:00
kris
5fa53605e6 adding UDP Scan (-sU) to Zenmap's Profile Editor and Command Wizard 2008-02-06 01:19:56 +00:00
fyodor
ce95ae92a8 trivial correction 2008-02-05 23:33:24 +00:00
doug
79c5a24d59 Spelling fix from James Beers 2008-02-05 20:19:55 +00:00
fyodor
61b976a45c o Nmap now saves the target name (if any) specified on the command
line, since this can differ from the reverse DNS results.  It can be
  particularly important when doing HTTP tests against virtual hosts.
  The data can be accessed from target->HostName() from Nmap proper
  and host.targetname from NSE scripts.  The NSE HTTP library now uses
  this for the Host header.  Thanks to Sven Klemm for adding this
  useful feature.
2008-02-04 22:10:29 +00:00
diman
c22505bf5a fixed tty_init to be skipped if --noninteractive was given on the command line 2008-02-03 21:39:23 +00:00
diman
cf4c7081e8 moving debugger to nmap-exp/diman until further notice 2008-02-03 21:38:38 +00:00
diman
2d9bc1b43d added a CLI debugger 2008-02-03 14:21:36 +00:00
fyodor
7c6a4479bb add hddtemp service suggested by Martin Guy 2008-02-02 20:37:06 +00:00
fyodor
7464f4abcf add nse http library docs from Sven 2008-02-01 20:58:32 +00:00
kris
a919aa5470 rewriting my HTTPpasswd script to use Sven's HTTP library and to do some much-needed cleaning up. 2008-02-01 05:48:45 +00:00
fyodor
0e65f2e091 oops -- forgot to add this when I committed the other http library changes. Thanks to Kris for noticing the omission 2008-02-01 03:23:50 +00:00
fyodor
d46a3e49d9 add Nmap Scripting Engine docs 2008-02-01 03:00:35 +00:00
fyodor
9cf7f14afe o Added NSE HTTP library which allows scripts to easily fetch URLs
with http.get_url() or create more complex requests with
  http.request().  There is also an http.get() function which takes
  components (hostname, port, and path) rather than a URL.  The
  HTTPAuth, robots, and showHTMLTitle NSE scripts have been updated to
  use this library. Sven Klemm wrote all of this code.
2008-02-01 02:47:09 +00:00
fyodor
5220e7382a add dnsmasq DNS server matchlines (was previously detected as bind). Patch by Sven Klemm 2008-01-31 05:48:16 +00:00
kris
c3bded55ae fixing another Zenmap bug: the --scan-delay and --max-scan-delay buttons under the Advanced tab in the Profile Editor were backwards (the buttons chose the wrong option) 2008-01-29 00:21:12 +00:00
kris
9664cd9e22 adding IPProto Ping (-PO) to Zenmap's Profile Editor 2008-01-28 23:58:20 +00:00
kris
ed143a2259 o Another Zenmap bug was fixed: ports consolidated into "extra ports"
groups are now counted and shown in the "Host Details" tab.  The
  closed, filtered and scanned port counts in this tab didn't contain
  this information before so they were usually very inaccurate. [Kris]

The "Scan Details" tab was fine.
2008-01-28 04:23:41 +00:00