From 995ac6f850e47b385826f8dad46bb565e3f08fe3 Mon Sep 17 00:00:00 2001 From: six2dez Date: Thu, 18 Mar 2021 08:35:37 +0100 Subject: [PATCH] Fix installer and Anubis --- install.sh | 9 +++++---- reconftw.sh | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/install.sh b/install.sh index 306c2171..bd43920d 100755 --- a/install.sh +++ b/install.sh @@ -47,13 +47,14 @@ if [[ $(eval type go $DEBUG_ERROR | grep -o 'go is') == "go is" ]] printf "${bgreen} Golang is already installed ${reset}\n\n" else printf "${yellow} Running: Installing Golang ${reset}\n\n" + version=$(curl https://golang.org/VERSION?m=text) if [ "True" = "$IS_ARM" ]; then - eval wget https://dl.google.com/go/$(curl https://golang.org/VERSION?m=text).linux-armv6l.tar.gz $DEBUG_STD - eval $SUDO tar -C /usr/local -xzf go$LATEST_GO.linux-armv6l.tar.gz $DEBUG_STD + eval wget https://dl.google.com/go/${version}.linux-armv6l.tar.gz $DEBUG_STD + eval $SUDO tar -C /usr/local -xzf ${version}.linux-armv6l.tar.gz $DEBUG_STD $SUDO cp /usr/local/go/bin/go /usr/bin else - eval wget wget https://dl.google.com/go/$(curl https://golang.org/VERSION?m=text).linux-amd64.tar.gz $DEBUG_STD - eval $SUDO tar -C /usr/local -xzf go$LATEST_GO.linux-amd64.tar.gz $DEBUG_STD + eval wget https://dl.google.com/go/${version}.linux-amd64.tar.gz $DEBUG_STD + eval $SUDO tar -C /usr/local -xzf ${version}.linux-amd64.tar.gz $DEBUG_STD $SUDO cp /usr/local/go/bin/go /usr/bin fi rm -rf go$LATEST_GO* diff --git a/reconftw.sh b/reconftw.sh index 3b6efaba..3b1fdfc4 100755 --- a/reconftw.sh +++ b/reconftw.sh @@ -296,7 +296,7 @@ function sub_passive(){ eval github-subdomains -d $domain -k -q -raw -t $GITHUB_TOKENS | anew -q .tmp/github_subdomains_psub.txt fi fi - eval curl -s "https://jldc.me/anubis/subdomains/tiktok.com" $DEBUG_ERROR | grep -Po "((http|https):\/\/)?(([\w.-]*)\.([\w]*)\.([A-z]))\w+" | sed '/^\./d' | anew -q .tmp/jldc_psub.txt + eval curl -s "https://jldc.me/anubis/subdomains/${domain}" $DEBUG_ERROR | grep -Po "((http|https):\/\/)?(([\w.-]*)\.([\w]*)\.([A-z]))\w+" | sed '/^\./d' | anew -q .tmp/jldc_psub.txt timeout 10m waybackurls $domain | unfurl --unique domains | anew -q .tmp/waybackurls_psub.txt timeout 10m gau -subs $domain | unfurl --unique domains | anew -q .tmp/gau_psub.txt if echo $domain | grep -q ".mil$"; then