From fb6728d427949f1dd04f5468356ad52269686b51 Mon Sep 17 00:00:00 2001 From: Dan Fedele Date: Thu, 4 Jun 2020 12:55:27 -0400 Subject: borrowed the nocache trick from setup-kali --- setup-parrot.sh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/setup-parrot.sh b/setup-parrot.sh index ce86bad..7759b4e 100644 --- a/setup-parrot.sh +++ b/setup-parrot.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/parrot.yml -o /tmp/parrot.yml +curl -sL "http://raw.github.com/AgroDan/FreshInstall/master/parrot.yml?nocache=$RANDO" -o /tmp/parrot.yml ansible-playbook /tmp/parrot.yml -- cgit v1.2.3