Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enabled travis #26

Open
wants to merge 27 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
env:
- BUILD_ENV="src"
- BUILD_ENV="deb"

before_install:
- sudo apt-get -qq update
- sudo apt-get install -y automake autoconf
- if [ $BUILD_ENV = "deb" ]; then sudo apt-get install -y devscripts debhelper; fi

script:
- autoreconf --force --install
- if [ $BUILD_ENV = "src" ]; then ./configure; make; fi
- if [ $BUILD_ENV = "deb" ]; then tar zcvf "../yaptest_$(dpkg-parsechangelog -SVersion | cut -f 1 -d "-").orig.tar.gz" . --exclude debian --exclude .git; debuild -i -us -uc; fi
456 changes: 368 additions & 88 deletions INSTALL

Large diffs are not rendered by default.

88 changes: 88 additions & 0 deletions INSTALL.YAPTEST
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
May 2015: Some notes on installing on Kali 1.1.0

Make sure system is up to date first:
apt-get update
apt-get upgrade

Download yaptest using git:
git clone https://github.com/pentestmonkey/yaptest.git

Install some dependencies:
cd yaptest
./apt-get-install-some-dependencies.sh
cpan Net::Nessus::XMLRPC.pm

List missing dependencies:
./configure
make checkdep

Install a few other tools:
mkdir downloads
cd downloads/

wget https://raw.githubusercontent.com/portcullislabs/rdp-sec-check/master/rdp-sec-check.pl
cpan Encoding::BER
perl -c rdp-sec-check.pl
install -m 0755 -o root -g root rdp-sec-check.pl /usr/local/bin/

wget https://raw.githubusercontent.com/portcullislabs/ssl-cipher-suite-enum/master/ssl-cipher-suite-enum.pl
perl -c ssl-cipher-suite-enum.pl
install -m 0755 -o root -g root ssl-cipher-suite-enum.pl /usr/local/bin/

wget https://raw.githubusercontent.com/pentestmonkey/finger-user-enum/master/finger-user-enum.pl
perl -c finger-user-enum.pl
install -m 0755 -o root -g root finger-user-enum.pl /usr/local/bin/

wget https://raw.githubusercontent.com/pentestmonkey/ident-user-enum/master/ident-user-enum.pl
perl -c ident-user-enum.pl
install -m 0755 -o root -g root ident-user-enum.pl /usr/local/bin/

wget https://raw.githubusercontent.com/pentestmonkey/smtp-user-enum/master/smtp-user-enum.pl
perl -c smtp-user-enum.pl
install -m 0755 -o root -g root smtp-user-enum.pl /usr/local/bin/

wget https://raw.githubusercontent.com/portcullislabs/http-dir-enum/master/http-dir-enum.pl
perl -c http-dir-enum.pl
install -m 0755 -o root -g root http-dir-enum.pl /usr/local/bin/

wget https://raw.githubusercontent.com/pentestmonkey/dns-grind/master/dns-grind.pl
perl -c dns-grind.pl
install -m 0755 -o root -g root dns-grind.pl /usr/local/bin/

git clone https://github.com/pentestmonkey/on
cd on
make
make install
cd ..

git clone https://github.com/pentestmonkey/yapscan
cd yapscan
make
make install
cd ..

Check which dependencies are missing now:
cd ..
make checkdep

There are links to some of the remaining tools here. Go install them manually if you want to use them (optional):
http://pentestmonkey.net/yaptest/installing/yaptest-installation

Configure the database. Disable authentication for local connections. Edit /etc/postgresql/9.1/main/pg_hba.conf in a text editor and set authentication to "trust" as follows:
local all all trust
host all all 127.0.0.1/32 trust
host all all ::1/128 trust

Now make sure the database is both started and restarted after the config change:
/etc/init.d/postgresql restart

Install the yaptest database:
make database

Install the yaptest program files:
make install

Test it:
yaptest-wizard.pl

Create a new database. If this works, your database connection is functional.
56 changes: 34 additions & 22 deletions Makefile.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Makefile.in generated by automake 1.14.1 from Makefile.am.
# Makefile.in generated by automake 1.15.1 from Makefile.am.
# @configure_input@

# Copyright (C) 1994-2013 Free Software Foundation, Inc.
# Copyright (C) 1994-2017 Free Software Foundation, Inc.

# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
Expand All @@ -14,7 +14,17 @@

