From 5d0016204e8343491d09f0e191de44ec261c85e2 Mon Sep 17 00:00:00 2001 From: Dan Fedele Date: Wed, 3 Jun 2020 11:36:37 -0400 Subject: Added cache-trickery for debugging purposes --- setup-kali.sh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'setup-kali.sh') diff --git a/setup-kali.sh b/setup-kali.sh index 1a8d5ca..d8f2471 100644 --- a/setup-kali.sh +++ b/setup-kali.sh @@ -5,6 +5,10 @@ if [[ $EUID -ne 0 ]]; then exit 1 fi +# Generate psuedo-random string to fool servers into not giving you +# cached crap, mostly for debugging purposes. This is kinda neato +RANDO=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n1) + echo "***********************************" echo "* Installing pip *" echo "***********************************" @@ -24,25 +28,25 @@ echo "***********************************" echo "* Pulling master bashrc *" echo "***********************************" -curl -sL http://raw.github.com/AgroDan/FreshInstall/master/master-bashrc -o /tmp/master-bashrc +curl -sL "http://raw.github.com/AgroDan/FreshInstall/master/master-bashrc?nocache=$RANDO" -o /tmp/master-bashrc echo "***********************************" echo "* Pulling bash_functions *" echo "***********************************" -curl -sL http://raw.github.com/AgroDan/FreshInstall/master/master-bash_functions -o /tmp/master-bash_functions +curl -sL "http://raw.github.com/AgroDan/FreshInstall/master/master-bash_functions?nocache=$RANDO" -o /tmp/master-bash_functions echo "***********************************" echo "* Pulling .tmux.conf *" echo "***********************************" -curl -sL http://raw.github.com/AgroDan/FreshInstall/master/master-tmux_conf -o /tmp/master-tmux_conf +curl -sL "http://raw.github.com/AgroDan/FreshInstall/master/master-tmux_conf?nocache=$RANDO" -o /tmp/master-tmux_conf echo "***********************************" echo "* Running Kali playbook *" echo "***********************************" -curl -sL http://raw.github.com/AgroDan/FreshInstall/master/kali.yml -o /tmp/kali.yml +curl -sL "http://raw.github.com/AgroDan/FreshInstall/master/kali.yml?nocache=$RANDO" -o /tmp/kali.yml ansible-playbook /tmp/kali.yml -- cgit v1.2.3