mirror of
https://github.com/cham423/cs-tools
synced 2026-06-08 13:30:34 +00:00
updated script flow and added java install
This commit is contained in:
@@ -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.
|
||||
+16
-12
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user