Information Gathering Flashcards
What is the first lookup tool to run against a domain like www.megacorpone.com?
whois megacorpone.com
What Google hack would allow you to just filter search results to those pages on www.megacorpone.com?
site:megacorpone.com
What Google hack would allow you to just filter search results to php pages on www.megacorpone.com?
site:megacorpone.com filetype:php
What Google hack would allow you to exclude HTML pages on www.megacorpone.com?
site:megacorpone.com -filetype:html
What is recon-ng?
- module-based framework for web-based information gathering.
- stores results in a database
- startup by typing “recon-ng”
Recon-ng: what command allows you to find modules?
marketplace search
Recon-ng: what command allows you to find out information about a module?
marketplace info
Recon-ng: what command allows you to install a module?
marketplace install
Recon-ng: what command allows you to use an installed module?
modules load
Recon-ng: what command allows you to find out information about a module after it has been loaded?
info
Recon-ng: what is the Google module that uses the “site:” search operator?
recon/domain-hosts/google_site_web
Recon-ng: what command in the Google module to find all subdomains for a site?
- options set SOURCE megacorpone.com
- run
Recon-ng: what command allows discovered subdomains in the database to be displayed?
show hosts
Recon-ng: what module allows you to resolve IP addresses to host domain names?
recon/hosts-hosts-resolve
What does SSL Server Test do?
- analyzes a server’s SSL/TLS configuration and compares it against current best practices
What is the name of the public site for storing and sharing text, that does not require an account for usage?
pastebin
What is theHarvester?
information gathering tool that gathers, emails, names, subdomains, IPs, and URLs from multiple public data sources.
What command would allow the use of theHarvester to search for information about the domain megacorpone.com?
theHarvester -d megacorpone.com -b google
What is the site that allows you to search social media sites for users or a keyword?
social-searcher
What is the process of DNS?
- Hostname entered into browser
- Browser passes the hostname to the OS’ DNS client, and the OS then forwards the hostname to the external DNS server configured for use
- The first server in the chain is known as the DNS recursor and is responsible for interacting with the DNS infrastructure and returning the results to the DNS client.
- The DNS recursor contacts one of the servers in the DNS root zone.
- The root server then responds with the address of the server responsible for the zone containing the TLD (.com TLD)
- Once the DNS recursor server receives the address of the TLD DNS server, it queries for the address of the authoritative nameserver for the .com domain.
- The authoritative nameserver is the final step in the DNS lookup process and contains the DNS records in a local database known as the “zone file”.
- Once the DNS recursor provides the DNS client with the IP address for the hostname, the browser can contact the correct web server at its IP address and load the webpage.
What is the Zone File?
- The authoritative nameserver contains a zone file.
- The Zone File is a local database that contains DNS records
- Their are typically two zones for each domain:
1) the forward lookup zone used to find the IP Address of a specified hostname
2) the reverse lookup zone used to find the hostname of a specific IP Address
DNS Records: NS
- Nameserver record
- contains the name of the authoritative servers hosting the DNS records for a domain
DNS Records: A
- A record (aka host record)
- contains the IP address of a hostname
DNS Records: MX
- Mail Exchange record
- contains the names of the servers responsible for handling email for the domain.
DNS Records: PTR
- Pointer record
- used in reverse lookup zones and are used to find the records associated with an IP address
DNS Records: CNAME
- Canonical name record
- used to create aliases for other host records
DNS Records: TXT
- Text records
- contain any arbitrary data and can be used for various purposes, such as domain ownership verification