How To Install recon-ng on Kali Linux
Introduction
In this tutorial we learn how to install recon-ng
on Kali Linux.
What is recon-ng
recon-ng is:
Recon-ng is a full-featured Web Reconnaissance framework written in Python. Complete with independent modules, database interaction, built in convenience functions, interactive help, and command completion, Recon-ng provides a powerful environment in which open source web-based reconnaissance can be conducted quickly and thoroughly.
Recon-ng has a look and feel similar to the Metasploit Framework, reducing the learning curve for leveraging the framework. However, it is quite different. Recon-ng is not intended to compete with existing frameworks, as it is designed exclusively for web-based open source reconnaissance. If you want to exploit, use the Metasploit Framework. If you want to Social Engineer, use the Social Engineer Toolkit.
There are three methods to install recon-ng
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 recon-ng Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install recon-ng
using apt-get
by running the following command:
sudo apt-get -y install recon-ng
Install recon-ng Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install recon-ng
using apt
by running the following command:
sudo apt -y install recon-ng
Install recon-ng 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 update
After updating apt database, We can install recon-ng
using aptitude
by running the following command:
sudo aptitude -y install recon-ng
How To Uninstall recon-ng on Kali Linux
To uninstall only the recon-ng
package we can use the following command:
sudo apt-get remove recon-ng
Uninstall recon-ng And Its Dependencies
To uninstall recon-ng
and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove recon-ng
Remove recon-ng Configurations and Data
To remove recon-ng
configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge recon-ng
Remove recon-ng configuration, data, and all of its dependencies
We can use the following command to remove recon-ng
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge recon-ng
Dependencies
recon-ng have the following dependencies:
- libjs-jquery
- libjs-skeleton
- node-normalize.css
- python3
- python3-dicttoxml
- python3-dnspython
- python3-flask
- python3-lxml
- python3-requests
- python3-unicodecsv
- python3-xlsxwriter
- python3-yaml
- python3-mechanize
- python3-flasgger
- python3-redis
- python3-flask-restful
- python3-rq
- python3
References
Summary
In this tutorial we learn how to install recon-ng
package on Kali Linux using different package management tools: apt
, apt-get
and aptitude
.