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

1614 Commits

Author SHA1 Message Date
batrick
742ff67100 Removed nse_auxiliar. Updated Script Argument parsing. Fixed typos in
documentation. Improved MySQLinfo.nse. Nsock/dnet metatabels are now
protected.
2008-05-31 02:19:24 +00:00
batrick
21a2e7aea6 Updated to Lua 5.1.3 (Bug fix release)
Updated stdnse to include tobinary, toocal, and tohex functions.
Minor optimizations to listop.lua
2008-05-31 01:43:43 +00:00
michael
6692822a34 The information pretaining to the U1.RID probe for OS scans wasnt being properly converted to/from network byte order. This has resulted in several erronious entries in nmap-os-db and the failure of OS scan to perfectly detect some hosts (most of them are printers). 2008-05-31 01:41:13 +00:00
fyodor
f90bdc0a9b o Updated to include the latest MAC Address prefixes from the IEEE in
nmap-mac-prefixes [Fyodor]
2008-05-30 21:47:20 +00:00
david
0a1eb5edbf Use the new Umit web page www.umitproject.org in the Zenmap man page. 2008-05-30 05:34:20 +00:00
fyodor
058125d006 apply some fixes by Eric Krosnes 2008-05-30 02:21:32 +00:00
fyodor
d59dcfa180 some corrections from Eric Krosnes 2008-05-29 22:05:56 +00:00
david
d3263f0f1a Fix grepable output "Ignored State" reporting. Only one ignored state (the one
with the highest numbers of ports) is output.
2008-05-29 20:05:02 +00:00
david
6992d545e1 Remove unused pingtype parameter from massping. ultra_scan gets the ping type
from o.pingtype.
2008-05-29 18:20:33 +00:00
david
ee77b71fd3 Remove some debugging code that was added in the merge from
nmap-massping-migration.
2008-05-29 14:47:05 +00:00
michael
9f1c28ad9c This patch reorganizes the way ping probes are handled internally.
Previously the ping probe data structures were stored in NmapOps,
now they will be stored in the scan_lists struct. All other changes
auxiliary to this reorganization.
2008-05-29 07:49:37 +00:00
doug
29d2b20c98 Added error message for improperly formatted port/protocol string.
Thanks to David for finding this problem.
2008-05-28 22:25:05 +00:00
michael
bbc2196eea Fixed one of the memory leaks in getpts_simple which occures when no ports are to be added to 'list'. 'porttbl' is now free'd regardless of how the function returns. 2008-05-28 20:14:44 +00:00
david
d6b1222295 Use else blocks, rather than separate if blocks, when checking for arguments to
the -P? options to better communicate the intent of the code. Also remove
braces from around some one-line calls to fatal.
2008-05-28 15:45:46 +00:00
david
a90ec1ef8a Use DEFAULT_PING_TYPES for the -PB option rather than reconstructing the
definition.
2008-05-28 15:35:23 +00:00
david
d5653dad26 Guard against providing duplicate ping options like
nmap -PA80 -PA443 target
Previously this would use 443 only, and leak a little bit of memory as the
pointer to the array containing 80 was lost. Now it gives an error

Only one -PB, -PA, or -PT option is allowed. Combine port ranges with commas.
QUITTING!
2008-05-28 15:33:05 +00:00
kris
c7eb8011d9 NSE now has a "default" category for scripts. This category holds the set
of scripts chosen from when using -sC (but it's still just another category
and so can be chosen with --script like any other).

On top of updating the docs with information about this new category, I've
also updated sections to emphasize that the "default" category, -sC and -A
are considered intrusive and should not be run against target networks
without permission.

The new list is very similar to the previous "safe,intrusive" list:

Added: finger, ircServerInfo, RealVNC_auth_bypass
Removed: HTTPpasswd

Here are the 21 scripts in this new category:

