Bepasty is a web application for file sharing, which provides a simple and efficient way to upload and download files directly to and from a server. This tutorial will guide you through the installation of Bepasty on your Kali Linux system.
Before getting started, make sure that you have the following prerequisites:
The first step is to ensure that your Kali Linux system is up-to-date. Run the following commands to update the package lists and to upgrade your system:
sudo apt update
sudo apt upgrade
Bepasty has a few dependencies that need to be installed before we can install Beptasy itself. These dependencies include Apache, Python, and Git. Run the following command to install these dependencies:
sudo apt install apache2 python3 git
Now that we have installed the dependencies, it's time to install Bepasty itself. We will be using git to download the latest version of Bepasty from the official repository. Run the following command to download and install Bepasty:
cd /var/www/html/
sudo git clone https://github.com/bepasty/bepasty-server.git
cd bepasty-server
sudo pip3 install -r requirements.txt
sudo python3 setup.py install
To use Bepasty, we need to configure the Apache web server to serve the Bepasty files. We will create a new Apache configuration file at /etc/apache2/sites-available/bepasty.conf
. Run the following command to create the file:
sudo nano /etc/apache2/sites-available/bepasty.conf
Insert the following code into the file:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html/bepasty-server/bepasty/static/
Alias /uploads /var/www/uploads/
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
Save and close the file using Ctrl+X
, Y
, and Enter
.
Now let's enable the new configuration file and restart Apache by running the following commands:
sudo a2ensite bepasty.conf
sudo service apache2 restart
We need to create a directory where we can store uploaded files. Run the following command to create a directory called uploads
under /var/www
:
sudo mkdir /var/www/uploads
sudo chmod 777 /var/www/uploads
Bepasty is now installed, but before we can use it, we need to configure it. We will create a new configuration file at /etc/bepasty.conf
. Run the following command to create the file:
sudo nano /etc/bepasty.conf
Insert the following code into the file:
[general]
storage = json
directory = /var/www/uploads
allow_new_accounts = yes
[httpd]
listen_ip = 0.0.0.0
listen_port = 5000
Save and close the file using Ctrl+X
, Y
, and Enter
.
Now that we have installed and configured Bepasty, we can start the Bepasty server by running the following command:
sudo bepasty-server -c /etc/bepasty.conf
You should now be able to access Bepasty by navigating to http://your-server-ip:5000
in your web browser.
Congratulations, you have successfully installed Bepasty on your Kali Linux system. You can now use Bepasty to upload and download files directly to and from your server.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!