adding more compatibility with blackarch

This commit is contained in:
Fernandez Chris 2017-08-23 00:16:06 -07:00
parent 05d6285248
commit 453710f27e
1 changed files with 7 additions and 1 deletions

8
sniper Normal file → Executable file
View File

@ -116,7 +116,13 @@ REGEX='^[0-9]+$'
# CHECK IF DISTRO IS BLACKARCH
if grep -q BlackArch /etc/issue; then
DISTRO='blackarch'
echo "Detected BlackArch GNU/Linux"
alias iceweasel='firefox'
alias cutycapt='/bin/CutyCapt'
echo "setup aliases for compability with BlackArch"
HOMEPATH=$(pwd)
echo "setting current path to $HOMEPATH"
#alias sniper="${HOMEPATH}/sniper"
fi
# ENABLE/DISABLE AUTOMATIC BRUTE FORCE
@ -311,7 +317,7 @@ init
check_update
if [ "$MODE" = "report" ]; then
sniper $TARGET | tee $LOOT_DIR/sniper-$TARGET-`date +%Y%m%d%H%M`.txt 2>&1
$HOMEPATH/sniper $TARGET | tee $LOOT_DIR/sniper-$TARGET-`date +%Y%m%d%H%M`.txt 2>&1
exit
fi