Skip to content

Commit

Permalink
feat: add maintainance commands and virtualenv
Browse files Browse the repository at this point in the history
  • Loading branch information
viyatb committed Jul 22, 2018
1 parent a2cfc8e commit dc00b88
Showing 1 changed file with 30 additions and 2 deletions.
32 changes: 30 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
USER := $(shell whoami)
PROJ=owtf
PYTHON=python3
mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST)))
current_dir := $(notdir $(patsubst %/,%,$(dir $(mkfile_path))))
VENV_PATH=$$HOME/.virtualenvs/${PROJ}

check-root:
ifeq ($(USER), root)
Expand All @@ -20,8 +23,13 @@ install-dependencies:

opt-tools:
sudo apt-get install -y lbd gnutls-bin arachni o-saft metagoofil lbd arachni \
theharvester tlssled nikto dnsrecon nmap whatweb skipfish \
dirbuster metasploit-framework wpscan wapiti waffit hydra metagoofil o-saft
theharvester tlssled nikto dnsrecon nmap whatweb skipfish dirbuster metasploit-framework \
wpscan wapiti waffit hydra metagoofil o-saft

venv:
@echo "Installing the virtualenv for OWTF"
rm -rf $(VENV_PATH)
$(PYTHON) -m venv $(VENV_PATH) --clear

web-tools:
sudo apt-get install kali-linux-web
Expand All @@ -31,6 +39,10 @@ activate-virtualenv:
virtualenv ${HOME}/.venv/owtf
source "${HOME}/.venv/owtf/bin/activate"


setup: activate-virtualenv install-requirements


### REQUIREMENTS

install-python-requirements: setup.py check-root
Expand Down Expand Up @@ -143,3 +155,19 @@ distclean-js:

distclean: distclean-py distclean-js

## MAINTAINERS

bump:
bumpversion patch

bump-minor:
bumpversion minor

bump-major:
bumpversion major

release:
python setup.py register sdist bdist_wheel upload

build:
$(PYTHON) setup.py sdist bdist_wheel

0 comments on commit dc00b88

Please sign in to comment.