Last active
April 16, 2024 17:13
-
-
Save vjanssens/041a18e9650b0bd7fab02751138ae05c to your computer and use it in GitHub Desktop.
Kali linux on VPS
This file contains hidden or 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
# Original source: https://medium.com/@artur.brylka/quick-guide-kali-linux-rdp-on-digital-ocean-in-5-minutes-579309b85ed5 | |
# Create Ubuntu 20.04 VPS with 16GB RAM through your favourite cloud provider | |
# SSH into the machine with the root account | |
apt update | |
apt dist-upgrade -y | |
apt install -y virtualbox virtualbox-ext-pack | |
# Download latest VirtualBox image (source: https://www.offensive-security.com/kali-linux-vm-vmware-virtualbox-image-download/) | |
wget https://images.offensive-security.com/virtual-images/kali-linux-2020.2a-vbox-amd64.ova | |
# This is needed to allow Microsoft Remote Desktop on mac to connect to the VM | |
VBoxManage setproperty vrdeextpack "Oracle VM VirtualBox Extension Pack" | |
# Import the downloaded VM, increase allowed memory and cpu usage | |
VBoxManage import kali-linux-2020.2a-vbox-amd64.ova --vsys 0 --eula accept --memory 12000 --cpus 4 | |
# Run the VM in headless mode, with VRDE on (which allows RDP) | |
VBoxHeadless --startvm "Kali-Linux-2020.2a-vbox-amd64" --vrde on | |
# Connect with your local RDP tool to the remote IP | |
# You should see the Kali login screen, use kali/kali to login | |
# Once logged in, click on the terminal icon in the menu bar | |
# Change the password of the kali user | |
passwd # and follow the instructions |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment