How To Install device-pharmer on Kali Linux
Introduction
In this tutorial we learn how to install device-pharmer on Kali Linux.
What is device-pharmer
device-pharmer is:
Concurrently open either Shodan search results, a specified IP, IP range, or domain and print the status and title of the page if applicable. Add the -u and -p options to attempt to login to the page first looking for a form login and failing that, attempt HTTP Basic Auth.
Use -f SEARCHSTRING to look for a certain string in the html response in order to test if authentication succeeded. Logs all devices that respond using either the Shodan search term or the target IPs/domain + _results.txt. One caveat with searching the response page’s HTML is that some form login pages return a JSON object response after an authentication request rather than the post-login page’s HTML source. Often you can determine whether or not you were successful by just using -f “success”
Default timeout on the requests is 12 seconds. Sends batches of 1000 requests concurrently which can be adjust using the -c option. One should note that Shodan only allows the first page of results (100 hosts) if you are using their free API key. If you have their professional API key you can specify the number of search result pages to test with the -n NUMBER_OF_PAGES argument. By default it will only check page 1.
There are three methods to install device-pharmer 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 device-pharmer Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get updateAfter updating apt database, We can install device-pharmer using apt-get by running the following command:
sudo apt-get -y install device-pharmerInstall device-pharmer Using apt
Update apt database with apt using the following command.
sudo apt updateAfter updating apt database, We can install device-pharmer using apt by running the following command:
sudo apt -y install device-pharmerInstall device-pharmer 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 device-pharmer using aptitude by running the following command:
sudo aptitude -y install device-pharmerHow To Uninstall device-pharmer on Kali Linux
To uninstall only the device-pharmer package we can use the following command:
sudo apt-get remove device-pharmerUninstall device-pharmer And Its Dependencies
To uninstall device-pharmer and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove device-pharmerRemove device-pharmer Configurations and Data
To remove device-pharmer configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge device-pharmerRemove device-pharmer configuration, data, and all of its dependencies
We can use the following command to remove device-pharmer configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge device-pharmerDependencies
device-pharmer have the following dependencies:
References
Summary
In this tutorial we learn how to install device-pharmer package on Kali Linux using different package management tools: apt, apt-get and aptitude.