How to Install and Use Recon-ng

ID: 163064

Description: Recon-ng is a powerful open-source...

Steps:

  1. Recon-ng is readily available in Kali Linux repositories, making the installation process an easy breeze.
  2. Open a terminal and execute the following command to install Recon-ng:
  3. sudo apt-get update && sudo apt-get install recon-ng
  4. After installation, type recon-ng in the terminal to launch the Recon-ng framework.
  5. The Recon-ng console will appear, indicating that you are now ready to conduct reconnaissance tasks.
  6. Recon-ng's true strength lies in its vast library of modules for various reconnaissance tasks.
  7. Before using any module, run the following command to update your module repository
  8. recon-ng marketplace update all
  9. Recon-ng organizes your reconnaissance data into workspaces, making it easier to manage multiple projects. Create a new workspace using the following command
  10. recon-ng workspace add <workspace_name>
  11. 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.
  12. recon-ng -w <workspace_name> add domains example.com
  13. 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
  14. recon-ng -w <workspace_name> use recon/domains-hosts/bing_domain_web
  15. recon-ng -w <workspace_name> run
  16. Once the module finishes executing, review the gathered information in the workspace.
  17. Recon-ng will store results in various tables, accessible using commands such as show hosts, show domains, or show contacts.
  18. 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.
  19. recon-ng -w <workspace_name> show hosts > hosts.csv
Back