Last active
April 11, 2023 23:41
-
-
Save vivami/2053402642523a033e2ae6c1690e4b01 to your computer and use it in GitHub Desktop.
Install additional package for kali
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# update kali | |
apt update && apt upgrade -y | |
#install java8 for cobalt strike | |
cd /opt | |
echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main" | tee /etc/apt/sources.list.d/webupd8team-java.list | |
echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main" | tee -a /etc/apt/sources.list.d/webupd8team-java.list | |
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys eea14886 | |
apt-get -y update | |
echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | sudo /usr/bin/debconf-set-selections | |
apt-get -y install oracle-java8-installer | |
apt-get -y install oracle-java8-set-default | |
update-java-alternatives -s java-8-oracle | |
#install macchanger | |
cd /opt | |
git clone https://github.com/alobbs/macchanger.git | |
apt-get -y install autoconf | |
cd macchanger | |
./autogen.sh | |
make | |
make install | |
cd /opt | |
#install impacket | |
cd /opt | |
git clone https://github.com/CoreSecurity/impacket.git | |
pip install pycrypto | |
pip install pyasn1 | |
cd impacket | |
python setup.py install | |
cd /opt | |
#install Veil | |
cd /opt | |
git clone https://github.com/Veil-Framework/Veil.git | |
cd Veil | |
./Install.sh -c | |
cd /opt | |
#install mitmf | |
cd /opt | |
apt-get -y install python-dev python-setuptools libpcap0.8-dev libnetfilter-queue-dev libssl-dev libjpeg-dev libxml2-dev libxslt1-dev libcapstone3 libcapstone-dev libffi-dev file | |
pip install virtualenvwrapper | |
echo source /usr/local/bin/virtualenvwrapper.sh >> ~/.bashrc | |
source /usr/local/bin/virtualenvwrapper.sh | |
mkvirtualenv MITMf -p /usr/bin/python2.7 | |
git clone https://github.com/byt3bl33d3r/MITMf | |
cd MITMf && git submodule init && git submodule update --recursive | |
pip install -r requirements.txt | |
deactivate | |
cd /opt | |
# Install Empire | |
git clone https://github.com/EmpireProject/Empire.git | |
cd Empire/setup | |
./install.sh | |
cd /opt | |
# crackmap and proxychains | |
apt-get install -y proxychains crackmapexec freerdp-x11 | |
#get various tools | |
cd /opt | |
git clone https://github.com/lgandx/Responder.git | |
git clone -b dev https://github.com/PowerShellMafia/PowerSploit.git | |
git clone https://github.com/gdssecurity/windows-exploit-suggester.git | |
git clone https://github.com/inquisb/unix-privesc-check.git | |
git clone https://github.com/rebootuser/linenum.git | |
git clone https://github.com/penturalabs/linux_exploit_suggester.git | |
git clone https://github.com/vivami/MS17-010.git | |
#setup logging in bash | |
echo \# enable logging of all sessions >> ~/.bashrc | |
echo "if [ ! -d $HOME/terminal_log ]; then" >> ~/.bashrc | |
echo "mkdir $HOME/terminal_log" >> ~/.bashrc | |
echo fi >> ~/.bashrc | |
echo test "$(ps -ocommand= -p $PPID | awk '{print $1}')" == 'script' || (script -f $HOME/terminal_log/$(date -Iseconds)_shell.log) >> ~/.bashrc | |
#now, you setup the timestamp :) | |
read -p "Done, don't forget to modify your prompt and add [t] to ~/.bashrc \r\n Press [Enter] to continue." | |
nano ~/.bashrc | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment