How to Install PurritoBin on Kali Linux

PurritoBin is an open-source paste-bin web application that allows users to share text and code snippets. This tutorial will guide you on how to install PurritoBin on Kali Linux.

Prerequisites

  1. Kali Linux (latest version)
  2. LAMP stack (Apache, MySQL, PHP)

Steps to Install PurritoBin

  1. Open the terminal on Kali Linux and run the following command to clone the PurritoBin repository from Github:

    git clone https://github.com/PurritoBin/PurritoBin.git
    
  2. Change the directory to the PurritoBin folder and install the required dependencies using the following command:

    cd PurritoBin
    sudo apt-get install php php-common php-curl php-xml php-mbstring php-mysqlnd
    
  3. Use the following command to set the permissions for the storage and bootstrap/cache directories:

    sudo chmod -R 775 storage bootstrap/cache
    sudo chown -R www-data:www-data storage bootstrap/cache
    
  4. Create a new Virtual Host configuration file for PurritoBin using your favorite text editor:

    sudo nano /etc/apache2/sites-available/purritobin.conf
    

    Add the following configuration to the file:

    <VirtualHost *:80>
      ServerName purritobin.local
      DocumentRoot /var/www/html/PurritoBin/public
    
      <Directory /var/www/html/PurritoBin/public>
        AllowOverride all
      </Directory>
    
      ErrorLog ${APACHE_LOG_DIR}/purritobin_error.log
      CustomLog ${APACHE_LOG_DIR}/purritobin_access.log combined
    </VirtualHost>
    
  5. Enable the Virtual Host configuration and restart the Apache server using the following commands:

    sudo a2ensite purritobin.conf
    sudo systemctl restart apache2
    
  6. Create a new MySQL database and user for PurritoBin using the following commands:

    mysql -u root -p
    create database purritobin;
    create user 'purritobin_user'@'localhost' identified by 'your_password';
    grant all privileges on purritobin.* to 'purritobin_user'@'localhost';
    flush privileges;
    exit;
    
  7. Rename the .env.example file as .env and update the database credentials in the file using the following command:

    sudo cp .env.example .env
    sudo nano .env
    

    Update the following fields with your database credentials: DB_DATABASE, DB_USERNAME, and DB_PASSWORD.

  8. Generate a new APP_KEY for the application using the following command:

    php artisan key:generate
    
  9. Migrate the database tables using the following command:

    php artisan migrate
    
  10. PurritoBin has now been successfully installed on your Kali Linux machine. You can access the PurritoBin application by visiting http://purritobin.local in your web browser.

Conclusion

In this tutorial, you learned how to install PurritoBin on Kali Linux. PurritoBin is a secure, open-source paste-bin web application that allows users to share text and code snippets.

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!