Commit d2d597c6 authored by Marcos Fouces's avatar Marcos Fouces

Merge tag 'upstream/0.5'

Upstream version 0.5
parents 4696e0f3 ed316cdb
*.o
Makefile
config.log
config.status
makefile.dep
modules/Makefile
nbase/libnbase.a
ncrack
ncrack_config.h
nsock/src/libnsock.a
opensshlib/Makefile
opensshlib/config.h
opensshlib/config.log
opensshlib/config.status
opensshlib/libopenssh.a
nbase/config.log
nbase/config.status
nsock/src/config.log
nsock/src/config.status
mswin32/Release/
mswin32/ncrack.VC.opendb
mswin32/ncrack.opensdf
mswin32/ncrack.sdf
mswin32/ncrack.suo
mswin32/ncrack.vcxproj.user
nbase/Debug/
nbase/Release/
nbase/nbase.lib
nbase/nbase.pdb
nbase/nbase.vcxproj.user
nbase/Makefile
nbase/nbase_config.h
nsock/DebugNoPcap/
nsock/ReleaseNoPcap/
nsock/nsock.lib
nsock/nsock.vcxproj.user
nsock/include/nsock_config.h
nsock/src/Makefile
nsock/tests/Makefile
opensshlib/Debug/
opensshlib/Release/
opensshlib/openssh.vcxproj.user
opensshlib/opensshlib.lib
opensshlib/opensshlib.pdb
opensshlib/buildpkg.sh
This diff is collapsed.
This diff is collapsed.
~00000
00000000
,000$ 0$+~
$=0= .0+0
000 000
:000 0~0
0000. 0
00000 .
.000000
0?= +.,.
,?00.$000
00000~.:~0
.$+00~?~000
:00000.=0000
?00?00+=: ,0,
00000..0000~ 000000. $0
00..0~0?0::00,?0::?$0. 00 ~
.0. ,0?00000.0$,+,000.00 $00
0. 00.?00=00000~0+0:0000?0,~0?.
.0 +00 0+0000 0000=?~0000?00 00
.: .~~ .000=00000~00=000000+0.0~0$$.
00 , ?00.. 000~000000000000.:0.0:0~ 0$00.+
00.0 00 00?~000~000000000+00 + ~0000000000=$0000
$ 00 00. .00,000000000000$.00000. .0000+$+~00
0 00 .0 000000000?~0000000. 0. .0$000000+$0
0 0 0 000:$~0000=0.0000,$. 00 0000000000
0 00 ?.0000 $0 0 . .0000
. $ ?000. 0 0
0 +~?000
0. :000000?0 |=------=[ Ncrack ]=------=|
0000$?+00
00+0:~0$0+
.0$000?00
0?000000
.000~0
-- [ Ncrack Changelog ] --
Ncrack 0.5 [2016-03-17]
o Added 4 new modules: Redis, PostgreSQL, MySQL, SIP. Thanks to edeirme for
implementing the Redis, PostgreSQL and MySQL modules.
o Added --pairwise option for special username/password iteration.
o Added --proxy option and proxy support implementation. Many thanks
to Andrew Farabee (https://github.com/andrewfarabee/) for implementing
it.
o Updated the Ncrack openssh library, now based on the OpenSSH 7.1
codebase and updated the SSH module to support all the latest ciphers.
Ncrack 0.4ALPHA [2011-04-23]
o Added the VNC module to Ncrack's arsenal. Thanks to rhh of rycon.hu for
implementing the module and discussing about it for further improvement.
o Wrote the Ncrack Developer's Guide, which is meant to give an overall
insight into Ncrack's architecture and help programmers develop their own
modules (http://nmap.org/ncrack/devguide.html)
o Fixed critical bug in RDP module, which caused Ncrack to fail cracking
some Windows 2003 server versions.
o Added a mechanism (MODULE_ERR), which modules can use to report to the
Ncrack engine that the authentication wasn't completed due to an
application error. For instance, the VNC server often notifies the client
that there are "too many authentication failures" and Ncrack can then
close the running connections and wait some time until the above wears
off.
o Ncrack can now print the nsock EID (unique connection ID) in debugging
messages. This will greatly help us track problems, since error messages
will be matched to certain connections.
Ncrack 0.3ALPHA [2010-09-07]
o Ncrack can now crack the Remote Desktop Protocol on all Windows versions from
XP and above, with the introduction of the RDP module. Users are well advised
to read http://seclists.org/nmap-dev/2010/q3/450 for cracking Windows XP
machines since they can't handle many concurrent RDP connections.
o Implemented the SMB module which can crack Microsoft's SMB/CIFS services as
well as UNIX Samba servers.
o Introduced the '-f' option, which forces Ncrack to quit cracking a
service after it finds one credential for it. Specifying the option twice
like '-f -f' will cause Ncrack to completely quit after any credential is
found on any service.
o Added support for blank-password testing. Ncrack will now test a blank
entry whenever it sees an empty line in any of the wordlists. The same
behaviour applies for passing the options --user '' or --pass ''.
o Improved the Ncrack scorpion logo with an updated SVG version (see
the top of http://nmap.org/ncrack/)
Ncrack 0.2ALPHA [2010-06-12]
o Ncrack now interactively prints out discovered credentials whenever
the user presses the 'p' key. Also, in verbose mode (-v), Ncrack
now prints new credentials whenever they are discovered. Basic
statistics (cracking rate, number of credentials found, but not the
credentials themselves) can be obtained by pressing enter or another
key at any time.
o Added the --resume option, which allows users to cancel (usually by
pressing Ctrl+C) and later restore a cracking session through a file
with the saved state. The Ncrack restoration file is saved at
.ncrack/ under the home user's directory for *nix systems and inside
the user's profile directory (normally under C:\Documents and
Settings\<user>\.ncrack\) in Windows. The file name format is
restore.<date>_<time> e.g: restore.2009-11-1_10-10 . The time isn't
in XX:XX format because Windows doesn't allow colons in filenames.
o Implemented the -iN option which lets Ncrack review Nmap normal
(-oN) output to find targets.
o Implemented -iX option, which allows Ncrack to obtain targets by
reading an Nmap XML (-oX) output format file.
o Ncrack's help screen (ncrack -h) now includes practical real-life
examples as well as a list of protocol cracking modules supported.
You can also list the supported modules with -V.
o Added experimental pop3(s) support - patch initially made by Bucsay Balazs
and then modified by Ithilgore.
o Ncrack now shares the Nsock library with Nmap rather than having its
own fork. This makes maintenance much easier. This was
accomplished by adding a way to compile Nsock without Libpcap (which
Ncrack doesn't use).
o Fixed a timeout-related error which was due to the way Nsock caches
its time values to avoid too many gettimeofday() system calls,
leading to Ncrack thinking that negative time had elapsed in some
cases. See the report at http://seclists.org/nmap-dev/2010/q2/450.
o Fixed bug which caused an endless loop before Ncrack could exit
properly (reported at http://seclists.org/nmap-dev/2010/q2/746).
o Fixed several memory leaks with the help of Valgrind. Also conducted a
Valgrind test for all modules. A report on a big memory leak was made here:
http://seclists.org/nmap-dev/2010/q1/1140
o Fixed a problem which lead to the configure script being executed
twice for each of Ncrack's dependency libraries. Compilation is
much faster now.
o Added cleanup function for modules. This is made possible by a
function pointer (ops_free) in the Connection class, that
deallocates all internal struct members of misc_info . Since these
are module-specific data, each module should initialize this
function upon first invocation.
o Added a snprintf function to Buf class. This is really handy for
module writers since it allows multiple I/O operations in
one line.
o Changed the module API Connection class to split the old iobuf
system into two separate iobufs (one for inbound and one for
outbound data).
o We now use the same default password list as Nmap, which is based on
data from many compromised/leaked systems. We also have included
several individual files which can be used instead, such as Solar
Designer's password file from his cracking application John.
o Added the --user and --pass options for command-line user and
password list specification.
o Reported to Microsoft an issue on Windows (running on Windows rather
than against it) which was slowing the scans down
(http://seclists.org/nmap-dev/2009/q2/774). Microsoft wasn't able to
reproduce the problem
(https://connect.microsoft.com/WNDP/feedback/ViewFeedback.aspx?FeedbackID=479640),
but it seems that changes made by ESET Nod32 AV on Ithilgore's
machine may have been the problem. It works for him if he disables
Nod32, so users might consider trying that if they experience poor
performance.
o Fixed a compilation failure which occurred at linking when OpenSSL
was not available on the system.
o Added this CHANGELOG file to the distribution.
Ncrack 0.01ALPHA [2009-08-10]
o First public release of Ncrack.
This diff is collapsed.
This diff is collapsed.
LICENSE ISSUES
==============
The OpenSSL toolkit stays under a dual license, i.e. both the conditions of
the OpenSSL License and the original SSLeay license apply to the toolkit.
See below for the actual license texts. Actually both licenses are BSD-style
Open Source licenses. In case of any license issues related to OpenSSL
please contact openssl-core@openssl.org.
OpenSSL License
---------------
/* ====================================================================
* Copyright (c) 1998-2004 The OpenSSL Project. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
*
* 3. All advertising materials mentioning features or use of this
* software must display the following acknowledgment:
* "This product includes software developed by the OpenSSL Project
* for use in the OpenSSL Toolkit. (http://www.openssl.org/)"
*
* 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
* endorse or promote products derived from this software without
* prior written permission. For written permission, please contact
* openssl-core@openssl.org.
*
* 5. Products derived from this software may not be called "OpenSSL"
* nor may "OpenSSL" appear in their names without prior written
* permission of the OpenSSL Project.
*
* 6. Redistributions of any form whatsoever must retain the following
* acknowledgment:
* "This product includes software developed by the OpenSSL Project
* for use in the OpenSSL Toolkit (http://www.openssl.org/)"
*
* THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
* EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR
* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
* OF THE POSSIBILITY OF SUCH DAMAGE.
* ====================================================================
*
* This product includes cryptographic software written by Eric Young
* (eay@cryptsoft.com). This product includes software written by Tim
* Hudson (tjh@cryptsoft.com).
*
*/
Original SSLeay License
-----------------------
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
*
* This library is free for commercial and non-commercial use as long as
* the following conditions are aheared to. The following conditions
* apply to all code found in this distribution, be it the RC4, RSA,
* lhash, DES, etc., code; not just the SSL code. The SSL documentation
* included with this distribution is covered by the same copyright terms
* except that the holder is Tim Hudson (tjh@cryptsoft.com).
*
* Copyright remains Eric Young's, and as such any Copyright notices in
* the code are not to be removed.
* If this package is used in a product, Eric Young should be given attribution
* as the author of the parts of the library used.
* This can be in the form of a textual message at program startup or
* in documentation (online or textual) provided with the package.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. All advertising materials mentioning features or use of this software
* must display the following acknowledgement:
* "This product includes cryptographic software written by
* Eric Young (eay@cryptsoft.com)"
* The word 'cryptographic' can be left out if the rouines from the library
* being used are not cryptographic related :-).
* 4. If you include any Windows specific code (or a derivative thereof) from
* the apps directory (application code) you must include an acknowledgement:
* "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
*
* THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* The licence and distribution terms for any publically available version or
* derivative of this code cannot be changed. i.e. this code cannot simply be
* copied and put under another distribution licence
* [including the GNU Public Licence.]
*/
This diff is collapsed.
This diff is collapsed.
# Extract the version string from ncrack.h.
export NCRACK_VERSION := $(shell grep '^\#[ \t]*define[ \t]\+NCRACK_VERSION' \
ncrack.h | sed -e 's/.*"\(.*\)".*/\1/' -e 'q')
NCRACK_NAME= Ncrack
NCRACK_URL= http://ncrack.org
NCRACK_PLATFORM=@host@
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
sbindir = @sbindir@
mandir = @mandir@
srcdir = @srcdir@
ncrackdatadir = @datadir@/ncrack
export NBASEDIR = @NBASEDIR@
export NSOCKDIR = @NSOCKDIR@
export OPENSSHLIB_DIR = @OPENSSHLIB_DIR@
DEFS = @DEFS@ -DNCRACK_NAME=\"$(NCRACK_NAME)\" -DNCRACK_URL=\"$(NCRACK_URL)\" \
-DNCRACK_PLATFORM=\"$(NCRACK_PLATFORM)\" -DNCRACKDATADIR=\"$(ncrackdatadir)\"
DEFS += -D_FORTIFY_SOURCE=2
CC = @CC@
CXX = @CXX@
CCOPT =
DBGFLAGS =
STRIP = @STRIP@
CXXFLAGS = @CXXFLAGS@ $(DBGFLAGS)
CPPFLAGS = @CPPFLAGS@ $(DEFS)
export CFLAGS = $(CXXFLAGS)
STATIC =
LDFLAGS = @LDFLAGS@ $(DBGFLAGS) $(STATIC)
INSTALL = @INSTALL@
MOD_OBJS = @MODULES_OBJS@
MOD_OBJS := $(addprefix modules/,$(MOD_OBJS))
MOD_SRCS = @MODULES_SRCS@
MOD_SRCS := $(addprefix modules/,$(MOD_SRCS))
LIBS = @LIBNSOCK_LIBS@ @LIBNBASE_LIBS@ @OPENSSL_LIBS@ @OPENSSH_LIB@
DESTDIR =
TARGET = ncrack
export SRCS = ncrack.cc utils.cc TargetGroup.cc Target.cc targets.cc \
NcrackOps.cc Service.cc ServiceGroup.cc Connection.h services.cc \
timing.cc ncrack_error.cc output.cc ncrack_tty.cc Buf.cc \
NcrackOutputTable.cc ncrack_input.cc ncrack_resume.cc crypto.cc http.cc \
http_digest.cc
OBJS = ncrack.o utils.o TargetGroup.o Target.o targets.o NcrackOps.o \
Service.o ServiceGroup.o Connection.o services.o timing.o \
ncrack_error.o output.o ncrack_tty.o Buf.o NcrackOutputTable.o \
ncrack_input.o ncrack_resume.o crypto.o http.o http_digest.o
.cc.o :
$(CXX) -c $(CPPFLAGS) $(CXXFLAGS) $< -o $@
all: @NBASE_BUILD@ @NSOCK_BUILD@ @OPENSSHLIB_BUILD@ @MODULES_BUILD@
$(MAKE) $(TARGET)
$(TARGET): $(NSOCKDIR)/src/libnsock.a $(NBASEDIR)/libnbase.a $(OBJS) $(MOD_OBJS)
@echo Compiling Ncrack...
rm -f $@
$(CXX) $(LDFLAGS) -o $@ $(OBJS) $(MOD_OBJS) $(LIBS)
@echo Ncrack compiled successfully!
modules_build:
@echo Compiling modules
cd modules && $(MAKE)
nbase_build: $(NBASEDIR)/Makefile
@echo Compiling libnbase;
cd $(NBASEDIR) && $(MAKE)
nsock_build: $(NSOCKDIR)/src/Makefile nbase_build
@echo Compiling libnsock;
cd $(NSOCKDIR)/src && $(MAKE)
opensshlib_build: $(OPENSSHLIB_DIR)/Makefile
@echo Compiling openssh lib;
cd $(OPENSSHLIB_DIR) && $(MAKE)
install: install-ncrack