summaryrefslogtreecommitdiff
path: root/setup-kali.sh
diff options
context:
space:
mode:
authorDan Fedele <dan.fedele@gmail.com>2020-06-03 11:36:37 -0400
committerDan Fedele <dan.fedele@gmail.com>2020-06-03 11:36:37 -0400
commit5d0016204e8343491d09f0e191de44ec261c85e2 (patch)
tree8d67d20ad4030feaea3561e2c8a040ae0ba88926 /setup-kali.sh
parente13e1ad4de54937fa4440e25d5319a0be6856407 (diff)
Added cache-trickery for debugging purposes
Diffstat (limited to 'setup-kali.sh')
-rw-r--r--setup-kali.sh12
1 files changed, 8 insertions, 4 deletions
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