<gh_stars>1000+
#!/usr/bin/env python
#####################################
# Installation module for owtf
#####################################

# AUTHOR OF MODULE NAME
AUTHOR="spinfoo"

# DESCRIPTION OF THE MODULE
DESCRIPTION="This module will install/update OWASP OWTF"

# INSTALL TYPE GIT, SVN, FILE DOWNLOAD
# OPTIONS = GIT, SVN, FILE
INSTALL_TYPE="GIT"

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

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

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

# DEPENDS FOR FEDORA INSTALLS
FEDORA="git"

# COMMANDS TO RUN AFTER
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"

#!/usr/bin/env python
#####################################
# Installation module for owtf
#####################################

# AUTHOR OF MODULE NAME
AUTHOR="spinfoo"

# DESCRIPTION OF THE MODULE
DESCRIPTION="This module will install/update OWASP OWTF"

# INSTALL TYPE GIT, SVN, FILE DOWNLOAD
# OPTIONS = GIT, SVN, FILE
INSTALL_TYPE="GIT"

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

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

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

# DEPENDS FOR FEDORA INSTALLS
FEDORA="git"

# COMMANDS TO RUN AFTER
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"
#!/usr/bin/env python ##################################### # Installation module for owtf ##################################### # AUTHOR OF MODULE NAME # DESCRIPTION OF THE MODULE # INSTALL TYPE GIT, SVN, FILE DOWNLOAD # OPTIONS = GIT, SVN, FILE # LOCATION OF THE FILE OR GIT/SVN REPOSITORY # WHERE DO YOU WANT TO INSTALL IT # DEPENDS FOR DEBIAN INSTALLS # DEPENDS FOR FEDORA INSTALLS # COMMANDS TO RUN AFTER 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;\