Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add dependencies checks
- Loading branch information
Showing
1 changed file
with
8 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |