diff options
author | Dan Fedele <dan.fedele@gmail.com> | 2022-11-07 11:28:13 -0500 |
---|---|---|
committer | Dan Fedele <dan.fedele@gmail.com> | 2022-11-07 11:28:13 -0500 |
commit | c059e2bf4d0050f7e08b38944c1065c2fde4d278 (patch) | |
tree | 64bb9660a78e5185461777ee3fb76aa20a2046dc | |
parent | accb338b3ad6487ce1b82dd24ed38a6de5edaa19 (diff) |
Bugfixes and more documentation
-rw-r--r-- | README.md | 16 | ||||
-rw-r--r-- | kali.yml | 8 | ||||
-rw-r--r-- | setup.sh | 17 |
3 files changed, 36 insertions, 5 deletions
@@ -6,12 +6,22 @@ And if you don't like my modifications, I encourage you to fork this repo and ma ## Usage If you just started up a new instance of **Kali**, to get it to a "proper working setup" that I've come to like, simply run the following command from a terminal: -`git clone https://github.com/AgroDan/golden-kali.git && sudo bash ./golden-kali/setup.sh` +```bash +git clone https://github.com/AgroDan/golden-kali.git && sudo bash ./golden-kali/setup.sh +``` -The previous command used to be a `curl` instruction piped to `bash`. I changed that to a `git clone` instead to change up the way files would be included. It was cleaner and I was able to mess around with. I may be installing malicious software, but I wish no mal-intent to you. Peace, love, and hack all the things. +The previous command used to be a `curl` instruction piped to `bash`. I changed that to a `git clone` instead to change up the way files would be included. It was cleaner and I was able to mess around with ansible's conditional logic a bit more. Note you are still allowing code to execute as the root user to install various tools that *I personally* find very useful. They may not be what you find useful, they may not be what you prefer. Please review the code above as it is all open source for your assurance. Know this: I may be installing malicious software, but I wish no mal-intent to you. Peace, love, and hack all the things. ## Changelog I made some significant changes to this repository from the previous iteration. First, the name has been changed to `golden-kali`. Second, I have removed support for ParrotOS. It's generally something I don't use all that often to support it, so this is what you have. I'm sure you can apply all of the ideas here for a ParrotOS build as well if that's your thing. -Many of the changes here came as a result of this repository being included as a necessary install step process for the Red Team at [DoE's Cyberforce Competition](https://cyberforce.energy.gov/cyberforce-competition/) in 2022. The code was modified heavily for the event's exhaustive playbook. I took what I had learned there and simply applied it here.
\ No newline at end of file +Many of the changes here came as a result of this repository being included as a necessary install step process for the Red Team at [DoE's Cyberforce Competition](https://cyberforce.energy.gov/cyberforce-competition/) in 2022. The code was modified heavily for the event's exhaustive playbook. I took what I had learned there and simply applied it here. + +## Caveat Emptor + +Through exhaustive testing and re-testing, we have determined that this will install approximately XX Gigabytes of data onto your Kali machine. It is advised that you have at least YY Gigabytes free before running this installer! + +Despite all of our efforts, no one has been able to get this script to work on Apple's M1 architecture. This is for AMD64 only. Sorry! + +This script takes a _long_ time to complete. The longest step is patching and updating the machine before executing any of the plays. It is advised for your own sanity to ensure that your machine is patched to the latest before running this script.
\ No newline at end of file @@ -113,6 +113,14 @@ - make - make install + - name: Install trufflehog + ansible.builtin.pip: + name: trufflehog + + - name: Install LDAPDomainDump + ansible.builtin.pip: + name: ldapdomaindump + - name: Clone Nishang ansible.builtin.git: repo: 'https://github.com/samratashok/nishang' @@ -3,15 +3,28 @@ # Exit immediately on failure set -eu +# Are we running in bash? +# Single bracket to be posix compliant in case we run in sh or something +if [ ! -z ${BASH} ]; then + echo "This script must be run from the Bash shell!" + exit 1 +fi + +# Are we root? if [[ $EUID -ne 0 ]]; then echo "This script must be run as sudo or root." - exit 1 + exit 2 fi -PATH_TO_SCRIPT=$(dirname $0) +PATH_TO_SCRIPT=$(dirname $(readlink -f $0)) ZSH_FUNC_FILE="zsh_functions.zsh" TMUX_FILE="tmux_conf" +if [[ ! -e ${PATH_TO_SCRIPT}/${ZSH_FUNC_FILE} ]] && [[ ! -e ${PATH_TO_SCRIPT}/${TMUX_FILE} ]]; then + echo "Cannot find supporting files! Please clone repository and try again!" + exit 3 +fi + echo "***********************************" echo "* Installing pip *" echo "***********************************" |