Curated

Reconnaissance and Enumeration 1 (2.1–2.2)

0 votes

Questions83

  1. Question 1

    Reconnaissance and Enumeration

    A scan of a Rockwell Automation PLC network shows TCP port 44818 open on a controller. Which protocol is the controller MOST likely exposing?

    Show the answer

    Correct answerA. EtherNet/IP

    AWhy this is right: EtherNet/IP uses TCP 44818 and is the protocol used by Rockwell Automation PLCs.

    BWhy not this: Modbus TCP uses TCP port 502, so port 44818 does not indicate it.

    CWhy not this: S7comm is Siemens PLC communication and uses TCP port 102.

    DWhy not this: DNP3 is used by utility RTUs and normally listens on port 20000.

    TCP port 44818 is the default for EtherNet/IP, the Common Industrial Protocol over Ethernet used by Rockwell Automation devices. Modbus TCP is the tempting alternative, but it uses TCP port 502.

    Open this question
  2. Question 2

    Reconnaissance and Enumeration

    A UDP scan of port 161 on a target reports open|filtered because no reply came back. Which command BEST determines whether an SNMP service is actually listening?

    Show the answer

    Correct answerC. nmap -sU -sV -p 161 <target>

    AWhy not this: An ACK scan is TCP-only and maps firewall rules; it cannot show whether a UDP service is listening.

    BWhy not this: A NULL scan sends TCP packets with no flags; it never touches the UDP port in question.

    CWhy this is right: UDP scanning with version detection sends SNMP-specific probes that can elicit a reply and confirm the service.

    DWhy not this: A SYN scan probes TCP port 161, but SNMP listens on UDP, so the result says nothing about it.

    SNMP on port 161 runs over UDP, so the scan must use -sU. Adding -sV sends protocol-specific probes that can draw a reply from a live service and resolve open|filtered. SYN, ACK and NULL scans only probe TCP, so they say nothing about a UDP port.

    Open this question
  3. Question 3

    Reconnaissance and Enumeration

    While scanning a building automation network, a tester finds UDP port 47808 open on several controllers. Which protocol is MOST likely in use?

    Show the answer

    Correct answerB. BACnet

    AWhy not this: DNP3 is used in utilities and normally uses port 20000, not 47808.

    BWhy this is right: BACnet is the building automation protocol that defaults to UDP port 47808.

    CWhy not this: Modbus TCP uses TCP port 502, not UDP 47808.

    DWhy not this: MQTT is an IoT messaging protocol that normally uses TCP port 1883 or 8883.

    UDP 47808 (0xBAC0) is the default port for BACnet, the building automation and control protocol. Modbus TCP is a common OT protocol, but it uses TCP port 502, not a UDP port.

    Open this question
  4. Question 4

    Reconnaissance and Enumeration

    A tester wants to scan TCP ports without completing the three-way handshake. Which Nmap option should be used?

    Show the answer

    Correct answerC. -sS

    AWhy not this: This option scans UDP ports, not TCP ports.

    BWhy not this: This option only performs host discovery and skips the port scan entirely.

    CWhy this is right: The SYN scan sends a SYN and resets after the SYN/ACK, so the handshake never completes.

    DWhy not this: The connect scan uses the operating system to complete the full three-way handshake.

    -sS is the TCP SYN (half-open) scan. It sends a SYN, then resets the connection once a SYN/ACK arrives, so the handshake is never completed. The connect scan (-sT) is the tempting alternative, but it completes the full handshake.

    Open this question
  5. Question 5

    Reconnaissance and Enumeration

    A tester on the same VLAN as the target hosts finds that an ICMP echo sweep returns almost nothing because host firewalls drop ICMP. Which step BEST discovers the live hosts?

    Show the answer

    Correct answerA. Run an ARP-based host discovery scan on the local segment

    AWhy this is right: Local hosts must respond to ARP even if their firewalls drop ICMP, so ARP discovery finds them.

    BWhy not this: This only finds hosts with port 80 open and returns service banners, so it misses many live hosts.

    CWhy not this: CT logs list certificate hostnames from public records and cannot show which internal hosts are live on a VLAN.

    DWhy not this: Traceroute maps the path to one destination and does not enumerate the other hosts on the segment.

    On the same layer 2 segment, hosts must answer ARP requests to communicate, so ARP discovery finds hosts even when ICMP is filtered. Banner grabbing only reaches hosts running a listening service on that port.

    Open this question
  6. Question 6

    Reconnaissance and Enumeration

    Which action is an example of active reconnaissance?

    Show the answer

    Correct answerD. Running a TCP SYN scan against the client's public IP range

    AWhy not this: A WHOIS lookup queries a registry, not the client's systems, so it is passive.

    BWhy not this: Public repositories are third-party sources read without touching client systems, so this is passive.

    CWhy not this: Job postings are public documents read without contacting client systems, so this is passive.

    DWhy this is right: A SYN scan sends probe packets to client hosts and reads their responses, which is direct interaction.

    Active reconnaissance involves direct interaction with the target, such as sending probe packets in a port scan. The other options collect information from public sources without touching the target's systems, which is passive.

    Open this question
  7. Question 7

    Reconnaissance and Enumeration

    A tester wants to identify the routers between the testing host and a target web server to understand the network path. Which technique should the tester use?

    Show the answer

    Correct answerA. Run a traceroute to the target's IP address

    AWhy this is right: Traceroute uses increasing TTL values to expose each router hop between the tester and the target.

    BWhy not this: CT logs list hostnames from issued certificates and say nothing about the network path.

    CWhy not this: HTML scraping extracts content such as links and comments from pages, not network hops.

    DWhy not this: A banner shows the web server's software and version, not the routers on the path.

    Traceroute uses incrementing TTL values to reveal each router hop on the way to the target, mapping the network path. Banner grabbing only reveals the service software on the destination, not the intermediate devices.

    Open this question
  8. Question 8

    Reconnaissance and Enumeration

    A rules of engagement document bars any traffic from reaching client-owned systems during the first phase. The tester must still list the client's subdomains, including hosts not linked from its website. Which technique BEST meets these constraints?

    Show the answer

    Correct answerB. Search certificate transparency logs for the client's domain

    AWhy not this: A ping sweep sends ICMP to client hosts, so it is active, and it returns live IPs rather than subdomain names.

    BWhy this is right: Public CT logs list hostnames from issued certificates and are queried without touching client systems.

    CWhy not this: A zone transfer request is sent directly to the client's DNS servers, so it is active and breaks the no-traffic rule.

    DWhy not this: Guessing subdomains makes queries that reach the client's authoritative DNS server, so it is active.

    Certificate transparency logs are public records held by third parties, so querying them is passive and sends nothing to the client, yet they list issued certificate hostnames. A zone transfer or brute-force query goes to the client's own DNS servers, so it is active.

    Open this question
  9. Question 9

    Reconnaissance and Enumeration

    A tester plans to email a malicious résumé to the client and needs a mailbox where unsolicited attachments are expected. Where should the tester look first?

    Show the answer

    Correct answerB. Job boards

    AWhy not this: Reverse DNS maps addresses to hostnames and shows no mailbox expecting unsolicited attachments.

    BWhy this is right: Open postings give recruiter contacts and application addresses that routinely receive résumés.

    CWhy not this: Code repositories may leak secrets or keys but do not list recruiting contacts.

    DWhy not this: Password dumps contain leaked credentials and do not identify a mailbox that accepts applicant files.

    Job boards list the client's open roles along with the recruiting contact or application address, a channel that expects attachments from strangers. Password dumps give leaked credentials, not an inbound channel.

    Open this question
  10. Question 10

    Reconnaissance and Enumeration

    During OSINT for a social engineering test, a tester reviews employees' public social media accounts. Which three types of information can this source reasonably yield? (Choose three.)

    Choose 3 answers

    Show the answer

    Correct answersA. Check-ins and tags showing travel and office locationsC. Photos showing badges or screens with internal toolsD. Employee names and job titles for a target list

    AWhy this is right: Location tags and check-ins reveal office sites and when staff are away, which supports pretexts.

    BWhy not this: Open ports are found by scanning the servers themselves, not by reading employees' posts.

    CWhy this is right: Posted photos often capture badges, desks or screens that reveal internal tools and layouts.

    DWhy this is right: Profiles list names, titles and employers, which feed phishing and pretext target lists.

    EWhy not this: PTR records are published in DNS and are found with reverse DNS lookups, not on social media.

    Employee social media exposes who works where, what staff photograph, and where they are or travel. PTR records are DNS data, found through reverse DNS lookups, not social media posts. Open ports come from scanning the servers.

    Open this question
  11. Question 11

    Reconnaissance and Enumeration

    A tester must infer which firewall vendor and ERP platform a client runs, without sending any traffic to it. The client has no public code repositories, and its staff keep social media private. Which source is MOST likely to reveal this?

    Show the answer

    Correct answerC. Job boards

    AWhy not this: Password dumps hold leaked credentials and do not describe the technology stack.

    BWhy not this: Reverse DNS yields hostnames for addresses and would name a vendor only by chance.

    CWhy this is right: Open positions list required skills and products, such as a firewall vendor or ERP suite, that the client uses.

    DWhy not this: Cached pages hold old copies of web content, which rarely names the internal security or ERP products.

    Job boards carry the client's open positions, whose required skills often name specific vendors and products. Reverse DNS returns hostnames for IP addresses, which only occasionally hint at a product.

    Open this question
  12. Question 12

    Reconnaissance and Enumeration

    A client's rules of engagement forbid contacting staff or sending traffic to its systems. To build a vishing pretext, the tester needs help desk staff names, who is travelling this week, and photos of badge designs. Which source BEST supplies all three?

    Show the answer

    Correct answerB. Employees' public social media profiles and posts

    AWhy not this: Cached pages preserve old site content, so they rarely show current travel plans or badge photos.

    BWhy this is right: Staff profiles and posts passively reveal roles, travel and location updates, and photos of badges.

    CWhy not this: Password dumps hold leaked credentials and emails, not travel details or badge images.

    DWhy not this: Reverse DNS maps IP addresses to hostnames and says nothing about people, travel or badges.

    Social media profiles and posts expose names, roles, travel and location updates, and photos of badges, all passively. Cached pages may show old staff names but not current travel or badge photos.

    Open this question
  13. Question 13

    Reconnaissance and Enumeration

    The rules of engagement forbid sending any packets to a production server during this phase. The tester only has a packet capture of the server's normal traffic from a SPAN port and needs its OS family. Which approach BEST meets these constraints?

    Show the answer

    Correct answerC. Passive fingerprinting with p0f on the capture

    AWhy not this: It opens connections to the services, so it is active contact with the target.

    BWhy not this: It sends probes to each open port, so it is active and also targets services, not the OS.

    CWhy this is right: It reads TTL, window size and TCP options from existing traffic, so no packets reach the target.

    DWhy not this: It sends crafted probes to the host, which the rules of engagement forbid.

    Passive fingerprinting infers the OS from header traits such as TTL, window size and TCP options in traffic already captured, so nothing is sent to the target. Nmap -O is the usual tool, but it actively probes the host and breaks the rules of engagement.

    Open this question
  14. Question 14

    Reconnaissance and Enumeration

    A tester has found ports 22 and 80 open on a host and wants to determine its operating system. Which two actions help identify it? (Choose two.)

    Choose 2 answers

    Show the answer

    Correct answersA. Running nmap -O against the hostB. Reading the initial TTL in its ICMP echo replies

    AWhy this is right: It compares TCP/IP stack responses with a fingerprint database to guess the OS.

    BWhy this is right: Default initial TTL values differ by OS family, so the reply TTL gives a clue.

    CWhy not this: It pulls DNS records from a name server, which is DNS enumeration and does not show the host's OS.

    DWhy not this: It discovers web directories and files, which is directory enumeration, not OS detection.

    Nmap -O matches the host's TCP/IP stack behaviour against known OS signatures, and the default TTL in replies (about 64 for Linux, 128 for Windows) hints at the OS family. Gobuster and zone transfers enumerate web content and DNS records, not the OS.

    Open this question
  15. Question 15

    Reconnaissance and Enumeration

    A scan labels TCP port 8080 as http-proxy purely from Nmap's port-number table. The tester suspects a different application is listening. Which Nmap option probes the port to identify the real service and version?

    Show the answer

    Correct answerD. -sV

    AWhy not this: It fingerprints the operating system, not the application bound to the port.

    BWhy not this: It performs host discovery only and skips port scanning entirely.

    CWhy not this: It scans fewer common ports faster and still labels them from the port table.

    DWhy this is right: Version detection probes the open port and identifies the real service and version.

    The -sV option sends probes to open ports and matches the responses to identify the actual service and version, instead of trusting the port number. The -O option fingerprints the OS, not the application listening on a port.

    Open this question
  16. Question 16

    Reconnaissance and Enumeration

    A SYN scan of a server shows only TCP port 22 open, but the tester suspects TFTP and SNMP are also running. Which command BEST discovers these services?

    Show the answer

    Correct answerA. nmap -sU -p 69,161 10.0.0.5

    AWhy this is right: The -sU option scans UDP ports, which is where TFTP and SNMP listen.

    BWhy not this: It guesses the OS and needs TCP ports to do so; it does not scan UDP services.

    CWhy not this: A SYN scan tests TCP only, so widening the range still misses UDP services.

    DWhy not this: It only checks whether the host is up, which is host discovery and lists no services.

    TFTP (UDP 69) and SNMP (UDP 161) run over UDP, so a UDP scan with -sU is needed to find them. A full-range SYN scan only tests TCP ports and cannot see UDP services.

    Open this question
  17. Question 17

    Reconnaissance and Enumeration

    During manual enumeration, a tester finds that a target's robots.txt lists Disallow: /staging/ and Disallow: /backup/. The tester wants to know whether those paths are actually protected from outsiders. What is the BEST conclusion?

    Show the answer

    Correct answerC. The paths are not protected, because robots.txt only asks crawlers to skip them and the tester can request them directly

    AWhy not this: Robots.txt does not make servers return 403; blocking requires server-side authentication or access control.

    BWhy not this: A sitemap is not a gate to content; paths can be requested directly whether or not they appear in one.

    CWhy this is right: Robots.txt is advisory only, so direct requests to the listed paths can still succeed unless real access controls exist.

    DWhy not this: Robots.txt is a text file read by crawlers; it is not an ACL and the server does not enforce it.

    Robots.txt is a voluntary convention for well-behaved crawlers, not an access control. The tester can browse the disallowed paths directly, and their listing often points to interesting content. A sitemap lists URLs for indexing and is not needed to reach a path.

    Open this question
  18. Question 18

    Reconnaissance and Enumeration

    A tester wants a fast, fairly complete list of the pages a target site exposes to search engines. Which file should be retrieved and parsed first?

    Show the answer

    Correct answerC. sitemap.xml, which lists the URLs the owner wants indexed

    AWhy not this: DNS zone files hold host records, not web page URLs.

    BWhy not this: Robots.txt mainly holds exclusion rules and does not list every indexable page.

    CWhy this is right: A sitemap enumerates URLs the owner wants indexed, giving a quick page inventory.

    DWhy not this: A login page links only a few pages, so it gives no complete inventory.

    Sitemap.xml is made to list URLs for search engines, so it gives a quick inventory of pages, often including ones not linked from navigation. Robots.txt mainly lists excluded paths and may only point to the sitemap location.

    Open this question
  19. Question 19

    Reconnaissance and Enumeration

    Which file at the root of a website tells crawlers which paths they should not index, and can reveal hidden directories to a tester?

    Show the answer

    Correct answerA. robots.txt

    AWhy this is right: Robots.txt holds Disallow and Allow rules for crawlers, often exposing sensitive paths.

    BWhy not this: Favicon.ico is the site icon and contains no crawler directives.

    CWhy not this: Web.config is an ASP.NET configuration file and is not served to crawlers or clients.

    DWhy not this: Sitemap.xml lists URLs the owner wants indexed rather than paths to exclude.

    Robots.txt holds Disallow rules for crawlers, so a tester reading it can discover paths the owner wanted left out of search results. Sitemap.xml does the opposite: it lists URLs to be indexed.

    Open this question
  20. Question 20

    Reconnaissance and Enumeration

    A scan of www.example.com reaches only a cloud WAF's addresses. The rules of engagement allow passive and low-noise checks, and the tester needs the server's origin address to test for a WAF bypass. Which approach is BEST?

    Show the answer

    Correct answerC. Search internet scan data for the site's certificate, then test each match with a Host header

    AWhy not this: Payloads test WAF rules, not origin discovery, and are noisy; a blocked or passed payload does not reveal the origin IP.

    BWhy not this: Scanning the WAF's addresses maps the WAF's own open ports and is noisy; it does not reveal the hidden origin.

    CWhy this is right: Matching certificates in scan data is passive, and a Host-header request confirms the candidate really serves the site.

    DWhy not this: PTR records for WAF addresses name the provider's infrastructure, not the customer's protected server.

    An origin server often presents the same TLS certificate as the public site. Finding hosts with that certificate in scan data is passive, and a Host-header request confirms which candidate serves the site. Scanning the WAF only maps the WAF's own ports, not the origin.

    Open this question
  21. Question 21

    Reconnaissance and Enumeration

    A tester finds that www.example.com resolves to a WAF provider's addresses. Which finding is MOST likely to disclose the site's origin address?

    Show the answer

    Correct answerB. A dev.example.com record that resolves to an address outside the WAF provider's range

    AWhy not this: The CNAME confirms traffic goes through the WAF provider; it points at the provider, not the origin.

    BWhy this is right: An unproxied subdomain resolving outside the WAF range often points at the real hosting network or the origin itself.

    CWhy not this: A vendor name in a header identifies the WAF product, not the address of the server behind it.

    DWhy not this: NS records show who hosts DNS for the domain, which is unrelated to where the web server sits.

    Subdomains that are not proxied through the WAF often resolve straight to the hosting network and may share a server with the main site. That makes them a lead to the origin address. The www CNAME only shows the traffic goes through the WAF.

    Open this question
  22. Question 22

    Reconnaissance and Enumeration

    A tester has read access to a client's Git repository. Developers say they deleted hardcoded passwords in later commits. Which approach BEST finds those passwords?

    Show the answer

    Correct answerD. Scan the full commit history with a secrets scanner such as TruffleHog

    AWhy not this: Nmap scripts check services for vulnerabilities and do not read repository history.

    BWhy not this: Waiting on one push captures only new data and not what is already stored in past commits.

    CWhy not this: The working tree shows only current files, so passwords removed in later commits are missed.

    DWhy this is right: Scanners such as TruffleHog inspect every past commit, where removed passwords still exist.

    Deleted secrets remain in earlier commits, so a secrets scanner that walks the entire history can recover them. Searching the working tree only covers current files, where the passwords were already removed.

    Open this question
  23. Question 23

    Reconnaissance and Enumeration

    A tester finds a long-term AWS access key pair (key ID beginning AKIA) in an exposed backup file. The rules of engagement allow validating the key but forbid changing resources or reading production data. Which approach is BEST?

    Show the answer

    Correct answerC. Run sts get-caller-identity, then review the principal's attached IAM policies

    AWhy not this: Access keys authenticate API calls, not console logins, so a key ID is not a console username.

    BWhy not this: Reads production data, which the rules of engagement forbid, and is not needed to prove the key is valid.

    CWhy this is right: Validates the key and identifies the principal read-only, then policy review scopes its permissions within the rules.

    DWhy not this: Creating a key modifies the account's IAM resources, which the rules forbid, and adds a persistence artifact.

    sts get-caller-identity confirms the key is valid and names the account and principal without needing permissions or changing anything; reviewing the attached policies then scopes its access. Downloading bucket contents breaks the ban on reading production data.

    Open this question
  24. Question 24

    Reconnaissance and Enumeration

    A tester has a shell on a developer's Linux workstation and suspects the developer uses the AWS CLI. Which file is the most likely place to find stored AWS access keys?

    Show the answer

    Correct answerB. ~/.aws/credentials

    AWhy not this: Holds local account password hashes, which belong to password enumeration, not cloud keys.

    BWhy this is right: The AWS CLI saves profile access key IDs and secret keys here in plain text.

    CWhy not this: Records authentication events on the host and does not store the AWS CLI profiles.

    DWhy not this: Records fingerprints of SSH hosts the user connected to; it stores no cloud credentials.

    The AWS CLI stores access key IDs and secret access keys in plain text in ~/.aws/credentials under named profiles. /etc/shadow holds local account password hashes, not cloud keys.

    Open this question
  25. Question 25

    Reconnaissance and Enumeration

    A tester sniffing unencrypted traffic captures the header Authorization: Basic dGVzdDpQQHNzdzByZA==. What should the tester do to obtain the password?

    Show the answer

    Correct answerB. Base64-decode the value to reveal the username and password

    AWhy not this: Rainbow tables reverse hashes, but this value is a reversible encoding, not a hash.

    BWhy this is right: Basic authentication only Base64-encodes username:password, so decoding reveals the password directly.

    CWhy not this: JWTs are three dot-separated parts used as bearer tokens; a Basic header is not one and carries no signing secret.

    DWhy not this: The value is encoded, not hashed, so cracking is unnecessary and the wrong technique.

    HTTP Basic authentication sends username:password encoded with Base64, which is reversible without cracking. A JWT has a different structure, and the value is not a hash, so cracking or rainbow tables do not apply.

    Open this question
  26. Question 26

    Reconnaissance and Enumeration

    A client's mail passes through a cloud filter. For a spoofing test, the tester needs the sources authorized to send as the client's domain, using only public queries. Which lookup is BEST?

    Show the answer

    Correct answerA. Query the domain's TXT records

    AWhy this is right: The SPF policy is stored in a TXT record and lists authorized sending sources.

    BWhy not this: Reverse DNS gives hostnames for known addresses, not the domain's sender policy.

    CWhy not this: NS records list authoritative name servers and say nothing about mail senders.

    DWhy not this: MX records name inbound mail hosts, not the sources allowed to send as the domain.

    The SPF policy is published as a TXT record and lists the IP ranges and third-party services allowed to send mail for the domain. MX records only name the hosts that receive mail, so they do not show who may send.

    Open this question
  27. Question 27

    Reconnaissance and Enumeration

    A tester finds that dev.client.com no longer loads and suspects it points to a deprovisioned cloud service. Which DNS lookup shows where the name points?

    Show the answer

    Correct answerA. A CNAME query for the subdomain

    AWhy this is right: A CNAME record shows the alias target, revealing a possibly abandoned cloud service.

    BWhy not this: NS records identify authoritative name servers, not a subdomain's target.

    CWhy not this: MX records identify mail servers, not where a web subdomain points.

    DWhy not this: PTR records map addresses to names and do not show a subdomain's target.

    A CNAME record maps a subdomain to another hostname, such as a cloud service endpoint, so querying it shows the target. A PTR query goes the other way, from an address to a name, and does not show where the subdomain points.

    Open this question
  28. Question 28

    Reconnaissance and Enumeration

    A tester finds a client's public repository in which a developer removed a cloud access key in a later commit. What should the tester do to recover the key?

    Show the answer

    Correct answerD. Scan the full commit history for secrets

    AWhy not this: Password dumps hold breached credentials, not keys committed to a repository.

    BWhy not this: Cached pages show web content, not repository commits or their history.

    CWhy not this: Current files no longer contain the deleted key, so this scan would miss it.

    DWhy this is right: Deleted secrets remain in earlier commits, so scanning all history finds the key.

    Version control keeps every earlier commit, so a secret deleted later is still in the history. A secrets scan of the full history recovers it. Scanning only current files misses it because the key is no longer there.

    Open this question
  29. Question 29

    Reconnaissance and Enumeration

    A tester scans a client's public code repositories. Which finding is MOST likely?

    Show the answer

    Correct answerC. Hard-coded API keys in source files

    AWhy not this: Breach hashes come from password dumps, not from scanning a client's code.

    BWhy not this: Travel plans and photo captions are typical of social media, not code repositories.

    CWhy this is right: Developers often embed keys and tokens in code, which repository scans look for.

    DWhy not this: PTR records live in DNS and are found with reverse DNS lookups, not repository scans.

    Developers often commit credentials, tokens and API keys into source code, so repository scanning targets these secrets. Breach hashes come from password dumps, which are a different source.

    Open this question
  30. Question 30

    Reconnaissance and Enumeration

    UDP 161 is open on a Windows server, and the tester already holds the read-only community string "public". Which command BEST lists the server's running processes?

    Show the answer

    Correct answerD. snmpwalk -v2c -c public 10.10.10.5 1.3.6.1.2.1.25.4

    AWhy not this: It brute-forces community strings, which the tester already has, and returns no process data.

    BWhy not this: Version detection only identifies the SNMP agent and version, not the host's processes.

    CWhy not this: OS fingerprinting guesses the operating system family and does not query SNMP data.

    DWhy this is right: It walks the host-resources MIB subtree that holds the running process table, using the known string.

    snmpwalk with the valid community string walks the HOST-RESOURCES MIB subtree (hrSWRun), which holds the process table. onesixtyone only guesses community strings, which the tester already has, so it returns no process data.

    Open this question
  31. Question 31

    Reconnaissance and Enumeration

    A target's zone is signed with DNSSEC using NSEC records, and every name server refuses zone transfers. The tester needs the complete list of names in the zone with few queries to avoid rate limiting. Which approach is BEST?

    Show the answer

    Correct answerA. Walk the NSEC chain with a zone-walking tool

    AWhy this is right: Each NSEC record names the next existing name, so following the chain lists the whole zone.

    BWhy not this: PTR lookups find only hosts that have reverse records, not every name in the zone.

    CWhy not this: It needs thousands of queries and finds only names the wordlist happens to contain.

    DWhy not this: These logs list only names that have certificates, so the list is not complete.

    Each NSEC record names the next existing name in the zone, so walking the chain lists every name with few queries. Wordlist brute force needs many queries and only finds names that are guessed.

    Open this question
  32. Question 32

    Reconnaissance and Enumeration

    A tester finds that ns1.example.com may be misconfigured to answer any requester. Which command BEST attempts to retrieve every record in the example.com zone from it?

    Show the answer

    Correct answerA. dig axfr example.com @ns1.example.com

    AWhy this is right: AXFR requests a full zone transfer, which returns all records if the server allows it.

    BWhy not this: It performs one reverse lookup for a single IP address, not the zone.

    CWhy not this: It guesses subdomains from a wordlist and cannot return records that are not guessed.

    DWhy not this: It returns only the mail exchanger records, not the whole zone.

    An AXFR query asks the name server for a full zone transfer, returning all records if transfers are not restricted. A wordlist-based gobuster dns run only guesses subdomain names and cannot return the full zone.

    Open this question
  33. Question 33

    Reconnaissance and Enumeration

    A tester wants to query an LDAP directory for user and group entries. Which tool BEST does this?

    Show the answer

    Correct answerB. ldapsearch

    AWhy not this: It requests a DNS zone transfer, which has nothing to do with LDAP.

    BWhy this is right: It speaks LDAP and returns directory entries such as users and groups.

    CWhy not this: It brute-forces web directories and files over HTTP, not directory service entries.

    DWhy not this: It lists SMB shares, which is share enumeration over a different protocol.

    ldapsearch speaks LDAP and retrieves directory entries such as users and groups. smbclient -L lists SMB shares, which is a different protocol and a different goal.

    Open this question
  34. Question 34

    Reconnaissance and Enumeration

    Which three items can a tester read from certificate transparency log entries for a target domain? (Choose three.)

    Choose 3 answers

    Show the answer

    Correct answersB. Hostnames listed in the certificateD. Certificate issuance and expiry datesF. Issuing certificate authority

    AWhy not this: Logs do not scan hosts, so port state needs active network reconnaissance.

    BWhy this is right: Subject and alternative names in the certificate appear in the log entry.

    CWhy not this: Private keys are secret and never appear in a public log.

    DWhy this is right: The validity period is part of the logged certificate data.

    EWhy not this: Software versions come from banner grabbing, not from certificate records.

    FWhy this is right: Each entry identifies the CA that issued the certificate.

    Log entries are public records of issued certificates, so they show names, the issuing CA and validity dates. They do not probe hosts, so ports and software versions need scanning or banner grabbing, and private keys are never published.

    Open this question
  35. Question 35

    Reconnaissance and Enumeration

    A tester searches certificate transparency logs for example.com and finds only a wildcard certificate for *.example.com. What can the tester conclude?

    Show the answer

    Correct answerA. The wildcard hides individual hostnames, so other methods are needed

    AWhy this is right: The entry names only the wildcard pattern, so it gives no list of actual subdomains.

    BWhy not this: Logs record certificate names and issuers, not the servers that hold the private key.

    CWhy not this: A wildcard certificate can be installed on many servers, so it says nothing about hosting.

    DWhy not this: A wildcard covers any subdomain name, so it does not show that none exist.

    A log entry records only the names on the certificate. A wildcard lists just *.example.com, so no individual hostnames appear and the tester needs another method such as DNS enumeration. It does not mean one host serves everything, because one certificate can be deployed on many servers.

    Open this question
  36. Question 36

    Reconnaissance and Enumeration

    A tester's script scrapes a client's web pages and finds an HTML comment: "TODO remove test login admin/Winter2023". Which finding should the report list?

    Show the answer

    Correct answerB. Information disclosure in page source

    AWhy not this: Banners come from service greetings; this data sits in the page's own markup.

    BWhy this is right: Credentials left in a served HTML comment are sensitive data exposed to any visitor.

    CWhy not this: Scraping is the tester's collection technique, not a weakness in the client's site.

    DWhy not this: Nothing shows a search engine indexed it; the tester fetched the pages directly.

    The weakness is that the client left credentials in publicly served markup, which is information disclosure. HTML scraping is only the tester's method of collecting the page content, not a flaw in the client's systems.

    Open this question
  37. Question 37

    Reconnaissance and Enumeration

    A tester sends a malformed request to a web application and receives a response showing a stack trace with file paths and the framework version. What should the tester report this as?

    Show the answer

    Correct answerB. Information disclosure from verbose error messages

    AWhy not this: Transparency logs record issued certificates and have no link to error responses.

    BWhy this is right: Detailed error output exposes internal paths and versions that help an attacker.

    CWhy not this: A banner is a service's connection greeting, not an application error page.

    DWhy not this: The data came directly from the live application, not from a search engine's cache.

    A stack trace that reveals paths and versions leaks internal details the application should hide, which is information disclosure through verbose error handling. It is not a service banner, since it comes from application error output rather than a protocol greeting.

    Open this question
  38. Question 38

    Reconnaissance and Enumeration

    A tester must passively find PDF or XLSX files that the client publishes on subdomains of example.com other than www. Which search engine query BEST meets this?

    Show the answer

    Correct answerB. site:example.com -site:www.example.com (filetype:pdf OR filetype:xlsx)

    AWhy not this: inurl matches the string anywhere in any URL and -inurl:www drops any URL containing www, so it is imprecise.

    BWhy this is right: It scopes to the domain, excludes www and accepts either file type.

    CWhy not this: AND demands both file types at once, which no single document satisfies.

    DWhy not this: It searches only the www host, which is the one host the tester must exclude.

    The site operator limits results to the client's domain, the negated site operator removes www, and OR accepts either file type. Requiring both file types with AND matches nothing, since a document has only one type.

    Open this question
  39. Question 39

    Reconnaissance and Enumeration

    A tester has confirmed a target site runs WordPress. Without authenticating or sending exploit traffic, the tester wants to identify installed plugins and their versions. Which actions fit? (Choose three.)

    Choose 3 answers

    Show the answer

    Correct answersA. Request a discovered plugin's readme.txt to read its versionC. Request /wp-content/plugins/ to check for an open directory listingE. Search page source for asset paths under /wp-content/plugins/

    AWhy this is right: A plugin's readme.txt typically includes its stable tag or changelog, which shows the version.

    BWhy not this: robots.txt lists crawler exclusions, not installed software or version numbers.

    CWhy this is right: If indexing is enabled, the plugins directory lists every installed plugin folder.

    DWhy not this: WHOIS returns registration data such as the registrar and dates, not the software running on the site.

    EWhy this is right: Scripts and stylesheets loaded from plugin folders reveal plugin names, and sometimes versions, passively.

    Plugin asset paths in page source name installed plugins, a readme.txt in a plugin folder states its version, and an open directory listing shows every plugin folder. robots.txt only lists paths crawlers should skip and never carries plugin version numbers. WHOIS holds domain registration data, not installed software.

    Open this question
  40. Question 40

    Reconnaissance and Enumeration

    A tester finds a WordPress site whose core version is fully patched. What is the BEST next enumeration step to find exploitable weaknesses?

    Show the answer

    Correct answerD. Enumerate installed plugins and their versions

    AWhy not this: The core is already known to be patched, so checking its version again yields nothing new.

    BWhy not this: robots.txt lists crawler exclusions and holds no patch or version data.

    CWhy not this: A URL count doesn't identify software or versions, so it doesn't reveal vulnerabilities.

    DWhy this is right: Plugins are updated independently of core, so outdated ones are a common weak point worth matching to known flaws.

    Plugins are third-party code patched separately from core, so an outdated plugin can be vulnerable even on a patched core. Listing plugins and versions lets the tester match them to known vulnerabilities. Rechecking the core version adds nothing new.

    Open this question
  41. Question 41

    Reconnaissance and Enumeration

    A tester's robots.txt request returns Disallow: /admin/ and the line Sitemap: https://app.example.com/maps/index-2024.xml. A request to /sitemap.xml returns 404. What should the tester do next to inventory the site's pages?

    Show the answer

    Correct answerD. Fetch the declared sitemap index and parse its child sitemaps

    AWhy not this: Guessing filenames is noisy and slow when robots.txt already states the exact sitemap URL.

    BWhy not this: A 404 at the default path only shows the file isn't there; robots.txt already declares a sitemap at another location.

    CWhy not this: Link crawling misses pages not linked from the home page, which a sitemap often lists.

    DWhy this is right: The Sitemap directive discloses the real location; the index and its child sitemaps list the site's pages.

    A Sitemap directive in robots.txt gives the sitemap's actual location, which need not be /sitemap.xml. Fetching that index and its child sitemaps lists the pages the owner wants indexed. Brute-forcing filenames is slower and unnecessary when the location is already disclosed.

    Open this question
  42. Question 42

    Reconnaissance and Enumeration

    A reverse lookup of a client's public IP address returns a generic name such as host-203-0-113-10.isp.example. What is the MOST likely reason?

    Show the answer

    Correct answerB. The block owner manages the reverse zone and has not set a custom PTR

    AWhy not this: Forward A records sit in a separate zone and do not change what the reverse lookup returns.

    BWhy this is right: The in-addr.arpa zone is delegated to the block owner, who supplies a default PTR unless asked to change it.

    CWhy not this: Nothing in the stem suggests poisoning; a default ISP name is the ordinary result of an unset PTR.

    DWhy not this: No zone transfer is involved in a single reverse query, so a failed transfer would not produce this name.

    Reverse records live under in-addr.arpa, which is delegated to the owner of the IP block, usually the ISP. Unless the ISP sets a custom PTR, a generic name comes back. The client's forward A records are a separate zone and do not affect it.

    Open this question
  43. Question 43

    Reconnaissance and Enumeration

    Which three sources can provide a copy of a web page that a client has since changed or removed? (Choose three.)

    Choose 3 answers

    Show the answer

    Correct answersA. Search engine cached resultsC. Internet Archive Wayback Machine snapshotsD. Archive.today page snapshots

    AWhy this is right: Search engines keep cached copies of indexed pages, which can show earlier content.

    BWhy not this: A reverse lookup maps an IP to a hostname and returns no page content at all.

    CWhy this is right: The Wayback Machine stores dated snapshots of pages over time, including removed ones.

    DWhy this is right: Archive.today saves point-in-time snapshots of pages that remain viewable after changes.

    EWhy not this: CT logs record issued certificates and the hostnames they cover, not the content of any page.

    Search engine caches and archive services store earlier copies of pages, so old content can be viewed after the client changes it. A reverse DNS lookup returns only a hostname for an IP address and holds no page content. Certificate Transparency logs record issued certificates, not page content.

    Open this question
  44. Question 44

    Reconnaissance and Enumeration

    A tester has only the IP addresses of a client's /28 netblock from a WHOIS record. The tester wants hostnames that hint at each system's role without touching the hosts. What should the tester do?

    Show the answer

    Correct answerB. Reverse-resolve each address

    AWhy not this: MX records name the domain's mail servers only, so most addresses in the block would stay unnamed.

    BWhy this is right: Reverse resolution queries each IP's PTR record, returning hostnames that often reveal function.

    CWhy not this: A lookup goes from name to IP and starts from a domain name, which the tester does not have for these hosts.

    DWhy not this: NS records only list the domain's authoritative name servers, not hostnames for the netblock addresses.

    A reverse lookup maps an IP address to the hostname in its PTR record, and names like vpn-gw01 hint at a role. NS, MX and A queries start from a domain name and do not map each address in the block back to a name.

    Open this question
  45. Question 45

    Reconnaissance and Enumeration

    A client removed a staff directory page from its website last week. The tester wants its contents without sending any traffic to the client. What should the tester do?

    Show the answer

    Correct answerD. Fetch the page's archived copy from a web archive

    AWhy not this: Reverse resolution returns a hostname for the address, not the content of a removed page.

    BWhy not this: Password dumps hold leaked credentials, not copies of website pages.

    CWhy not this: The page is gone from the live site, and browsing it would also send traffic to the client.

    DWhy this is right: Archived copies keep the page as it was before removal and are fetched from a third party, not the client.

    Web archives and search engine caches hold earlier copies of pages, so removed content can still be read passively. A proxy only shows what the live site serves, and it would send traffic to the client. Reverse DNS and password dumps do not return page content.

    Open this question
  46. Question 46

    Reconnaissance and Enumeration

    A tester wants to find open directory listings on the client's main site using only a search engine, without sending traffic to the client. Which query BEST does this?

    Show the answer

    Correct answerC. site:example.com intitle:"index of /"

    AWhy not this: This shows a cached copy of one page, usually the home page, and does not search for listings.

    BWhy not this: This finds robots.txt files, which list paths to hide from crawlers, not pages that are open directory listings.

    CWhy this is right: The intitle operator matches the "Index of /" title of auto-generated directory listings, and site: limits results to the client's domain.

    DWhy not this: This uses a file type value that does not exist, so it does not match directory listing pages.

    Web servers with directory listing enabled produce pages titled "Index of /", so an intitle search limited by site: surfaces them from the search index. A robots.txt query only finds files that name paths, not the exposed listings themselves.

    Open this question
  47. Question 47

    Reconnaissance and Enumeration

    A client's web server sends no Server header and no version in its responses. Which action BEST still reveals the CMS version from the site itself?

    Show the answer

    Correct answerC. Parse page HTML for a generator meta tag or asset paths

    AWhy not this: The headers are stripped, so no Netcat option can return a version the server does not send.

    BWhy not this: Traceroute shows router hops and says nothing about the CMS version.

    CWhy this is right: Page markup often exposes a generator meta tag or versioned asset paths that name the CMS release.

    DWhy not this: CT logs show certificates and hostnames and carry no CMS version data.

    Many CMSs leave a generator meta tag or versioned script and stylesheet paths in the page HTML, so scraping the markup can reveal the version when headers are stripped. Another banner grab cannot return a header the server does not send.

    Open this question
  48. Question 48

    Reconnaissance and Enumeration

    A tester connects to TCP port 21 and reads the greeting "220 vsFTPd 3.0.3". Which technique is this?

    Show the answer

    Correct answerB. Banner grabbing

    AWhy not this: Scraping extracts data from the HTML of web pages, and an FTP greeting is not HTML.

    BWhy this is right: The tester read the name and version a service reports when contacted, which is banner grabbing.

    CWhy not this: This reviews public certificate records for hostnames and involves no connection to the service.

    DWhy not this: This uses search engine queries to find indexed data and does not contact the service.

    Reading the identifying text a service sends when contacted is banner grabbing, and it reveals the software and version. HTML scraping parses web page markup instead, and the greeting here comes from an FTP service.

    Open this question
  49. Question 49

    Reconnaissance and Enumeration

    A tester's requests and BeautifulSoup script returns an almost empty body with only script tags for a client page that JavaScript builds. What should the tester do?

    Show the answer

    Correct answerB. Render the page in a headless browser, then parse it

    AWhy not this: CT logs list certificates and hostnames and give no page content.

    BWhy this is right: A headless browser runs the JavaScript, so the rendered page can be parsed for the missing content.

    CWhy not this: A banner shows server software details and does not return the rendered page content.

    DWhy not this: A version scan identifies service software and does not retrieve content the page builds with JavaScript.

    A plain HTTP fetch returns only the initial HTML, so content that JavaScript builds is missing. A headless browser such as Selenium renders the page first, and the tester can then parse the resulting DOM. A banner grab returns server software, not page content.

    Open this question
  50. Question 50

    Reconnaissance and Enumeration

    A tester opens a Netcat connection to TCP port 80 on a web server. The connection stays open but prints nothing. What should the tester do to read the server's version banner?

    Show the answer

    Correct answerC. Type an HTTP HEAD request into the open connection

    AWhy not this: HTTP runs over TCP, so a UDP connection would not reach the web service or return its banner.

    BWhy not this: CT logs record issued certificates and hostnames; they do not show the software a server runs.

    CWhy this is right: HTTP servers answer only after a request, and a HEAD request returns headers such as Server without the page body.

    DWhy not this: Traceroute maps router hops on the path and tells the tester nothing about the server software.

    Web servers do not send a greeting on connect, so the tester must send a request such as HEAD / HTTP/1.1 and read the Server header in the reply. Certificate transparency logs list certificates and hostnames, not the software version running on a port.

    Open this question