From 478e93cff0e7e28d0f1f826d812ccd7439660675 Mon Sep 17 00:00:00 2001 From: Sivanesh Ashok Date: Fri, 30 Aug 2019 11:19:30 +0530 Subject: [PATCH] Fix bug --- hashcatch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hashcatch b/hashcatch index 071b513..2dcb9bb 100755 --- a/hashcatch +++ b/hashcatch @@ -147,6 +147,8 @@ hc_help(){ } hc_run(){ + interface=`grep -i 'interface' $f_config | awk -F'=' '{print $2}'` + if [ "$EUID" -ne 0 ] then echo -e "[-] Requires root permission. Exiting!" @@ -218,8 +220,6 @@ hc_run(){ banner - interface=`grep -i 'interface' $f_config | awk -F'=' '{print $2}'` - rm -r /tmp/hc_* &> /dev/null echo -en "\033[3B"