blob: 7759b4e144e3e4cff014d93a6873ae0f731c567a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
#!/bin/bash
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as sudo or root."
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 "***********************************"
curl -s https://bootstrap.pypa.io/get-pip.py -o /tmp/get-pip.py
python3 /tmp/get-pip.py --user --no-warn-script-location
export PATH=$PATH:/root/.local/bin
echo "***********************************"
echo "* Installing ansible *"
echo "***********************************"
pip install ansible
echo "***********************************"
echo "* Pulling master bashrc *"
echo "***********************************"
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?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?nocache=$RANDO" -o /tmp/master-tmux_conf
echo "***********************************"
echo "* Running Kali playbook *"
echo "***********************************"
curl -sL "http://raw.github.com/AgroDan/FreshInstall/master/parrot.yml?nocache=$RANDO" -o /tmp/parrot.yml
ansible-playbook /tmp/parrot.yml
echo "***********************************"
echo "* Cleaning up *"
echo "***********************************"
rm -f /tmp/master-bashrc /tmp/master-bash_functions /tmp/master-tmux_conf /tmp/get-pip.py /tmp/parrot.yml
echo "***********************************"
echo "* Done! *"
echo "***********************************"
echo "You should be set up. Check above for any errors."
|