Recon-ng Tutorials for Enumeration Targets
Recon-ng Basics
Firstly we need to create a workspaces related to the target organization. It will gather our research
and findings under these workspaces.
1 workspaces list
2 workspaces create example-name
You can create and list companies.
1 db insert companies
2 show companies
You can add a domain name and list it.
1 db insert domains
2 show domains
API KEYS
You can find the Recon-ng API Key source here.
You can list keys, and add keys.
1 keys list #list the keys
2 keys add example_api xxxxxxxxxxxxxxxxxxxxx # adding API key to module.
3 keys add binaryedge_api b8880xxxxxxxxxxxxxxxxx # example add api key
Modules
You can see the modules that can be installed on recon-ng with the marketplace command.
Modülleri yüklemek için aşağıdaki komutları kullanabilirsiniz
1 # To load all modules
2 marketplace install all # This command will load all supported or unsupported modules doe,
3 but you may get some errors about censys libraries due to some incompatibilities with python
4 3.10.
5 # To load modules one by one
6 marketplace install path # So like this marketplace install recon/companies-contacts/
bing_linkedin_cache
#Note: You may get an error because you did not add the APIs. Not all modules need API. But
when adding the modules you need to the API, if the required API value is not available, you
will get an error.
You can list installed modules.
Start Recon to Targets
We can select the module we want to run and start the recon as follows.
1 modules load recon/hosts-ports/censys_ip
2 options set SOURCE example.com
3 options set VIRTUAL_HOSTS EXCLUDE # You have three option about this settings =
4 EXCLUDE, INCLUDE, ONLY
run
We can get reports with the help of the following commands in the workspaces where we have
completed our tasks.
1 modules search reporting* # You can search modules with '*'. There is some different reporting
2 methods.
3 modules load reporting/html
4 info
5 options set FILENAME /home/user/Desktop/results.html
6 options set CUSTOMER Company Name
7 options set CREATOR 0xhav0c
run