diff --git a/README.md b/README.md new file mode 100644 index 0000000..42ef54a --- /dev/null +++ b/README.md @@ -0,0 +1,4 @@ +# Overview +* this is a copy of the https-c2-done-right script, with modifications to work with the updated version of certbot +# Usage +* run the script. diff --git a/https-c2.sh b/https-c2.sh index afb5efa..9871303 100755 --- a/https-c2.sh +++ b/https-c2.sh @@ -4,6 +4,21 @@ runuser=$(whoami) tempdir=$(pwd) +# Environment Checks +func_check_env(){ + # Check Sudo Dependency going to need that! + if [ $(id -u) -ne '0' ]; then + echo + echo ' [ERROR]: This Setup Script Requires root privileges!' + echo ' Please run this setup script again with sudo or run as login as root.' + echo + exit 1 + fi +} + +echo 'installing java' +apt-get update && apt-get -y install openjdk-11-jdk + echo -n "Enter your DNS (A) record for domain [ENTER]: " read domain echo @@ -21,20 +36,9 @@ domainStore="$domain.store" cobaltStrikeProfilePath="$cobaltStrike/httpsProfile" -# Environment Checks -func_check_env(){ - # Check Sudo Dependency going to need that! - if [ $(id -u) -ne '0' ]; then - echo - echo ' [ERROR]: This Setup Script Requires root privileges!' - echo ' Please run this setup script again with sudo or run as login as root.' - echo - exit 1 - fi -} func_check_tools(){ - # Check Sudo Dependency going to need that! + # Check for keytool if [ $(which keytool) ]; then echo '[Sweet] java keytool is installed' else