How To Install libplack-middleware-csrfblock-perl on Kali Linux
Introduction
In this tutorial we learn how to install libplack-middleware-csrfblock-perl on Kali Linux.
What is libplack-middleware-csrfblock-perl
libplack-middleware-csrfblock-perl is:
Plack::Middleware::CSRFBlock helps blocking Cross-Site Request Forgeries, and can be used without any modifications to your application, in most cases.
When the application response Content-type header is “text/html” or “application/xhtml+xml”, this middleware inserts a hidden input tag that contains a token string into all POST-forms found in the response body.
For every POST requests, this middleware ensures that the input parameters contain the correct token parameter. If not found, the middleware throws an HTTP error 403 (Forbidden) and the forged request does not even reach your application.
There are three methods to install libplack-middleware-csrfblock-perl on Kali Linux. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.
Install libplack-middleware-csrfblock-perl Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get updateAfter updating apt database, We can install libplack-middleware-csrfblock-perl using apt-get by running the following command:
sudo apt-get -y install libplack-middleware-csrfblock-perlInstall libplack-middleware-csrfblock-perl Using apt
Update apt database with apt using the following command.
sudo apt updateAfter updating apt database, We can install libplack-middleware-csrfblock-perl using apt by running the following command:
sudo apt -y install libplack-middleware-csrfblock-perlInstall libplack-middleware-csrfblock-perl Using aptitude
If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude using the following command.
sudo aptitude updateAfter updating apt database, We can install libplack-middleware-csrfblock-perl using aptitude by running the following command:
sudo aptitude -y install libplack-middleware-csrfblock-perlHow To Uninstall libplack-middleware-csrfblock-perl on Kali Linux
To uninstall only the libplack-middleware-csrfblock-perl package we can use the following command:
sudo apt-get remove libplack-middleware-csrfblock-perlUninstall libplack-middleware-csrfblock-perl And Its Dependencies
To uninstall libplack-middleware-csrfblock-perl and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove libplack-middleware-csrfblock-perlRemove libplack-middleware-csrfblock-perl Configurations and Data
To remove libplack-middleware-csrfblock-perl configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge libplack-middleware-csrfblock-perlRemove libplack-middleware-csrfblock-perl configuration, data, and all of its dependencies
We can use the following command to remove libplack-middleware-csrfblock-perl configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libplack-middleware-csrfblock-perlDependencies
libplack-middleware-csrfblock-perl have the following dependencies:
References
Summary
In this tutorial we learn how to install libplack-middleware-csrfblock-perl package on Kali Linux using different package management tools: apt, apt-get and aptitude.