1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-09 14:11:29 +00:00
Commit Graph

3615 Commits

Author SHA1 Message Date
david
69000c63f0 Add afp.lua and afp-showmount.nse from Patrik Karlsson. See
http://seclists.org/nmap-dev/2010/q1/97.
2010-01-20 21:49:30 +00:00
fyodor
b14044e832 Whine about some aspects of web page rendering 2010-01-20 21:05:19 +00:00
david
a8f2d87c72 Add pending script review to TODO. 2010-01-20 19:27:26 +00:00
david
ac2cbcc97f Fix the decoding of OID component values greater than 127 in snmp.lua.
This is analogous to r16265, which did the same thing for encoding.
2010-01-19 23:45:58 +00:00
fyodor
dd0774c7bc Some changes from discussion w/David 2010-01-19 22:59:24 +00:00
fyodor
88cbb875ce Another canonicalization fix (making the author line the same for scripts written by the same author -- among other minor benefits, makes it easy to count how many scripts each person has written) 2010-01-19 08:32:26 +00:00
fyodor
785126a4a9 Some minor canonicalization of the author fileds in NSE scripts 2010-01-19 08:28:30 +00:00
david
0e913e4039 Add match line for GlimmerBlocker ad-blocking http proxy from Matt
Selsky.
2010-01-18 22:38:35 +00:00
david
53ee30c4db o Added an Apple Filing Protocol service probe that detects Netatalk
servers. (Apple's AFP servers are coincidentally triggered by the
  SSLSessionReq probe.) [Patrik Karlsson]
2010-01-18 20:30:25 +00:00
fyodor
1636f41ba9 Fix the description of --min/max parallelism in the help screen 2010-01-18 08:19:11 +00:00
david
84648aaeab Document gcc-4.0 magic. 2010-01-16 02:25:26 +00:00
david
4388f4b78f Update macsox Makefile for 10.6. 2010-01-16 02:06:21 +00:00
batrick
da041cb0b3 Get rid of <em>/<strong> tags because there is no uniform
way to use them across DocBook and HTML.
2010-01-16 01:59:12 +00:00
batrick
d1a4984d8d Fixed a typo. 2010-01-16 01:38:38 +00:00
fyodor
0f417b08b9 Add a little more info about the giant favicon survey 2010-01-15 20:18:16 +00:00
david
fb56e85681 Remove an NSI label that's now unused. 2010-01-15 20:15:49 +00:00
david
d7b920cae6 Initialize our NPF/Start registry key with the value 3 (SERVICE_DEMAND_START)
before possibly changing it to 2 (SERVICE_AUTO_START) at the user's request.
This ensures that if the "Start NPF service at boot" option is unchecked, the
NPF service will not start at boot, even if WinPcap was previously installed
that way. The patch is by Rob Nicholls.
2010-01-15 20:14:15 +00:00
david
5459be2d91 Credit Michael Pattrick in the "net start npf" CHANGELOG entry, since the
ShellExecute technique was his idea.
2010-01-15 20:08:14 +00:00
david
26016007a2 o Fixed a bug in the WinPcap installer: If the "Start the WinPcap
service 'NPF' at startup" box was unchecked and the "Start the
  WinPcap service 'NPF' now" box was checked, the second checkbox
  would be ignored (the service would not be started now). [Rob
  Nicholls]
2010-01-15 20:06:15 +00:00
david
ab3b1f409d Don't try to start NPF if o.isr00t is false (in other words, the --unprivileged
option was used). This idea was from Michael Pattrick.
2010-01-15 19:58:57 +00:00
fyodor
df19889e22 Regenerate all the auto-generated Nmap files in prep for the next release 2010-01-15 08:27:21 +00:00
fyodor
71a9e849f3 Update the CHANGELOG in prep for the next release 2010-01-15 08:26:56 +00:00
fyodor
e962657c2c Add a trivial task 2010-01-15 08:17:25 +00:00
david
78a9aad0a3 Add to CHANGELOG:
o Nmap will try to start the NPF service on Windows if it is not
  running already. This should only happen on Windows Vista and
  Windows 7. Because startign NPF requires administrator privileges, a
  UAC dialog will appear the first time Nmap is run (when NPF is not
  running) but will not appear after that.

o The Windows installer now has an option /NPFSTARTUP=NO, which
  inhibits starting NPF at the time of installation and at system
  startup, when the installer is run in silent mode (/S). This option
  corresponds to the NPF checkboxes that appear when running in
  non-silent mode.
2010-01-15 06:28:22 +00:00
david
15c2f0368b Add the /NPFSTARTUP=NO option to the Nmap installer, to be passed to the
WinPcap installer if appropriate.
2010-01-15 06:24:11 +00:00
david
598b9e5a77 Add an option /NPFSTARTUP=NO to the WinPcap installer. During a silent install,
this option stops NPF from being started and from being installed to start at
startup.
2010-01-15 06:11:08 +00:00
david
d541e795ba Give more information about possible causes and solutions when WinPcap fails to
load on Windows, in particular information about the NPF service and UAC.
2010-01-15 05:39:25 +00:00
david
f21a07cfde Revert r16464. 2010-01-15 03:55:23 +00:00
david
ecca7974a9 Add a function to winfix.cc that checks if the NPF service is running and tries
to start it (with elevated privileges) if not.
2010-01-15 03:54:26 +00:00
david
c73b250615 Factor out a function that reports the failure to open an Ethernet
device and exits. On Windows, print a hint about "net start npf" to
start the NPF service.
2010-01-15 00:37:39 +00:00
fyodor
f52b57212b Remove some extraneous chars 2010-01-14 19:56:47 +00:00
fyodor
ff4c7c0b5a 2010-01-14 19:56:02 +00:00
david
89ca07bec6 Include AC_INCLUDES_DEFAULT (which includes <sys/types.h>), in addition
to <socket.h>, when doing the test for socklen_t. Apparently OpenBSD has
it in <sys/types.h> and it causes a build failure later if we detect
that the type is not present.
2010-01-14 16:47:28 +00:00
david
e8fdd394e6 Add semicolons to the socklen_t typedefs, thanks again to Michael
Pattrick.
2010-01-14 06:04:17 +00:00
david
9570d04ea0 Do the socklen_t typedef in acconfig.h too, so it will remain after
config.h.in is regenerated by autoheader.
2010-01-14 03:38:22 +00:00
david
53c3d44b9a Fix the socklen_t typedef in libdnet-stripped. It was
typedef socklen_t int;