anonFTP
dns-test-open-recursion
finger
ftpbounce
HTTPAuth
HTTP_open_proxy
ircServerInfo
MSSQLm
MySQLinfo
nbstat
RealVNC_auth_bypass
robots
rpcinfo
showHTMLTitle
showOwner
SMTPcommands
SNMPsysdesr
SSHv1-support
SSLv2-support
UPnP-info
zoneTrans
2008-05-28 07:16:32 +00:00
david
94212e4df4 Change macosx/README to remove the testing changelog and be more official. 2008-05-27 23:47:47 +00:00
kris
ca5848efdb Updating ip_is_reserved(): 112/8 and 113/8 were allocated to APNIC 2008-05-27 18:31:26 +00:00
david
51c92104fd In the Mac installer, change the README resource from type "readme" to type
"welcome" so it appears in the "Introduction" section of the installer (the
"Readme" page doesn't appear anymore). Previously the Introduction page was
just a useless extra page that said "You will be guided through the steps
necessary to install this software."
2008-05-27 18:30:49 +00:00
david
69cfb4a4d9 In configure.ac, move the line
LUA_CFLAGS="-DLUA_USE_POSIX -DLUA_USE_DLOPEN"
out of a case statement so that it becomes the default for all systems but Mac
OS X. Previously it was in the '*' branch of the case statement, so it ran only
for systems that weren't otherwise handled. This may have caused the error
reported at http://seclists.org/nmap-dev/2008/q2/0464.html.
2008-05-27 15:59:43 +00:00
fyodor
4742ed7845 update SMTPcommands with new code from Jason which works better against Postfix and some other systems. Also, I made it less verbose and changed the ID to SMTPcommands to match the filename. 2008-05-27 07:36:05 +00:00
fyodor
fa943e8f09 citetitle tag for nmap-dev and nmap-hackers list names 2008-05-27 06:01:21 +00:00
kris
f28d91edd1 Adding a matchline for the Metasploit Framework msfd daemon. I've tested it
on the following versions (the last one is from SVN):

55554/tcp open  metasploit Metasploit Framework msfd 3.0-beta-dev
55554/tcp open  metasploit Metasploit Framework msfd 3.0
55554/tcp open  metasploit Metasploit Framework msfd 3.1-release
55554/tcp open  metasploit Metasploit Framework msfd 3.2-release
2008-05-26 17:49:16 +00:00
kris
ee876ada98 o Replaced kibuvDetection.nse with version detection match lines which
work better than the script. [Kris, Brandon]
2008-05-25 23:30:21 +00:00
fyodor
71a29d4e2d o Fixed a bug in the showOwner NSE script which caused it to try UDP
ports instead of just TCP ports.  This made it very slow in the
  common case where there are many UDP ports in the open|filtered
  state.  Thanks to Jason DePriest for reporting the problem and Jah
  for tracking it down and fixing it.
2008-05-25 01:38:48 +00:00
david
be46ec3054 Add to CHANGELOG:
o A bug was fixed that could cause Zenmap to crash when loading a
  results file that had multibyte characters in it. The error looked 
  like
    Gtk-ERROR **: file gtktextsegment.c: line 196 (_gtk_char_segment_new): assertion failed: (gtk_text_byte_begins_utf8_char (text))
2008-05-23 04:41:22 +00:00
david
e0c37613b5 Some nmap-os-db cleanup and canonicalization. 2008-05-23 04:37:56 +00:00
fyodor
779b96a197 trivial copyright text tweak: filename nmap-os-fingerprints has changed to nmap-os-db 2008-05-22 20:45:32 +00:00
fyodor
3c809730b3 update some links to new locations 2008-05-22 18:36:53 +00:00
david
48fd27a00d Announce the Mac OS X binary packages in CHANGELOG and give credit to the two
most active testers.
2008-05-22 15:05:06 +00:00
david
710003dbab Canonicalize some prints in nmap-os-db. 2008-05-22 15:03:25 +00:00
fyodor
e06491f9f7 adjusted ISC Bind named signatures to match scanme.nmap.org, which is currently running 9.3.4 2008-05-22 08:34:07 +00:00
bmenrigh
8939e86580 Added \r\n to Apache service match to try to cut down on this (very
common) warning:

Warning: Servicescan failed to fill info_template (subjectlen: 3793). 
Too long? Match string was line 3320: v/Apache httpd/$1/$2
2008-05-21 21:04:04 +00:00
david
996a8d57f3 Update macosx/README for nmap-4.62-test9. 2008-05-21 16:33:08 +00:00
kris
2b825faa17 Nmap now ships and links with OpenSSL (currently the newest 0.9.8g) on Windows.
The necessary libraries (lib and dll) and headers required for compilation and
linking are in mswin32/OpenSSL.  A detailed upgrade guide is available in
mswin32/OpenSSL/upgrade-guide.txt.

Thanks to Thomas Buchanan for doing the initial work and writing up the initial
build guide.

My openssl-testing branch has been posted on nmap-dev for 12 days and has been
tested by (at least) Thomas, Jah and I, with no reports of failure.

http://seclists.org/nmap-dev/2008/q2/0249.html
2008-05-20 20:22:50 +00:00
david
35fdfe5e01 Update macosx/README for nmap-4.62-test8. 2008-05-20 15:44:47 +00:00
david
2c38a157fa In macosx/Makefile, export CC, CPPFLAGS, CFLAGS, CXXFLAGS, and LDFLAGS to
make-bundle.sh so it can use them to build the binary authorization wrapper.
2008-05-20 15:43:58 +00:00
david
8663003c36 The NSE HTTP library now uses the host name specified on the command
line when making requests, which improves script scanning against web
servers with virtual hosts. Thanks to Sven Klemm for the patch.
2008-05-20 06:13:26 +00:00
david
7c5fa7a808 Remove an unused LUAFLAVOR=bsd definition in configure.ac. 2008-05-20 05:55:13 +00:00
david
cac1f8cf09 Pass CC to the liblua build. Also simplify the code handling Lua CFLAGS a bit. 2008-05-20 05:52:06 +00:00
david
fac8d52c1c Remove a test for the existence of $CXX in configure.ac. This was already done
better by AC_PROG_CXX and caused a failure when configured with ccache:

CXX="ccache /usr/bin/g++-4.0" ./configure
checking build system type... i386-apple-darwin9.2.2 
checking host system type... i386-apple-darwin9.2.2 
checking for gcc... ccache /usr/bin/gcc-4.0 
checking for C compiler default output file name... a.out 
checking whether the C compiler works... yes 
checking whether we are cross compiling... no 
checking for suffix of executables... 
checking for suffix of object files... o 
checking whether we are using the GNU C compiler... yes 
checking whether ccache /usr/bin/gcc-4.0 accepts -g... yes 
checking for ccache /usr/bin/gcc-4.0 option to accept ISO C89... none needed 
checking for inline... inline 
checking for gcc... (cached) ccache /usr/bin/gcc-4.0 
checking whether we are using the GNU C compiler... (cached) yes 
checking whether ccache /usr/bin/gcc-4.0 accepts -g... (cached) yes 
checking for ccache /usr/bin/gcc-4.0 option to accept ISO C89... 
(cached) none needed 
checking whether we are using the GNU C++ compiler... yes 
checking whether ccache /usr/bin/g++-4.0 accepts -g... yes 
checking for ccache /usr/bin/g++-4.0... MISSING 
configure: error: Could not locate a C++ compiler. If it exists, add it 
to your PATH or give configure the CXX=path_to_compiler argument. 
Otherwise, install a C++ compiler such as g++ or install a binary 
package of Nmap (see http://nmap.org/download.html ))
2008-05-20 05:31:53 +00:00
kris
7d38c4dc6e o Nmap now understands the RFC 4007 percent syntax for IPv6 Zone IDs.
On Windows, this ID has to be a numeric index.  On Linux and some
  other OS's, this ID can instead be an interface name.  Some examples
  of this syntax:
    fe80::20f:b0ff:fec6:15af%2
    fe80::20f:b0ff:fec6:15af%eth0

This was a lot simpler than the method I previously implemented and posted
to nmap-dev.  Now I just extract the zone ID from the already available
getaddrinfo() data rather than parsing it out myself.
2008-05-20 05:21:29 +00:00
fyodor
ce3ce4f541 change recursive query dns test from isc.sans.org to www.wikipedia.org 2008-05-16 22:17:41 +00:00
michael
b32c2df695 Here is the updated changelog for my preceeding patch. 2008-05-15 22:44:50 +00:00
michael
47e4b7aee5 Fixed a bug in nmap_dns.cc where the endian of the platform that nmap ran on
might negitivly effect how efficiently nmap stores cache values in a hash 
table. Now ntohl is called to correctly reorder the values on little endian 
platforms before the hash calculation is preformed.
2008-05-15 22:41:49 +00:00
jurand
0708d3144d Fixed the nmap_command_path bug in Zenmap. The variable now actually accesses the nmap_command_path in zenmap.conf file. It is
accessed by a new class in UmitConf called PathsConfig, which represents the [paths] section in zenmap.conf. [Jurand Nogiec]
2008-05-15 21:10:20 +00:00
david
75dad22d50 Commit the results of integrating about 10 OS submissions (while testing the
new fingerprint tool).
2008-05-15 20:47:26 +00:00
fyodor
7376e1eee1 note preferred format for --script-args option 2008-05-15 19:09:21 +00:00
kris
b7b8fef7f4 Removing "Recursion not enabled" from dns-test-open-recursion.nse because it only adds clutter to the output 2008-05-15 15:12:58 +00:00