How To Install webdis on Kali Linux
Introduction
In this tutorial we learn how to install webdis on Kali Linux.
What is webdis
webdis is:
Webdis is a simple web server providing HTTP interface to Redis. Some features include:
- Support for GET and POST requests.
- JSON output by default, optional JSONP parameter (?jsonp=myFunction).
- Raw Redis 2.0 protocol output with .raw suffix
- HTTP 1.1 pipelining (50,000 http requests per second on a desktop Linux machine.)
- Restricted commands by IP range (CIDR subnet + mask) or HTTP Basic Auth, returning 403 errors.
- Possible Redis authentication in the config file.
- Pub/Sub using Transfer-Encoding: chunked, works with JSONP as well. Webdis can be used as a Comet server.
- Custom Content-Type using a pre-defined file extension, or with ?type=some/thing.
- URL-encoded parameters for binary data or slashes.
- Logs, with a configurable verbosity.
- Cross-origin XHR, if compiled with libevent2 (for OPTIONS support).
- File upload with PUT.
- With the JSON output, the return value of INFO is parsed and transformed into an object.
There are three methods to install webdis 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 webdis Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get updateAfter updating apt database, We can install webdis using apt-get by running the following command:
sudo apt-get -y install webdisInstall webdis Using apt
Update apt database with apt using the following command.
sudo apt updateAfter updating apt database, We can install webdis using apt by running the following command:
sudo apt -y install webdisInstall webdis 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 webdis using aptitude by running the following command:
sudo aptitude -y install webdisHow To Uninstall webdis on Kali Linux
To uninstall only the webdis package we can use the following command:
sudo apt-get remove webdisUninstall webdis And Its Dependencies
To uninstall webdis and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove webdisRemove webdis Configurations and Data
To remove webdis configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge webdisRemove webdis configuration, data, and all of its dependencies
We can use the following command to remove webdis configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge webdisDependencies
webdis have the following dependencies:
References
Summary
In this tutorial we learn how to install webdis package on Kali Linux using different package management tools: apt, apt-get and aptitude.