How to Install and Use Recon-ng
ID: 163064
Description: Recon-ng is a powerful open-source...
Steps:
- Recon-ng is readily available in Kali Linux repositories, making the installation process an easy breeze.
- Open a terminal and execute the following command to install Recon-ng:
- sudo apt-get update && sudo apt-get install recon-ng
- After installation, type recon-ng in the terminal to launch the Recon-ng framework.
- The Recon-ng console will appear, indicating that you are now ready to conduct reconnaissance tasks.
- Recon-ng's true strength lies in its vast library of modules for various reconnaissance tasks.
- Before using any module, run the following command to update your module repository
- recon-ng marketplace update all
- Recon-ng organizes your reconnaissance data into workspaces, making it easier to manage multiple projects. Create a new workspace using the following command
- recon-ng workspace add <workspace_name>
- Add your target(s) to the current workspace using the add command, followed by the relevant parameters. For example, to add a domain use the following command.
- recon-ng -w <workspace_name> add domains example.com
- Select a module from the Recon-ng marketplace that suits your reconnaissance needs. To run a module, use the use command, followed by the module name, and execute it with the run command
- recon-ng -w <workspace_name> use recon/domains-hosts/bing_domain_web
- recon-ng -w <workspace_name> run
- Once the module finishes executing, review the gathered information in the workspace.
- Recon-ng will store results in various tables, accessible using commands such as show hosts, show domains, or show contacts.
- Export the gathered reconnaissance data for further analysis or reporting purposes. Use the csv, json, or other available formats to save the results to a file.
- recon-ng -w <workspace_name> show hosts > hosts.csv