Skip to content

Commit

Permalink
correct the issue wehre running the install script from a different d…
Browse files Browse the repository at this point in the history
…irectory would break the execution (#204)
  • Loading branch information
vinnybod authored Aug 21, 2021
1 parent b71ce77 commit 357a7b6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion setup/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ function install_powershell() {
elif [ $OS_NAME == "KALI" ]; then
apt update && apt -y install powershell
fi

mkdir -p /usr/local/share/powershell/Modules
cp -r ./empire/server/powershell/Invoke-Obfuscation /usr/local/share/powershell/Modules
cp -r "$PARENT_PATH"/empire/server/powershell/Invoke-Obfuscation /usr/local/share/powershell/Modules
rm -f packages-microsoft-prod.deb*
}

Expand Down Expand Up @@ -54,6 +55,8 @@ apt-get update && apt-get install -y wget sudo

sudo -v

# https://stackoverflow.com/questions/24112727/relative-paths-based-on-file-location-instead-of-current-working-directory
PARENT_PATH=$( cd "$(dirname "${BASH_SOURCE[0]}")" ; cd .. ; pwd -P )
OS_NAME=
VERSION_ID=
if grep "10.*" /etc/debian_version 2>/dev/null; then
Expand Down

0 comments on commit 357a7b6

Please sign in to comment.