EJPT Flashcards
what is information gathering ?
Information Gathering is the first step of any penetration test and involves gathering or collecting information about an individual, company, website or system that you are targeting
what are the two types of information gathering ?
Passive and Active
what is passive information gathering ?
involves gathering as much information as possible without actively engaging with the target
what is active information gathering ?
Active information gathering - involves gathering as much information as possible by actively engaging with the target system
what are some of the activities associated with passive information gathering ?
- Identifying IP addresses & DNS information
- Identifying domain name and domain ownership information
- Identifying email addresses and social media profiles
- Identifying web technologies being used on target sites
- Identifying subdomains
what are some of the activities associated with active information gathering ?
- Discovering open ports on target systems
- Learning about the internal infrastructure of a target network/organization
- Enumerating information from target systems
What information should we be looking for when profiling websites
- IP addresses
- Directories hidden from search engines
- Names
- Email Addresses
- Phone numbers
- Physical Addresses
- Web technologies being used
what commands can we use to find the IP address of a website ?
host
nslookup
what are some common directories to check when enumerating a website ?
/robots.txt
/sitemap.xml
what is the WHOIS database ?
Whois is a query and response protocol that is widely used for querying databases that store the registered users or assignees of an internet resource, such as a domain name, an IP address block or autonomous system
what are three tools we can use for dns enumeration ?
dnsrecon
dig
dnsdumpster.com
what is a waf ?
a waf is a web application firewall ?
what is a tool we can use for enumerating subdomains ?
sublist3r
what is DNS in simple terms ?
- DNS is a protocol that is used to resolve domain names/hostnames to IP addresses
- During the early days of the internet users would have to remember the IP addresses of the sites they wanted to visit, DNS resolves this issue by mapping domain names to their respective ip addresses
what is a DNS name-server ?
A DNS server or nameserver is like a telephone directory that contains domain names and there corresponding IP addresses
what is an A record used for with DNS ?
A - resolves a hostname or domain to an IPv4 address
what is a AAAA record used for with DNS ?
AAAA - resolves a hostname or domain to an IPv6 address
what is a NS record used for with DNS
NS - reference to the domains nameserver
what is a MX record used for with DNS?
MX - resolves a domain to a mail server
what is a SOA record used for with DNS ?
Domain Authority
what is a SRV record used for with DNS ?
Service records
what is a PTR record used for with DNS?
PTR - resolves an ip address to a hostname
what is the purpose of DNS interrogation ?
- DNS interrogation is the process of enumerating DNS records for a specific domain
- The objective of DNS interrogation is to probe a DNS server to provide us with DNS records for a specific domain
- This process can provide with important information like the IP address of a domain, subdomains, mail server addresses
why is a DNS zone transfer useful for attackers ?
- In certain cases DNS server admins may want to copy or transfer zone files from one DNS server to another. This process is known as a zone transfer
- If misconfigured and left unsecure this functionality can be abused by attackers to copy the zone file from the primary DNS server to another DNS server
- A DNS zone transfer can provide penetration testers with a holistic view of an organizations network layout
Furthermore in certain cases internal network addresses may be found on an organizations DNS servers