Skip to content

Commit

Permalink
Update autoenum.sh
Browse files Browse the repository at this point in the history
Allows running autoenum.sh via symlink from $PATH. 
eg ~/.local/bin/autoenum.sh -> /opt/autoenum/autoenum.sh
  • Loading branch information
L-Firstname authored Jan 4, 2021
1 parent 0effcfd commit 0faf795
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions autoenum.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
dir=$(dirname $(readlink -f $0))

if [ ! -x "$(command -v nmap)" ];then
echo "[+] nmap not detected...Installing"
Expand Down Expand Up @@ -80,12 +81,12 @@ if [ ! -x "$(command -v tput)" ];then
sudo apt-get install tput -y > installing;rm installing
fi

source functions/banner.sh
source functions/upgrade.sh
source functions/scans.sh
source functions/enum.sh
source functions/help_general.sh
source functions/menu.sh
source $dir/functions/banner.sh
source $dir/functions/upgrade.sh
source $dir/functions/scans.sh
source $dir/functions/enum.sh
source $dir/functions/help_general.sh
source $dir/functions/menu.sh


if [[ $1 == '-nr' ]];then nr=1;fi
Expand Down

0 comments on commit 0faf795

Please sign in to comment.