Information Gathering (Reconnaissance)
1. Passive reconnaissance overview
Quick review of Physical / Social :
- Location Information :
- Satellite images
- Drone recon
- Building layout (badge readers, break areas, security, fencing)
- Job Information :
- Employees (name, job title, phone number, manager, etc...)
- Pictures (badgephotos, desk photos...)
Web/Host
- Target Validation : WHOIS, nslookup, dnsrecon
- Finding Subdomains : Google Fu, dig, Nmap, Sublist3r, Bluto, crt.sh, etc...
- Fingerprinting : Nmap, Wappalyzer, WhatWeb, BuiltWith, Netcat
- Data Breaches : HIBP, Breach-Parse, WeLeakInfo
1.1. Email address gathering and testing
Hunter.io : Search for email addresses, and compare through LinkedIn Phonebook.cz : domains/email/urls voilanorbert.com : same Clearbit on Chrome emailhippo : test the found email addresses email-checker.net : same
1.2. gathering breached credentials with breach-parse
- breach-parse : https://github.com/hmaverickadams/breach-parse
Install breach-parse and run as the following example :
$ cd /opt/Breach-Parse
$ ./breach-parse.sh @tesla.com tesla.txt
Extracting usernames...
Extracting passwords...
- theharvester : https://github.com/laramies/theHarvester (default kali integrated)
Some ressources require API keys (as Hunter.io)
flag | description |
---|---|
-d |
domain |
-l |
lines; number of results |
-b |
what to search on |
$ theharvester -d tesla.com -l 500 -b google
- dehashed.com : https://dehashed.com/
1.3. Hunting subdomains
- sublist3r :
- install
sudo apt install sublist3r
- run
sublist3r -d tesla.com
- crt.sh :
- search engine
%.tesla.com
(certificate fingerprinting) - Amass :
- (github)
For each result, use Tomnomnom's httprobe tool to see if the site is alive. (github)
1.4. Identifying website technologies
- BuiltWith.com
- wappalyzer : add to firefox, browse the site and use the extension.
- whatweb :
$ whatweb https://tesla.com
1.5. BurpSuite
Install process :
- install and run
- setup foxyproxy
- surf the web and let the magic happen
1.6. Google Fu
site:tesla.com -www filetype:csv
Google Fu learning : site
1.7. Social Media
LinkedIn to get people working for the site, hunter.io to get the email address format --> list of used email addresses.