Commit c144677f authored by Devon Kearns's avatar Devon Kearns

Pre-build commit

parent 24d1b8d2
ncrack for Debian
<possible notes regarding this package - if none, delete this file>
-- Devon Kearns <> Tue, 08 Jan 2013 18:04:23 -0700
ncrack for Debian
<this file describes information about the source package, see Debian policy
manual section 4.14. You WILL either need to modify or delete this file>
ncrack (0.4-alpha-1) unstable; urgency=low
ncrack (0.4-alpha-1kali0) kali; urgency=low
* Initial release (Closes: #nnnn) <nnnn is the bug number of your ITP>
* Initial release
-- Devon Kearns <> Tue, 08 Jan 2013 18:04:23 -0700
Source: ncrack
Section: unknown
Section: utils
Priority: extra
Maintainer: Devon Kearns <>
Build-Depends: debhelper (>= 8.0.0), autotools-dev
Build-Depends: debhelper (>= 8.0.0), autotools-dev, autoconf, flex, bison, libssl-dev, libpcap0.8-dev, libpcre3-dev, binutils-dev, python (>=2.3.5-7), python-all-dev, liblua5.1-dev
Standards-Version: 3.9.3
Homepage: <insert the upstream URL, if relevant>
#Vcs-Git: git://
Vcs-Git: ssh://
Package: ncrack
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: <insert up to 60 chars description>
<insert long description, indented with spaces>
Depends: ${shlibs:Depends}, ${misc:Depends}, python, python-support
Description: High-speed network authentication cracking tool
Ncrack is a high-speed network authentication cracking tool.
It was built to help companies secure their networks by
proactively testing all their hosts and networking devices
for poor passwords. Security professionals also rely on
Ncrack when auditing their clients. Ncrack was designed
using a modular approach, a command-line syntax similar to
Nmap and a dynamic engine that can adapt its behaviour
based on network feedback. It allows for rapid, yet
reliable large-scale auditing of multiple hosts.
Ncrack's features include a very flexible interface granting
the user full control of network operations, allowing for
very sophisticated bruteforcing attacks, timing templates
for ease of use, runtime interaction similar to Nmap's and
many more. Protocols supported include RDP, SSH, http(s),
SMB, pop3(s), VNC, FTP, and telnet.
Upstream-Name: ncrack
Source: <url://>
Files: *
Copyright: <years> <put author's name and email here>
<years> <likewise for another author>
License: <special license>
<Put the license of the package here indented by 1 space>
<This follows the format of Description: lines in control file>
<Including paragraphs>
Copyright: 1996-2011 Insecure.Com LLC
License: Other
*********************IMPORTANT NMAP LICENSE TERMS************************
The Nmap Security Scanner is (C) 1996-2011 Insecure.Com LLC. Nmap is
also a registered trademark of Insecure.Com LLC. This program is free
software; you may redistribute and/or modify it under the terms of the
GNU General Public License as published by the Free Software
Foundation; Version 2 with the clarifications and exceptions described
below. This guarantees your right to use, modify, and redistribute
this software under certain conditions. If you wish to embed Nmap
technology into proprietary software, we sell alternative licenses
(contact Dozens of software vendors already
license Nmap technology such as host discovery, port scanning, OS
detection, and version detection.
Note that the GPL places important restrictions on "derived works", yet
it does not provide a detailed definition of that term. To avoid
misunderstandings, we consider an application to constitute a
"derivative work" for the purpose of this license if it does any of the
o Integrates source code from Nmap
o Reads or includes Nmap copyrighted data files, such as
nmap-os-db or nmap-service-probes.
o Executes Nmap and parses the results (as opposed to typical shell or
execution-menu apps, which simply display raw Nmap output and so are
not derivative works.)
o Integrates/includes/aggregates Nmap into a proprietary executable
installer, such as those produced by InstallShield.
o Links to a library or executes a program that does any of the above
The term "Nmap" should be taken to also include any portions or derived
works of Nmap. This list is not exclusive, but is meant to clarify our
interpretation of derived works with some common examples. Our
interpretation applies only to Nmap--we don't speak for other people's
GPL works.
If you have any questions about the GPL licensing restrictions on using
Nmap in non-GPL works, we would be happy to help. As mentioned above,
we also offer alternative license to integrate Nmap into proprietary
applications and appliances. These contracts have been sold to dozens
of software vendors, and generally include a perpetual license as well
as providing for priority support and updates as well as helping to
fund the continued development of Nmap technology. Please email for further information.
As a special exception to the GPL terms, Insecure.Com LLC grants
permission to link the code of this program with any version of the
OpenSSL library which is distributed under a license identical to that
listed in the included docs/licenses/OpenSSL.txt file, and distribute
linked combinations including the two. You must obey the GNU GPL in all
respects for all of the code used other than OpenSSL. If you modify
this file, you may extend this exception to your version of the file,
but you are not obligated to do so.
If you received these files with a written license agreement or
contract stating terms other than the terms above, then that
alternative license agreement takes precedence over these comments.
Source is provided to this software because we believe users have a
right to know exactly what a program is going to do before they run it.
This also allows you to audit the software for security holes (none
have been found so far).
Source code also allows you to port Nmap to new platforms, fix bugs,
and add new features. You are highly encouraged to send your changes
to for possible incorporation into the main
distribution. By sending these changes to Fyodor or one of the
Insecure.Org development mailing lists, it is assumed that you are
offering the Nmap Project (Insecure.Com LLC) the unlimited,
non-exclusive right to reuse, modify, and relicense the code. Nmap
will always be available Open Source, but this is important because the
inability to relicense code has caused devastating problems for other
Free Software projects (such as KDE and NASM). We also occasionally
relicense the code to third parties as discussed above. If you wish to
specify special license conditions of your contributions, just say so
when you send them.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
General Public License v2.0 for more details at , or in the COPYING file
included with Nmap.
# If you want to use GPL v2 or later for the /debian/* files use
# the following clauses, or change it to suit. Delete these two lines
Files: debian/*
Copyright: 2013 Devon Kearns <>
License: GPL-2+
......@@ -31,8 +106,3 @@ License: GPL-2+
On Debian systems, the complete text of the GNU General
Public License version 2 can be found in "/usr/share/common-licenses/GPL-2".
# Please also look if there are files or directories which have a
# different copyright/license attached and list them here.
# Please avoid to pick license terms that are more restrictive than the
# packaged work, as it may make Debian's contributions unacceptable upstream.
#! /bin/sh -e
# /usr/lib/emacsen-common/packages/install/ncrack
# Written by Jim Van Zandt <>, borrowing heavily
# from the install scripts for gettext by Santiago Vila
# <> and octave by Dirk Eddelbuettel <>.
if [ ${FLAVOR} = emacs ]; then exit 0; fi
echo install/${PACKAGE}: Handling install for emacsen flavor ${FLAVOR}
#FLAVORTEST=`echo $FLAVOR | cut -c-6`
#if [ ${FLAVORTEST} = xemacs ] ; then
# SITEFLAG="-no-site-file"
# SITEFLAG="--no-site-file"
FLAGS="${SITEFLAG} -q -batch -l path.el -f batch-byte-compile"
# Install-info-altdir does not actually exist.
# Maybe somebody will write it.
if test -x /usr/sbin/install-info-altdir; then
echo install/${PACKAGE}: install Info links for ${FLAVOR}
install-info-altdir --quiet --section "" "" --dirname=${FLAVOR} /usr/share/info/${PACKAGE}.info.gz
install -m 755 -d ${ELCDIR}
cd ${ELDIR}
FILES=`echo *.el`
cd ${ELCDIR}
ln -sf ${ELRELDIR}/*.el .
cat << EOF > path.el
(debian-pkg-add-load-path-item ".")
(setq byte-compile-warnings nil)
rm -f path.el
exit 0
#!/bin/sh -e
# /usr/lib/emacsen-common/packages/remove/ncrack
if [ ${FLAVOR} != emacs ]; then
if test -x /usr/sbin/install-info-altdir; then
echo remove/${PACKAGE}: removing Info links for ${FLAVOR}
install-info-altdir --quiet --remove --dirname=${FLAVOR} /usr/share/info/
echo remove/${PACKAGE}: purging byte-compiled files for ${FLAVOR}
rm -rf /usr/share/${FLAVOR}/site-lisp/${PACKAGE}
;; -*-emacs-lisp-*-
;; Emacs startup file, e.g. /etc/emacs/site-start.d/50ncrack.el
;; for the Debian ncrack package
;; Originally contributed by Nils Naumann <>
;; Modified by Dirk Eddelbuettel <>
;; Adapted for dh-make by Jim Van Zandt <>
;; The ncrack package follows the Debian/GNU Linux 'emacsen' policy and
;; byte-compiles its elisp files for each 'emacs flavor' (emacs19,
;; xemacs19, emacs20, xemacs20...). The compiled code is then
;; installed in a subdirectory of the respective site-lisp directory.
;; We have to add this to the load-path:
(let ((package-dir (concat "/usr/share/"
(symbol-name debian-emacs-flavor)
;; If package-dir does not exist, the ncrack package must have
;; removed but not purged, and we should skip the setup.
(when (file-directory-p package-dir)
(if (fboundp 'debian-pkg-add-load-path-item)
(debian-pkg-add-load-path-item package-dir)
(setq load-path (cons package-dir load-path)))
(autoload 'ncrack-mode "ncrack-mode"
"Major mode for editing ncrack files." t)
(add-to-list 'auto-mode-alist '("\\.ncrack$" . ncrack-mode))))
# Provides: ncrack
# Required-Start: $network $local_fs
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: <Enter a short description of the software>
# Description: <Enter a long description of the software>
# <...>
# <...>
# Author: Devon Kearns <>
# PATH should only include /usr/* if it runs after the script
DESC=ncrack # Introduce a short description here
NAME=ncrack # Introduce the short server's name here
DAEMON=/usr/sbin/ncrack # Introduce the server's location here
DAEMON_ARGS="" # Arguments to run the daemon with
# Exit if the package is not installed
[ -x $DAEMON ] || exit 0
# Read configuration variable file if it is present
[ -r /etc/default/$NAME ] && . /etc/default/$NAME
# Load the VERBOSE setting and other rcS variables
. /lib/init/
# Define LSB log_* functions.
# Depend on lsb-base (>= 3.0-6) to ensure that this file is present.
. /lib/lsb/init-functions
# Function that starts the daemon/service
# Return
# 0 if daemon has been started
# 1 if daemon was already running
# 2 if daemon could not be started
start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --test > /dev/null \
|| return 1
start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- \
|| return 2
# Add code here, if necessary, that waits for the process to be ready
# to handle requests from services started subsequently which depend
# on this one. As a last resort, sleep for some time.
# Function that stops the daemon/service
# Return
# 0 if daemon has been stopped
# 1 if daemon was already stopped
# 2 if daemon could not be stopped
# other if a failure occurred
start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE --name $NAME
[ "$RETVAL" = 2 ] && return 2
# Wait for children to finish too if this is a daemon that forks
# and if the daemon is only ever run from this initscript.
# If the above conditions are not satisfied then add some other code
# that waits for the process to drop all resources that could be
# needed by services started subsequently. A last resort is to
# sleep for some time.
start-stop-daemon --stop --quiet --oknodo --retry=0/30/KILL/5 --exec $DAEMON
[ "$?" = 2 ] && return 2
# Many daemons don't delete their pidfiles when they exit.
rm -f $PIDFILE
return "$RETVAL"
# Function that sends a SIGHUP to the daemon/service
do_reload() {
# If the daemon can reload its configuration without
# restarting (for example, when it is sent a SIGHUP),
# then implement that here.
start-stop-daemon --stop --signal 1 --quiet --pidfile $PIDFILE --name $NAME
return 0
case "$1" in
[ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC " "$NAME"
case "$?" in
0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
[ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME"
case "$?" in
0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $?
# If do_reload() is not implemented then leave this commented out
# and leave 'force-reload' as an alias for 'restart'.
#log_daemon_msg "Reloading $DESC" "$NAME"
#log_end_msg $?
# If the "reload" option is implemented then remove the
# 'force-reload' alias
log_daemon_msg "Restarting $DESC" "$NAME"
case "$?" in
case "$?" in
0) log_end_msg 0 ;;
1) log_end_msg 1 ;; # Old process is still running
*) log_end_msg 1 ;; # Failed to start
# Failed to stop
log_end_msg 1
#echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload}" >&2
echo "Usage: $SCRIPTNAME {start|stop|status|restart|force-reload}" >&2
exit 3
.\" Hey, EMACS: -*- nroff -*-
.\" (C) Copyright 2013 Devon Kearns <>,
.\" First parameter, NAME, should be all caps
.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
.\" other parameters are allowed: see man(7), man(1)
.TH NCRACK SECTION "January 8, 2013"
.\" Please adjust this date whenever revising the manpage.
.\" Some roff macros, for reference:
.\" .nh disable hyphenation
.\" .hy enable hyphenation
.\" .ad l left justify
.\" .ad b justify to both left and right margins
.\" .nf disable filling
.\" .fi enable filling
.\" .br insert line break
.\" .sp <n> insert n+1 empty lines
.\" for manpage-specific macros, see man(7)
ncrack \- program to do something
.B ncrack
.RI [ options ] " files" ...
.B bar
.RI [ options ] " files" ...
This manual page documents briefly the
.B ncrack
.B bar
.\" TeX users may be more comfortable with the \fB<whatever>\fP and
.\" \fI<whatever>\fP escape sequences to invode bold face and italics,
.\" respectively.
\fBncrack\fP is a program that...
These programs follow the usual GNU command line syntax, with long
options starting with two dashes (`-').
A summary of options is included below.
For a complete description, see the Info files.
.B \-h, \-\-help
Show summary of options.
.B \-v, \-\-version
Show version of program.
.BR bar (1),
.BR baz (1).
The programs are documented fully by
.IR "The Rise and Fall of a Fooish Bar" ,
available via the Info system.
<!doctype refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [
<!-- Process this file with docbook-to-man to generate an nroff manual
page: `docbook-to-man manpage.sgml > manpage.1'. You may view
the manual page with: `docbook-to-man manpage.sgml | nroff -man |
less'. A typical entry in a Makefile or is:
manpage.1: manpage.sgml
docbook-to-man $< > $@
The docbook-to-man binary is found in the docbook-to-man package.
Please remember that if you create the nroff version in one of the
debian/rules file targets (such as build), you will need to include
docbook-to-man in your Build-Depends control field.
<!-- Fill in your name for FIRSTNAME and SURNAME. -->
<!ENTITY dhfirstname "<firstname>FIRSTNAME</firstname>">
<!ENTITY dhsurname "<surname>SURNAME</surname>">
<!-- Please adjust the date whenever revising the manpage. -->
<!ENTITY dhdate "<date>January 8, 2013</date>">
<!-- SECTION should be 1-8, maybe w/ subsection other parameters are
allowed: see man(7), man(1). -->
<!ENTITY dhsection "<manvolnum>SECTION</manvolnum>">
<!ENTITY dhemail "<email></email>">
<!ENTITY dhusername "Devon Kearns">
<!ENTITY dhucpackage "<refentrytitle>NCRACK</refentrytitle>">
<!ENTITY dhpackage "ncrack">
<!ENTITY debian "<productname>Debian</productname>">
<!ENTITY gnu "<acronym>GNU</acronym>">
<!ENTITY gpl "&gnu; <acronym>GPL</acronym>">
<refpurpose>program to do something</refpurpose>
<arg><option>-e <replaceable>this</replaceable></option></arg>
<arg><option>--example <replaceable>that</replaceable></option></arg>
<para>This manual page documents briefly the
<command>&dhpackage;</command> and <command>bar</command>
<para>This manual page was written for the &debian; distribution
because the original program does not have a manual page.
Instead, it has documentation in the &gnu;
<application>Info</application> format; see below.</para>
<para><command>&dhpackage;</command> is a program that...</para>
<para>These programs follow the usual &gnu; command line syntax,
with long options starting with two dashes (`-'). A summary of
options is included below. For a complete description, see the
<application>Info</application> files.</para>
<para>Show summary of options.</para>
<para>Show version of program.</para>
<title>SEE ALSO</title>
<para>bar (1), baz (1).</para>
<para>The programs are documented fully by <citetitle>The Rise and
Fall of a Fooish Bar</citetitle> available via the
<application>Info</application> system.</para>
<para>This manual page was written by &dhusername; &dhemail; for
the &debian; system (and may be used by others). Permission is
granted to copy, distribute and/or modify this document under
the terms of the &gnu; General Public License, Version 2 any
later version published by the Free Software Foundation.
On Debian systems, the complete text of the GNU General Public
License can be found in /usr/share/common-licenses/GPL.
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
This diff is collapsed.
?package(ncrack):needs="X11|text|vc|wm" section="Applications/see-menu-manual"\
title="ncrack" command="/usr/bin/ncrack"
# Regular cron jobs for the ncrack package
0 4 * * * root [ -x /usr/bin/ncrack_maintenance ] && /usr/bin/ncrack_maintenance
# Defaults for ncrack initscript
# sourced by /etc/init.d/ncrack
# installed at /etc/default/ncrack by the maintainer scripts
# This is a POSIX shell fragment
# Additional options that are passed to the Daemon.
Document: ncrack
Title: Debian ncrack Manual
Author: <insert document author here>
Abstract: This manual describes what ncrack is
and how it can be used to
manage online manuals on Debian systems.
Section: unknown
Format: debiandoc-sgml
Files: /usr/share/doc/ncrack/ncrack.sgml.gz
Format: postscript
Files: /usr/share/doc/ncrack/
Format: text
Files: /usr/share/doc/ncrack/ncrack.text.gz
Format: HTML
Index: /usr/share/doc/ncrack/html/index.html
Files: /usr/share/doc/ncrack/html/*.html
# postinst script for ncrack
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <postinst> `configure' <most-recently-configured-version>
# * <old-postinst> `abort-upgrade' <new version>
# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
# <new-version>
# * <postinst> `abort-remove'
# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
# <failed-install-package> <version> `removing'
# <conflicting-package> <version>
# for details, see or
# the debian-policy package
case "$1" in
echo "postinst called with unknown argument \`$1'" >&2
exit 1
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
exit 0
# postrm script for ncrack
# see: dh_installdeb(1)