From 453710f27ea11e5c9eb166727dc65d123c663034 Mon Sep 17 00:00:00 2001 From: Fernandez Chris Date: Wed, 23 Aug 2017 00:16:06 -0700 Subject: [PATCH] adding more compatibility with blackarch --- sniper | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) mode change 100644 => 100755 sniper diff --git a/sniper b/sniper old mode 100644 new mode 100755 index 280d37f..fbcc372 --- a/sniper +++ b/sniper @@ -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