Codebase list powershell-empire / master setup / reset.sh
master

Tree @master (Download .tar.gz)

reset.sh @masterraw · history · blame

#!/bin/bash

if [[ $EUID -ne 0 ]]; then
   echo " [!] This script must be run as root" 1>&2
   exit 1
fi

IFS='/' read -a array <<< pwd

if [[ "$(pwd)" != *setup ]]
then
	cd ./setup
fi

cd ..

# remove the debug file if it exists
if [ -e empire.debug ]
then
	rm empire.debug
fi

# remove the download folders
if [ -d ./downloads/ ]
then
	rm -rf ./downloads/
fi