forked from averagesecurityguy/cheat-sheets
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkali_prep.sh
34 lines (28 loc) · 915 Bytes
/
kali_prep.sh
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
#!/bin/sh
# Copyright (c) 2015, LCI Technology Group, LLC
# All rights reserved.
# See LICENSE file for details.
#-----------------------------------------------------------------------------
#
# Script to prepare a new Kali install for first use.
# The script will do the following:
# * Update the software
# * Start the postgresql and metasploit services
# * Configure the postgresql and metasploit services to start on boot
#
# Usage:
# ./kali_prep.sh
#-----------------------------------------------------------------------------
# Update the server
echo "Updating the server."
apt-get update
apt-get -y upgrade
apt-get -y autoremove
# Starting Postgres and Metasploit services
echo "Starting services."
service postgresql start
service metasploit start
# Configure services to start on boot.
echo "Configure services to start on boot."
update-rc.d postgresql enable
update-rc.d metasploit enable