Skip to content

Commit

Permalink
improved scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
spinfoo committed Mar 11, 2019
1 parent 2c501ed commit 9efeddf
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Expand Up @@ -2,6 +2,6 @@ FROM debian:sid
LABEL version="1.1"
LABEL description="Dockerized version of Trustedsec PTF - Penetration Testing Framework"
LABEL author="Jacobo Avariento Gimeno"

COPY .bashrc /root/.bashrc
COPY bootstrap.sh /root/bootstrap.sh
RUN bash -c /root/bootstrap.sh
8 changes: 5 additions & 3 deletions bootstrap.sh
Expand Up @@ -2,16 +2,18 @@
#
# Commands run by Docker when building the docker container with PTF framework
#
# Author: Jacobo Avariento Gimeno
#

echo "docker-ptf" > /etc/hostname
apt-get update
apt-get upgrade -y
apt-get install -y python git sudo locate vim #libgmp3-dev:i386
cd /root
git clone https://github.com/spinfoo/ptf.git
git clone https://github.com/trustedsec/ptf.git
cd ptf
git checkout docker
git pull origin docker
#git checkout docker
#git pull origin docker
echo -en "use modules/install_update_all\nyes\n" | python ptf
echo
echo
Expand Down
2 changes: 1 addition & 1 deletion modules/reporting/keepnote.py
Expand Up @@ -20,7 +20,7 @@
INSTALL_LOCATION="keepnote"

# DEPENDS FOR DEBIAN INSTALLS
DEBIAN="python-gnome2-dev,aspell,aspell-en,python,python-gtk2,python-glade2,libgtk2.0-dev,libsqlite3-0"
DEBIAN="aspell aspell-en python python-gtk2 python-glade2 libgtk2.0-dev libsqlite3-0"

# DEPENDS FOR FEDORA INSTALLS
FEDORA="git,gnome-python2-devel,aspell,aspell-en,python,pygtk2,gtk2-devel,libsqlite3x"
Expand Down
8 changes: 4 additions & 4 deletions modules/vulnerability-analysis/owtf.py
Expand Up @@ -14,18 +14,18 @@
INSTALL_TYPE="GIT"

# LOCATION OF THE FILE OR GIT/SVN REPOSITORY
REPOSITORY_LOCATION="https://github.com/owtf/owtf-docker.git"
REPOSITORY_LOCATION="https://github.com/owtf/owtf.git"

# WHERE DO YOU WANT TO INSTALL IT
INSTALL_LOCATION="owtf"

# DEPENDS FOR DEBIAN INSTALLS
DEBIAN="git"
DEBIAN="git postgresql-11"

# DEPENDS FOR FEDORA INSTALLS
# FEDORA="subversion,autoconf,make,automake,gcc,gcc-c++,kernel-devel,openssl-devel"
FEDORA="git"

# COMMANDS TO RUN AFTER
AFTER_COMMANDS=""
AFTER_COMMANDS="cd {INSTALL_LOCATION}, python setup.py install, systemctl enable postgresql, /etc/init.d/postgresql start, export OWTF_USER=$(grep DATABASE_USER owtf/settings.py | tail -1 | cut -d'"' -f2), export OWTF_PASS=$(grep DATABASE_PASS owtf/settings.py | tail -1 | cut -d'"' -f2), export OWTF_DB=$(grep DATABASE_NAME owtf/settings.py | tail -1 | cut -d'"' -f2), psql -c \"CREATE USER $OWTF_USER WITH PASSWORD $OWTF_PASS\", psql -c \"CREATE DATABASE $OWTF_DB WITH OWNER $OWTF_USER ENCODING 'utf-8' TEMPLATE template0;\""

LAUNCHER="owtf"

0 comments on commit 9efeddf

Please sign in to comment.