Skip to content

Commit

Permalink
Update setup.sh
Browse files Browse the repository at this point in the history
Add dependencies checks
  • Loading branch information
adminrezo committed Nov 17, 2018
1 parent 06b0923 commit 3967253
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions setup.sh
@@ -1,10 +1,16 @@
#!/bin/sh
gem install wpscan

[ ! $(which gem) ] && echo "gem not found in this system. Exiting." && exit 1
$(which gem) install wpscan
wpscan --update

[ ! $(which python3) ] && echo "python3 not found in this system. Exiting." && exit 1
python3 -m pip install virtualenv
virtualenv venv -p python3
. venv/bin/activate
pip install --no-cache-dir -r requirements.txt

[ ! $(which git) ] && echo "git not found in this system. Exiting." && exit 1
git submodule update --init --recursive
cd plugins/vbscan/ && git pull origin master
cd ../joomscan/ && git pull origin master
cd ../joomscan/ && git pull origin master

0 comments on commit 3967253

Please sign in to comment.