<commit_before>#!/bin/bash

#----------------------------------------------------------------------------
# The Kali light distro is a minimal install that requires some extra steps
# to run it well in VirtualBox and to install the basic pentesting tools.
# This script will do the following:
#
#   * Install packages needed to build the VirtualBox Guest Additions
#   * Install the VirtualBox Guest Additions
#   * Install the Kali top 10 tools and set a random password on the MySQL
#     database.
#   * Configure PostgreSQL to start on boot
#   * Initialize the MSF database
#   * Reboot the computer.
#
# Prior to running this script, insert the VirtualBox Guest Additions CD
#-----------------------------------------------------------------------------

echo "Updating packages"
apt-get update
apt-get -y upgrade

echo "Installing build tools and headers."
apt-get -y install build-essential linux-headers-$(uname -r)

echo "Installing the VirtualBox Guest Additions."
mount /media/cdrom
if [ ! -f "/media/cdrom/VBoxLinuxAdditions.run" ]; then
    echo "VirtualBox Guest Additions CD not mounted, skipping."
else
    /bin/bash /media/cdrom/VBoxLinuxAdditions.run
fi

echo "Installing Kali top 10 tools."
pass=$(head -c 24 /dev/urandom | base64)
echo "MySQL Root Password: $pass"
echo "mysql-server-5.5 mysql-server/root_password_again password $pass" | debconf-set-selections
echo "mysql-server-5.5 mysql-server/root_password password $pass" | debconf-set-selections
echo "wireshark-common/install-setuid false" | debconf-set-selections
apt-get -y install kali-linux-top10 seclists

echo "Configuring Metasploit Database"
/etc/init.d/postgresql start
update-rc.d postgresql enable
msfdb init

echo "Rebooting."<commit_msg>Eject VBox Guest Additions CD.<commit_after>#!/bin/bash

#----------------------------------------------------------------------------
# The Kali light distro is a minimal install that requires some extra steps
# to run it well in VirtualBox and to install the basic pentesting tools.
# This script will do the following:
#
#   * Install packages needed to build the VirtualBox Guest Additions
#   * Install the VirtualBox Guest Additions
#   * Install the Kali top 10 tools and set a random password on the MySQL
#     database.
#   * Configure PostgreSQL to start on boot
#   * Initialize the MSF database
#   * Reboot the computer.
#
# Prior to running this script, insert the VirtualBox Guest Additions CD
#-----------------------------------------------------------------------------

echo "Updating packages"
apt-get update
apt-get -y upgrade

echo "Installing build tools and headers."
apt-get -y install build-essential linux-headers-$(uname -r)

echo "Installing the VirtualBox Guest Additions."
mount /media/cdrom
if [ ! -f "/media/cdrom/VBoxLinuxAdditions.run" ]; then
    echo "VirtualBox Guest Additions CD not mounted, skipping."
else
    /bin/bash /media/cdrom/VBoxLinuxAdditions.run
fi
umount /media/cdrom
eject /media/cdrom

echo "Installing Kali top 10 tools."
pass=$(head -c 24 /dev/urandom | base64)
echo "MySQL Root Password: $pass"
echo "mysql-server-5.5 mysql-server/root_password_again password $pass" | debconf-set-selections
echo "mysql-server-5.5 mysql-server/root_password password $pass" | debconf-set-selections
echo "wireshark-common/install-setuid false" | debconf-set-selections
apt-get -y install kali-linux-top10 seclists

echo "Configuring Metasploit Database"
/etc/init.d/postgresql start
update-rc.d postgresql enable
msfdb init

echo "Rebooting."
{'fraction_non_alphanumeric': 0.16590779738190098, 'fraction_numerical': 0.00796812749003984, 'mean_word_length': 2.804112554112554, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3260946', 'n_tokens_mistral': 1037, 'n_tokens_neox': 989, 'n_words': 367}