blob: 2512a8afe80ad26806aa29cdb693ad97dc6088c6 (
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
|
#!/bin/bash
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as sudo or root."
exit 1
fi
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
export PATH=$PATH:/root/.local/bin
echo "***********************************"
echo "* Installing ansible *"
echo "***********************************"
pip install ansible
echo "***********************************"
echo "* Running Kali playbook *"
echo "***********************************"
curl -sL http://raw.github.com/AgroDan/FreshInstall/master/kali.yml -o /tmp/kali.yml
ansible-playbook /tmp/kali.yml
echo "***********************************"
echo "* Cleaning up *"
echo "***********************************"
rm -f /tmp/get-pip.py /tmp/kali.yml
echo "***********************************"
echo "* Done! *"
echo "***********************************"
echo "You should be set up. Check above for any errors."
|