I’ve always found installing Dropbox on Kali linux a bit hit-and-miss but the more recent distributions of Kali linux seem to be a bit more stable so I thought I’d write a quite guide now its become a more predictable process.
Ok so there’s a few things to know first:
Get a second Dropbox Account
I highly recommend not using you primary Dropbox account on Kali. Remember even when using a reputable service like HackTheBox for ethical hacking, you are still VPNing in to a network of hackers-in-training. I have a couple of free Dropbox accounts that share a folder from the root with my main account. This means I can still transfer files easily but should my primary account be compromised, no files other than those in my Kali-only-Dropbox account are exposed (and these are just notes on my training).
Check your filesystem
In 2018, Dropbox dropped support for any filesystems on Linux other than EXT4 so if you are using anything other than this, you’re out of luck
Download the Debian installer
Kali is based upon Debian so download the Debian install to your Kali box from the Dropbox website: https://www.dropbox.com/en_GB/install-linux
Make sure you have all the packges installed that Dropbox will required by running the following:
sudo apt-get update sudo apt install gdebi gdebi-core sudo apt install python3-gpg
Installing Dropbox on Kali
In a terminal window, browse to the folder where you downloaded the installer (most likely the Downloads folder) and run the following command (updating the file name to match the one you downloaded):
sudo gdebi ./dropbox_2019.02.14_amd64.deb
The installer will run and you’ll be asked if you want to download the additional packages for the Gnome desktop integration (called Nautilus), say yes.
Once this installation has finished, you need to install the Dropbox daemon and initialize it by running the following command:
sudo dropbox start -i
Dropbox will run and a login screen will be launched in your browser, login and you should see the Dropbox icon in the top-right hand corner of your Kali desktop start to sync.