Michael Pattrick pointed out that it should be

typedef int socket_t;
2010-01-14 03:34:11 +00:00
jah
93f2e85aca Fixed a bug in get_dns_servers() where a sockaddr_storage was incorrectly
converted to a printable string causing invalid dns server addresses to be
returned.
2010-01-14 01:30:48 +00:00
david
9b468484c2 o Fixed a bug in traceroute that could lead to a crash:
terminate called after throwing an instance of 'std::out_of_range'
      what():  bitset::test
  It happened when the preliminary distance guess for a target was
  greater than 30, the size of an internal data structure. David and
  Brandon tracked down the problem.
2010-01-14 01:07:49 +00:00
ron
958ba69422 fixed another bug in format_output(), thanks to Patrik. 2010-01-13 21:18:36 +00:00
ron
e47175b4b8 Fixed broken indentation for single-element subgroups in stdnse.format_output(). 2010-01-13 21:03:20 +00:00
david
577fc127f7 Use socket_strerror, not plain strerror, to report the result of non-blocking
connections in tcpip.cc. socket_strerror works with Winsock error codes whereas
plain strerror returns "Unknown error".

However, the error string for what is probably the most common error code,
WSAEWOULDBLOCK, is the big ugly "A non-blocking socket operation could not be
completed immediately.". Add a special case to use "Operation now in progress"
for that specific error.
2010-01-13 19:22:41 +00:00
david
19c2d93903 Merge from /nmap-exp/david/nselib-http. This is an overhaul of HTTP
parsing mostly. Response parsing is centralized, and fewer operations
are done on raw HTTP data.

The biggest user-visible change is that http.request goes back to
returning a parsed result table, not raw HTTP data. I believe this is
how the function worked in the past; it's what the NSEDoc for the
function says. The only thing that used http.request was citrixxml.lua,
and this commit alters it to match the new expectations.

The other change is that the http.pipeline function no longer accepts
the "raw" option. The only script that used that was sql-injection.nse,
and this commit modifies that script as well.
2010-01-13 02:53:13 +00:00
david
b04a80b557 o Added a service probe and match lines for the Logitech/SlimDevices
SqueezeCenter music server. [Patrik Karlsson]
2010-01-12 21:09:01 +00:00
david
1c745e513a Add match lines for a Lexmark printer ftpd and HBN3 server. The HBN3 may
actually be mDNS. These were submitted by Patrik Karlsson.
2010-01-12 20:49:54 +00:00
david
f5cae99a2a Check that nmap.registry.args exists before trying to access
nmap.registry.args["http.useragent"]. The args table doesn't exist
during --script-updatedb. The bug was found by Tom Sellers and fixed by
Jah.
2010-01-12 17:53:01 +00:00
david
b12d633b5a Make Ncat's -p option set the listening port in listen mode (normal Ncat
syntax is to omit the -p) for compatibility with nc. See discussion
starting at http://seclists.org/nmap-dev/2010/q1/31.
2010-01-11 21:50:45 +00:00
david
2475306122 Update the favicon database from the latest dmoz scan. Add about 40 new
icons. Put the list in order. Correct some old entries.
2010-01-11 07:21:08 +00:00
david
12203a8ae1 Don't allow a cached response from a GET request to be returned for a
HEAD request. This makes it look like the response to the HEAD request
has a body. As a result, http-enum can wrongly surmise that HEAD
requests don't work when it hits a cache entry while testing HEAD.

# nmap --script=http-date,http-enum -PN -p 80 -d2
NSE: NSE Script Threads (2) running:
NSE: Final http cache size (373 bytes) of max size of 1000000
NSE: HTTP: Host returns proper 404 result.
NSE: Final http cache size (1905 bytes) of max size of 1000000
NSE: Finished 'http-date' (thread: 0x8535a40).
NSE: HTTP: Warning: Host returned data when performing HEAD.
NSE: Checking if a GET request is going to work out

After this change:

NSE: NSE Script Threads (2) running:
NSE: Final http cache size (373 bytes) of max size of 1000000
NSE: HTTP: Host returns proper 404 result.
NSE: Final http cache size (1905 bytes) of max size of 1000000
NSE: Finished 'http-date' (thread: 0x8e75b00).
NSE: Final http cache size (1905 bytes) of max size of 1000000
NSE: HTTP: Host supports HEAD.
2010-01-10 19:47:33 +00:00
batrick
62ed5336b4 Fixed typo in documentation that screwed up nsedoc. 2010-01-10 04:45:08 +00:00
batrick
e94da5d874 Use em/strong tags instead of <b>. 2010-01-10 03:18:05 +00:00