Passive Information Gathering

Passive Information Gathering is the process of collecting openly available information about a target, generally without any direct interaction with that target.

Website Recon

  • Just browse the site
    • About page to get email and similar files
      • understand the email schema
    • Social Media presence

Whois Enumeration

  • Forward lookup: whois domain.tld | less
    • Get the name of the person in charge (probably high privilege)
    • Get the NameServers
  • Reverse lookup: whois 1.1.1.1 | less
    • Get who is hosting the IP

Google Hacking

  • Using Search engines and their operators to uncover information
    • site:: Limit the results to a single domain
    • ext: or filetype:: Limit the results to a specific filetype
    • prepend - to remove certain results
    • intitle:"index of" "parent directory": Directory listing pages
  • https://exploit-db.com/google-hacking-database

For more, see Dorking

Netcraft

Recon-ng

  • Run: recon-ng
  • marketplace search github: search for modules that contain github
  • marketplace info recon/domains-hosts/google_site_web: get more information about a specific module
  • marketplace install recon/domains-hosts/google_site_web: Install a module
  • marketplace load recon/domains-hosts/google_site_web: Load a module
    • Once loaded type info help
    • options set SOURCE megacropone.com: to set the SOURCE option
    • run: to run the module
  • recon-ng: Stores its output into a local database and uses it for other modules
    • show hosts: to show the hosts database

Open-Source Code

Shodan

  • https://shodan.io
    • Searches to any devices connected to the internet, not just web server
    • hostname:megacorpone.com

Security Headers Scanner

SSL Server Test

Pastebin

User Information Gathering

  • Gather information on the employees to:
    • Define password lists
    • Social Engineering
    • Phishing
    • Credential Stuffing
    • etc.

Email Harvesting

  • Search multiple sources: theharvester -d megacorpone.com -b google

Social Media Tools

  • Identify employees and the companies structure
  • https://social-searcher.com

Site-Specific Tools

Social Media Tools

Stack Overflow

  • https://stackoverflow.com
  • If we can link a user to a stack overflow account we can see what questions their asking to determine the tech stack

Information Gathering Frameworks

OSINT Framework

Maltego


Relevant Note(s): Active Information Gathering Penetration Testing