diff --git a/install.sh b/install.sh index 61ce229..cbb08c4 100755 --- a/install.sh +++ b/install.sh @@ -23,7 +23,7 @@ LOOT_DIR=/usr/share/sniper/loot PLUGINS_DIR=/usr/share/sniper/plugins echo -e "$OKGREEN + -- --=[This script will install sniper under $INSTALL_DIR. Are you sure you want to continue?$RESET" -read answer +read answer mkdir -p $INSTALL_DIR 2> /dev/null mkdir -p $LOOT_DIR 2> /dev/null @@ -74,7 +74,7 @@ git clone https://github.com/1N3/jexboss.git git clone https://github.com/maurosoria/dirsearch.git git clone https://github.com/jekyc/wig.git git clone https://github.com/rbsec/dnscan.git -pip install -r $PLUGINS_DIR/dnscan/requirements.txt +pip3 install -r $PLUGINS_DIR/dnscan/requirements.txt mv $INSTALL_DIR/bin/slurp.zip $PLUGINS_DIR unzip slurp.zip rm -f slurp.zip diff --git a/sniper b/sniper index 2e50b4d..a313102 100755 --- a/sniper +++ b/sniper @@ -1190,7 +1190,7 @@ if [ "$MODE" = "stealth" ]; then echo -e "$OKRED BRUTE FORCING DNS SUBDOMAINS $RESET" echo -e "${OKGREEN}====================================================================================${RESET}" if [ "$DNSCAN" = "1" ]; then - python /pentest/recon/dnscan/dnscan.py -d $TARGET -w $DOMAINS_FULL -o $LOOT_DIR/domains/domains-dnscan-$TARGET.txt -i $LOOT_DIR/domains/domains-ips-$TARGET.txt + python3 $PLUGINS_DIR/dnscan/dnscan.py -d $TARGET -w $DOMAINS_FULL -o $LOOT_DIR/domains/domains-dnscan-$TARGET.txt -i $LOOT_DIR/domains/domains-ips-$TARGET.txt cat $LOOT_DIR/domains/domains-dnscan-$TARGET.txt | grep $TARGET| awk '{print $3}' | sort -u >> $LOOT_DIR/domains/domains-$TARGET.txt 2> /dev/null dos2unix $LOOT_DIR/domains/domains-$TARGET.txt 2>/dev/null fi