@SET_MAKE@
VPATH = @srcdir@
am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
am__is_gnu_make = { \
if test -z '$(MAKELEVEL)'; then \
false; \
elif test -n '$(MAKE_HOST)'; then \
true; \
elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
true; \
else \
false; \
fi; \
}
am__make_running_with_option = \
case $${target_option-} in \
?) ;; \
Expand Down Expand Up @@ -76,16 +86,12 @@ NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
subdir = .
DIST_COMMON = INSTALL NEWS README AUTHORS ChangeLog \
$(srcdir)/Makefile.in $(srcdir)/Makefile.am \
$(top_srcdir)/configure $(am__configure_deps) \
$(srcdir)/yaptest-install.sh.in $(srcdir)/yaptest.conf.in \
$(top_srcdir)/modules/yaptest/lib/yaptest.pm.in COPYING \
install-sh missing
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/configure.ac
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
$(ACLOCAL_M4)
DIST_COMMON = $(srcdir)/Makefile.am $(top_srcdir)/configure \
$(am__configure_deps) $(am__DIST_COMMON)
am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
configure.lineno config.status.lineno
mkinstalldirs = $(install_sh) -d
Expand All @@ -112,6 +118,10 @@ am__can_run_installinfo = \
*) (install-info --version) >/dev/null 2>&1;; \
esac
am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
am__DIST_COMMON = $(srcdir)/Makefile.in \
$(srcdir)/yaptest-install.sh.in $(srcdir)/yaptest.conf.in \
$(top_srcdir)/modules/yaptest/lib/yaptest.pm.in AUTHORS \
COPYING ChangeLog INSTALL NEWS README install-sh missing
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
distdir = $(PACKAGE)-$(VERSION)
top_distdir = $(distdir)
Expand Down Expand Up @@ -194,6 +204,7 @@ pdfdir = @pdfdir@
prefix = @prefix@
program_transform_name = @program_transform_name@
psdir = @psdir@
runstatedir = @runstatedir@
sbindir = @sbindir@
sharedstatedir = @sharedstatedir@
srcdir = @srcdir@
Expand Down Expand Up @@ -223,7 +234,6 @@ $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \
$(am__cd) $(top_srcdir) && \
$(AUTOMAKE) --gnu Makefile
.PRECIOUS: Makefile
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
@case '$?' in \
*config.status*) \
Expand Down Expand Up @@ -295,7 +305,7 @@ distdir: $(DISTFILES)
! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
|| chmod -R a+r "$(distdir)"
dist-gzip: distdir
tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
tardir=$(distdir) && $(am__tar) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).tar.gz
$(am__post_remove_distdir)

dist-bzip2: distdir
Expand All @@ -311,17 +321,17 @@ dist-xz: distdir
$(am__post_remove_distdir)

dist-tarZ: distdir
@echo WARNING: "Support for shar distribution archives is" \
"deprecated." >&2
@echo WARNING: "Support for distribution archives compressed with" \
"legacy program 'compress' is deprecated." >&2
@echo WARNING: "It will be removed altogether in Automake 2.0" >&2
tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
$(am__post_remove_distdir)

dist-shar: distdir
@echo WARNING: "Support for distribution archives compressed with" \
"legacy program 'compress' is deprecated." >&2
@echo WARNING: "Support for shar distribution archives is" \
"deprecated." >&2
@echo WARNING: "It will be removed altogether in Automake 2.0" >&2
shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
shar $(distdir) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).shar.gz
$(am__post_remove_distdir)

dist-zip: distdir
Expand All @@ -339,7 +349,7 @@ dist dist-all:
distcheck: dist
case '$(DIST_ARCHIVES)' in \
*.tar.gz*) \
GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).tar.gz | $(am__untar) ;;\
*.tar.bz2*) \
bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
*.tar.lz*) \
Expand All @@ -349,23 +359,23 @@ distcheck: dist
*.tar.Z*) \
uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
*.shar.gz*) \
GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\
eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).shar.gz | unshar ;;\
*.zip*) \
unzip $(distdir).zip ;;\
esac
chmod -R a-w $(distdir)
chmod u+w $(distdir)
mkdir $(distdir)/_build $(distdir)/_inst
mkdir $(distdir)/_build $(distdir)/_build/sub $(distdir)/_inst
chmod a-w $(distdir)
test -d $(distdir)/_build || exit 0; \
dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
&& dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
&& am__cwd=`pwd` \
&& $(am__cd) $(distdir)/_build \
&& ../configure \
&& $(am__cd) $(distdir)/_build/sub \
&& ../../configure \
$(AM_DISTCHECK_CONFIGURE_FLAGS) \
$(DISTCHECK_CONFIGURE_FLAGS) \
--srcdir=.. --prefix="$$dc_install_base" \
--srcdir=../.. --prefix="$$dc_install_base" \
&& $(MAKE) $(AM_MAKEFLAGS) \
&& $(MAKE) $(AM_MAKEFLAGS) dvi \
&& $(MAKE) $(AM_MAKEFLAGS) check \
Expand Down Expand Up @@ -534,6 +544,8 @@ uninstall-am:
mostlyclean-generic pdf pdf-am ps ps-am tags-am uninstall \
uninstall-am

.PRECIOUS: Makefile


database: yaptest_template.sql
touch $(TEMPDIR)/yaptest-db-install.sh
Expand Down
Loading