Skip to content

Commit

Permalink
Merge pull request #12 from OWASP/fix-geckomotor
Browse files Browse the repository at this point in the history
Fix geckomotor
  • Loading branch information
Julio Lira authored Mar 22, 2020
2 parents 8347578 + eb5c3f0 commit 38569d4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions main
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ __interative(){
;;
"Make wordlist aggressive")
export aggressive="1"
_checkGecko
__wordlist
;;
*) echo -e "\033[31mRFTM\033[0m";exit ;;
Expand Down
6 changes: 3 additions & 3 deletions modules/functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,20 @@ _getGecko(){
$(wget "https://github.com/mozilla/geckodriver/releases/download/v0.26.0/geckodriver-v0.26.0-linux32.tar.gz" --progress=bar \
-O "modules/geckodriver/Geckodriver.tar")
fi
[ -e "modules/geckodriver/geckodriver" ] || echo -e "$incorrect Dont downloaded, check you conection"
test -e "modules/geckodriver/Geckodriver.tar" || echo -e "$incorrect Dont downloaded, check you conection"
# Extract file to geckodriver
tar -C "modules/geckodriver/" -xf "modules/geckodriver/Geckodriver.tar" || exit 1
}

# Check if gecko are install
_checkGecko(){
if [ -e "modules/geckodriver/geckodriver" ]
if test -e "modules/geckodriver/geckodriver"
then
echo -e "$correct Gecko file exists"
else
echo "Download Geckodriver"
_getGecko
[ -e "modules/geckodriver/GeckoDriver" ] && echo -e "$correct Geckodriver downloaded" || echo -e "$incorrect Geckodriver error"
test -e "modules/geckodriver/geckodriver" && echo -e "$correct Geckodriver downloaded" || echo -e "$incorrect Geckodriver error"
fi
}

Expand Down

0 comments on commit 38569d4

Please sign in to comment.