Curated

Attacks and Exploits 1 (4.1–4.3)

0 votes

Questions107

  1. Question 51

    Attacks and Exploits

    A tester extracts an NTLM hash for a local administrator from a compromised workstation's memory, but the password resists cracking. What is the BEST way to authenticate to a file server as that account?

    Show the answer

    Correct answerB. Pass-the-hash attack

    AWhy not this: This reuses a stolen Kerberos ticket; the tester holds an NTLM hash, not a ticket.

    BWhy this is right: NTLM authentication accepts the hash as proof of identity, so no cracking is needed.

    CWhy not this: Stuffing replays leaked credentials from other sites; here the tester has a hash from the target.

    DWhy not this: A mask attack is a cracking technique; it does not authenticate with a hash and cracking has already failed.

    Pass-the-hash supplies the captured NTLM hash directly during NTLM authentication, so the plaintext password is never needed. A mask attack is wrong because it only helps recover the password, which has already resisted cracking.

    Open this question
  2. Question 52

    Attacks and Exploits

    While building a low-level diagram, a tester records that an in-scope web server has a second interface on a backup VLAN missing from the scope document. What should the tester conclude?

    Show the answer

    Correct answerA. A dual-homed host that could pivot into that VLAN once scope is confirmed

    AWhy this is right: Interface detail reveals a pivot opportunity, but testing the VLAN needs confirmed scope.

    BWhy not this: Servers can have multiple interfaces; assuming an error would hide a real path between segments.

    CWhy not this: Scope covers only what the client authorized; a host's membership does not extend it to attached networks.

    DWhy not this: Backup networks often hold sensitive data; skipping it ignores the pivot and the scope question.

    Interface-level detail shows the web server is dual-homed and so a possible pivot, but the VLAN is not authorized until the client confirms it. Assuming it is in scope because the host is would exceed the authorization.

    Open this question
  3. Question 53

    Attacks and Exploits

    A tester's attack path shows three separate routes to the finance database, and all three pass through one unpatched jump host. What does this best indicate?

    Show the answer

    Correct answerD. The jump host is a chokepoint whose fix would break all three routes

    AWhy not this: Scope is set by the client's authorization, not by how often a host appears in a path.

    BWhy not this: The shared jump host is part of every route and is itself a weakness that needs remediation.

    CWhy not this: The routes share the jump host, so they are not independent and one fix covers them all.

    DWhy this is right: A node common to all routes is a chokepoint; remediating it removes every route that uses it.

    An attack path shows how hosts and techniques chain together, so a node shared by every route is a chokepoint where one fix cuts off all of them. Treating the routes as independent ignores that they share the jump host.

    Open this question
  4. Question 54

    Attacks and Exploits

    The rules of engagement permit exploitation but prohibit persistence. While reading a public exploit, a tester finds that after gaining a shell it quietly creates a scheduled task for re-entry. What is the best action?

    Show the answer

    Correct answerA. Strip the persistence routine and verify the edited code in a lab

    AWhy this is right: Removing the unwanted routine keeps the exploit within the rules; a lab test confirms it still works.

    BWhy not this: Cleanup afterward still creates persistence, which the rules of engagement prohibit.

    CWhy not this: Exploitation is permitted; the problem is one routine in the code, so skipping the host is excessive.

    DWhy not this: Disclosing it later does not make creating the persistence permitted.

    Code analysis exposed behavior that the rules of engagement forbid, so the tester should remove it and validate the modified exploit before use. Running it as written and cleaning up later still breaks the no-persistence rule while the exploit runs.

    Open this question
  5. Question 55

    Attacks and Exploits

    On an authorized internal engagement, a tester must graph Active Directory privilege relationships, intercept and modify web application requests, crack captured NTLM hashes offline on a GPU rig, and identify live hosts with their service versions. Which tools fit these tasks? (Choose four.)

    Choose 4 answers

    Show the answer

    Correct answersA. HashcatC. BloodHoundE. Burp SuiteF. Nmap

    AWhy this is right: Hashcat is a GPU-accelerated offline hash cracker, which suits captured NTLM hashes.

    BWhy not this: theHarvester collects emails and subdomains from public sources; it does not detect live internal hosts.

    CWhy this is right: BloodHound graphs AD users, groups, sessions and permissions to reveal privilege relationships.

    DWhy not this: Aircrack-ng attacks wireless keys and handshakes; none of the stated tasks involve Wi-Fi.

    EWhy this is right: Burp Suite is an intercepting proxy that lets a tester view and modify web requests.

    FWhy this is right: Nmap performs host discovery and service version detection across the internal network.

    Hashcat cracks hashes offline on GPUs, BloodHound graphs AD relationships, Nmap finds live hosts and service versions, and Burp Suite intercepts and modifies web requests. Aircrack-ng targets wireless handshakes and theHarvester gathers passive OSINT, so neither fits these internal tasks.

    Open this question
  6. Question 56

    Attacks and Exploits

    A public exploit for the target's CVE hardcodes a memory offset that belongs to a different OS build than the in-scope target's. What is the best next step?

    Show the answer

    Correct answerB. Adjust the offset to the target build and test it on a lab copy first

    AWhy not this: The flaw may still be exploitable; the exploit only needs customizing, so dropping it is premature.

    BWhy this is right: Memory offsets differ between builds; updating it and testing on a lab copy avoids harming production.

    CWhy not this: A larger payload does not fix a wrong offset and raises the risk of crashing a production system.

    DWhy not this: A CVE match does not mean the exploit's build-specific values apply; it will likely fail or crash the service.

    Reading the code shows the offset is specific to one build, so it must be adapted to the target and verified in a lab before use. Running it unchanged is wrong because a CVE match does not mean the exploit's memory layout assumptions fit this build.

    Open this question
  7. Question 57

    Attacks and Exploits

    A tester on an authorized engagement has a foothold on a Linux workstation with no Windows tools and holds valid domain user credentials. Which three tasks can Impacket's Python tools perform from that host? (Choose three.)

    Choose 3 answers

    Show the answer

    Correct answersB. Dump SAM and LSA secrets from a remote hostD. Request service tickets for accounts that have SPNsE. Relay captured NTLM authentication to an SMB or LDAP server

    AWhy not this: Poisoning name-resolution queries to capture hashes is what Responder does, not Impacket.

    BWhy this is right: Impacket's secretsdump pulls SAM and LSA secrets from a remote host given sufficient rights.

    CWhy not this: Online password guessing against SSH is Hydra's role, not an Impacket function.

    DWhy this is right: Impacket's GetUserSPNs script requests service tickets for SPN accounts over Kerberos.

    EWhy this is right: Impacket's ntlmrelayx relays captured NTLM authentication to SMB, LDAP and other targets.

    FWhy not this: Building payload executables is msfvenom's role; Impacket does not generate payloads.

    Impacket implements Windows network protocols in Python, which gives scripts for requesting SPN service tickets, NTLM relaying and remote secrets dumping. Poisoning name queries is Responder's job, not Impacket's.

    Open this question
  8. Question 58

    Attacks and Exploits

    A tester has an SSH-only shell on an in-scope Linux gateway that carries a server's cleartext FTP traffic. The tester must save only that traffic for later GUI analysis. Which approach is best?

    Show the answer

    Correct answerC. Run tcpdump with a capture filter for the server's host and port 21, write a pcap, and open it in Wireshark

    AWhy not this: A Netcat listener does not record traffic passing between a server and other hosts.

    BWhy not this: Display-filter syntax is Wireshark's; tcpdump takes BPF capture filters, so this would fail.

    CWhy this is right: A capture filter limits recording to the target traffic, and the pcap keeps full packets for Wireshark.

    DWhy not this: Printed terminal text loses packet data, and Wireshark cannot rebuild a capture from pasted text.

    tcpdump works headless, and a capture filter limits what is written to a pcap, which Wireshark then opens for GUI analysis such as following the FTP stream. Display-filter syntax belongs to Wireshark's analysis stage and is not valid as a tcpdump capture filter.

    Open this question
  9. Question 59

    Attacks and Exploits

    A tester wants to test one set of credentials against SMB on every host in a subnet. Which tool fits best?

    Show the answer

    Correct answerB. CrackMapExec

    AWhy not this: Responder poisons name queries to capture hashes; it does not test credentials against hosts.

    BWhy this is right: CME sprays credentials over SMB across many hosts and reports where they are valid.

    CWhy not this: Netcat makes raw TCP connections and does not authenticate to SMB across a subnet.

    DWhy not this: msfvenom builds payloads and does not test credentials.

    CrackMapExec (CME) tests credentials and enumerates shares, users and policies across many Windows hosts over protocols such as SMB. Responder only captures credentials from name-resolution traffic and does not test credentials against hosts.

    Open this question
  10. Question 60

    Attacks and Exploits

    During an authorized test, a tester has only Nmap on a jump host and wants to check discovered hosts for known vulnerabilities without installing another scanner. What should the tester use?

    Show the answer

    Correct answerC. NSE scripts in the vuln category

    AWhy not this: OS fingerprinting guesses the operating system and does not test for vulnerabilities.

    BWhy not this: A SYN scan finds open ports but runs no vulnerability checks.

    CWhy this is right: NSE vuln-category scripts probe services for known vulnerabilities from inside Nmap.

    DWhy not this: Version detection reports service versions but does not test whether a flaw is present.

    The Nmap Scripting Engine runs scripts, including the vuln category, that test hosts for known vulnerabilities from within Nmap. Version detection only reports service versions; the tester must still judge whether those versions are vulnerable.

    Open this question
  11. Question 61

    Attacks and Exploits

    A tester has no domain credentials but finds an account with Kerberos pre-authentication disabled. Which attack gets crackable material for that account's password?

    Show the answer

    Correct answerB. AS-REP roasting

    AWhy not this: Needs an authenticated domain user and a service account with an SPN, so it fails with no credentials.

    BWhy this is right: The KDC returns crackable AS-REP data for accounts without pre-authentication, with no credentials needed.

    CWhy not this: Forges tickets but needs the krbtgt account's hash, which the tester does not have.

    DWhy not this: Replays an existing stolen ticket; the tester has no ticket to replay.

    With pre-authentication disabled, the KDC answers an AS-REQ for that user with data encrypted under the user's key, so anyone can request it and crack it offline. Kerberoasting needs a valid domain account and an SPN, so it does not fit.

    Open this question
  12. Question 62

    Attacks and Exploits

    A tester holds offline hashes. The client's convention is the literal word "Summer" followed by two to four digits and nothing else. Which approach covers every valid candidate with the fewest guesses?

    Show the answer

    Correct answerA. Three masks, each with the prefix and a different digit count

    AWhy this is right: Fixed prefix plus digit-only positions, one mask per length, covers exactly the valid candidates.

    BWhy not this: Covers only four-digit endings and misses valid passwords with two or three digits.

    CWhy not this: Would include every valid password but wastes enormous effort on combinations the convention rules out.

    DWhy not this: Leaked lists may lack these exact strings, and without rules it cannot append digits.

    A mask can hold fixed characters and restrict each position to digits, but a mask has one length, so two, three and four digits need three masks. A single four-digit mask misses shorter passwords, and full brute force wastes guesses on impossible candidates.

    Open this question
  13. Question 63

    Attacks and Exploits

    A tester builds a wordlist from words on a client's public website and compares each word's hash with captured password hashes offline. Which attack is this?

    Show the answer

    Correct answerA. Dictionary attack

    AWhy this is right: Tests candidates from a prepared wordlist, here a custom one built from the client's own terms.

    BWhy not this: Needs a known character-position pattern, not a list of words.

    CWhy not this: Tries every possible combination of characters instead of a list of likely words.

    DWhy not this: Replays leaked username and password pairs against a live service, not offline hashes.

    Hashing entries from a prepared wordlist and comparing them with captured hashes is a dictionary attack, here with a custom list. A mask attack needs a known character pattern, and brute force tries every combination rather than a list.

    Open this question
  14. Question 64

    Attacks and Exploits

    Which remediation BEST prevents LDAP injection in a login form that builds directory queries from user input?

    Show the answer

    Correct answerB. Escaping special characters in user input

    AWhy not this: Lockout slows password guessing; injected filter input needs no repeated failures.

    BWhy this is right: Escaping filter characters keeps user input as data, so it cannot change the query.

    CWhy not this: Changes the protocol used for domain authentication; the web form's query stays injectable.

    DWhy not this: Number matching hardens push MFA against fatigue, not query manipulation.

    LDAP injection works because input is placed unescaped into a search filter. Escaping or validating special characters keeps input as data. Account lockout limits guessing but does not stop crafted filter input.

    Open this question
  15. Question 65

    Attacks and Exploits

    A tester runs a brute-force attack against a captured offline password hash, with no wordlist or known pattern. Which two factors most determine how long it takes? (Choose two.)

    Choose 2 answers

    Show the answer

    Correct answersE. Size of the character set searchedF. Length of the password

    AWhy not this: Brute force uses no wordlist, so its size does not matter.

    BWhy not this: Lockout only restricts online attempts; an offline hash is not subject to it.

    CWhy not this: Ticket lifetime is irrelevant to cracking a password hash.

    DWhy not this: MFA protects live logins and has no effect on cracking an offline hash.

    EWhy this is right: A larger set of possible characters multiplies the candidates at every position.

    FWhy this is right: Each extra character multiplies the number of candidates to try.

    The keyspace is the character set size raised to the password length, so both grow the search time sharply. Lockout and MFA only affect online guessing, and no wordlist is used.

    Open this question
  16. Question 66

    Attacks and Exploits

    A client forbids any testing that could crash services or use heavy resources on its production hosts. Which NSE script category should the tester exclude from the scan?

    Show the answer

    Correct answerC. intrusive

    AWhy not this: Version scripts extend service detection and are not defined as likely to crash services.

    BWhy not this: Discovery scripts gather information such as registry or directory data and are not defined as risky.

    CWhy this is right: Intrusive scripts risk crashing services or heavy load, so they are the ones to exclude.

    DWhy not this: Safe scripts are written not to crash services or harm the target, so they can stay.

    Intrusive scripts may crash services, use significant resources or be noisy, so they are excluded when the client forbids that risk. Safe scripts are designed not to affect the target, so they are acceptable.

    Open this question
  17. Question 67

    Attacks and Exploits

    From a Linux host, a tester holds an administrator's NT hash that could not be cracked. Which tool lets the tester use the hash to run commands on a Windows server over SMB?

    Show the answer

    Correct answerA. Impacket's wmiexec script

    AWhy this is right: Impacket remote-execution scripts authenticate with an NT hash and run commands remotely.

    BWhy not this: Responder poisons name queries to capture hashes; it does not use a hash to execute commands.

    CWhy not this: Wireshark only captures and analyzes traffic; it cannot authenticate to the server.

    DWhy not this: Hydra guesses plaintext passwords against a service; it does not replay a captured hash for command execution.

    Impacket's remote-execution scripts, such as wmiexec, can authenticate with an NT hash (pass-the-hash) and run commands on the Windows server. Hydra guesses plaintext passwords, so it cannot replay a captured hash.

    Open this question
  18. Question 68

    Attacks and Exploits

    A tester has a Meterpreter session on a dual-homed web server that is in scope. The tester wants to run msfconsole scanning modules against the whole internal 172.16.5.0/24 subnet without uploading tools to the server. What should the tester do?

    Show the answer

    Correct answerC. Add a route for the internal subnet through the session

    AWhy not this: A port forward maps a single local port to one host and port, so covering a subnet needs many forwards.

    BWhy not this: getsystem escalates privileges on the server; it does not let console modules reach the internal subnet.

    CWhy this is right: A route through the session makes msfconsole modules reach the whole subnet via the pivot host.

    DWhy not this: A handler only catches payload connections; it does not carry scanner traffic to internal hosts.

    A Metasploit route (autoroute) sends module traffic for the subnet through the Meterpreter session, so any module can reach every internal host with nothing uploaded. Port forwards cover one host and port each, so they do not scale to a whole subnet.

    Open this question
  19. Question 69

    Attacks and Exploits

    Netcat is available on a Linux server and the tester's host, and the server's firewall blocks all inbound connections but allows outbound traffic. Which setup gives the tester an interactive shell?

    Show the answer

    Correct answerA. Listener on the tester's host, with the server connecting out and sending a shell

    AWhy this is right: A reverse shell makes the server connect outbound, which the firewall permits.

    BWhy not this: Switching to UDP does not avoid the inbound block, and it gives no reliable session.

    CWhy not this: A bind shell needs an inbound connection to the server, which the firewall drops.

    DWhy not this: Scan mode only checks whether ports are open; it provides no shell.

    A reverse shell has the server initiate the connection to a Netcat listener on the tester's host, so the outbound-allowed firewall passes it. A bind shell needs an inbound connection to the server, which the firewall blocks.

    Open this question
  20. Question 70

    Attacks and Exploits

    Which control BEST reduces the risk of MFA fatigue against push-notification MFA?

    Show the answer

    Correct answerB. Number matching on the push prompt

    AWhy not this: Ticket lifetime limits Kerberos ticket reuse, not whether a user approves unsolicited push prompts.

    BWhy this is right: The user must type a number shown on the login screen, so a blind approval of an unsolicited push fails.

    CWhy not this: The attacker already has the password in this attack, so its length does not stop repeated prompts.

    DWhy not this: Salting protects stored password hashes from precomputed cracking, not push-prompt approval.

    Number matching makes the user enter a number shown on the sign-in screen, so approving an unsolicited push blindly fails. Longer passwords do not help because the attacker already holds the password and only needs the user to tap approve.

    Open this question
  21. Question 71

    Attacks and Exploits

    A tester extracts a service ticket for one file server's CIFS service from memory, with no TGT. What can the tester do with it directly?

    Show the answer

    Correct answerB. Reach only that file service as the user until it expires

    AWhy not this: Forging arbitrary tickets requires the krbtgt key, which a single service ticket does not provide.

    BWhy this is right: The ticket is scoped to that one service, so replaying it works only there and only until it expires.

    CWhy not this: A service ticket does not contain the user's NTLM hash, so nothing can be derived for pass-the-hash.

    DWhy not this: New service tickets are requested with a TGT, which the tester does not hold.

    A service ticket is issued for one service and is valid until it expires, so replaying it grants access to that service only. Requesting tickets for other servers needs a TGT, and forging tickets for any account needs the krbtgt key (a golden ticket).

    Open this question
  22. Question 72

    Attacks and Exploits

    A tester reused one local administrator NTLM hash to log on to dozens of workstations. Which control would MOST limit this reuse?

    Show the answer

    Correct answerB. A unique local administrator password on each host

    AWhy not this: Pass-the-hash presents a valid hash and makes no failed guesses, so lockout is not triggered.

    BWhy this is right: Each host gets a different hash, so a hash captured from one machine is useless on the others.

    CWhy not this: Ticket lifetime applies to Kerberos tickets, and this attack uses an NTLM hash.

    DWhy not this: Number matching counters MFA fatigue push prompts, not NTLM hash replay.

    Pass-the-hash replays the same NTLM hash wherever it is accepted. A unique, random local administrator password per host (for example LAPS) gives each machine a different hash, so one captured hash opens only one machine. Lockout does not help because no guessing occurs.

    Open this question
  23. Question 73

    Attacks and Exploits

    A tester on a compromised workstation finds a user's unexpired mail-API access token, an unexpired HR-API access token, a Kerberos TGT and an NTLM hash. Which artifact gets the tester into the cloud HR API, which accepts only bearer tokens, as that user without a new MFA prompt?

    Show the answer

    Correct answerD. The HR-API access token

    AWhy not this: An NTLM hash is for pass-the-hash against NTLM services, which a bearer-token API does not use.

    BWhy not this: It was issued for a different resource, so the HR API rejects it despite being unexpired.

    CWhy not this: A TGT is for Kerberos pass-the-ticket against on-premises services, not a token-only cloud API.

    DWhy this is right: It is an unexpired bearer token issued for this API and already carries the user's completed MFA.

    A cloud API that accepts bearer tokens trusts a valid, unexpired access token issued for that API, and the earlier MFA is already baked into it, so no new prompt occurs. The mail-API token is the tempting choice, but it was issued for a different resource and is rejected.

    Open this question
  24. Question 74

    Attacks and Exploits

    A tester obtained a client-authentication certificate for a compromised domain account through AD CS abuse. The client then resets that account's password. Why can the tester still authenticate?

    Show the answer

    Correct answerA. The certificate stays valid until it expires or is revoked, regardless of the password

    AWhy this is right: Certificate-based logon does not depend on the password, so only expiry or revocation ends it.

    BWhy not this: Certificates hold a public key and identity data, not an NT hash, so no hash is carried inside them.

    CWhy not this: Kerberos ticket renewal has a maximum lifetime, so tickets do not renew indefinitely.

    DWhy not this: Password changes replicate to domain controllers right away and need no reboot to take effect.

    A certificate is an independent credential that can be used for Kerberos certificate-based authentication until it expires or the CA revokes it, so a password reset does not invalidate it. The certificate does not contain the password hash.

    Open this question
  25. Question 75

    Attacks and Exploits

    What does a tester gain from a successful on-path attack against two communicating hosts?

    Show the answer

    Correct answerA. A position between them to read or alter their traffic

    AWhy this is right: The tester sits in the traffic path, so every exchange between the two hosts can be read or changed.

    BWhy not this: Stacked VLAN tags describe double-tagging VLAN hopping, which crosses segments rather than intercepting a conversation.

    CWhy not this: Hand-built packets with chosen flags describe packet crafting, which tests filtering rather than intercepting traffic.

    DWhy not this: Forwarding captured authentication to another server describes a relay attack, not interception between two hosts.

    An on-path attack places the tester between two endpoints so their traffic passes through the tester, who can read or modify it. Replaying captured authentication to another server is a relay attack, which is a different goal.

    Open this question
  26. Question 76

    Attacks and Exploits

    An in-scope Linux server exports an NFS share writable by any client with no_root_squash, and the tester has only a low-privileged shell on it. What is the BEST way to gain root?

    Show the answer

    Correct answerC. Mount the export from a tester host as root, plant a SUID root binary, then run it from the shell

    AWhy not this: ARP poisoning intercepts traffic but NFS does not send root's password, and it ignores the misconfigured export.

    BWhy not this: Root squashing maps root to an unprivileged user and is not enabled here, and a normal user cannot create root-owned files.

    CWhy this is right: no_root_squash preserves client root, so a SUID root file placed on the export runs as root on the server.

    DWhy not this: The tester has only a low-privileged shell and cannot read the shadow file, and cracking ignores the export flaw.

    With no_root_squash, root on the client keeps root identity on the export, so a SUID root file placed there runs as root on the server. Root squashing is the opposite setting: it would map root to an unprivileged user.

    Open this question
  27. Question 77

    Attacks and Exploits

    Roughly 200 in-scope devices from mixed vendors expose web admin panels, were installed from vendor images and never hardened. What is the BEST way to gain access while limiting lockouts?

    Show the answer

    Correct answerC. Fingerprint each vendor and model, then try its documented factory login once

    AWhy not this: Breach-dump credentials belong to other services and do not match a device's factory account.

    BWhy not this: Brute force makes many failed attempts per panel, so it is slow, noisy and likely to trigger lockouts.

    CWhy this is right: Unchanged vendor images keep the documented factory account, and one try per device rarely triggers lockout.

    DWhy not this: Spraying guesses a generic password, not the vendor's known account, so it likely fails across mixed vendors.

    Unhardened vendor images usually keep the manufacturer's documented account, so one targeted attempt per device matches the vendor and barely touches lockout counters. Password spraying and brute force guess unrelated passwords and generate far more failed logins.

    Open this question
  28. Question 78

    Attacks and Exploits

    A tester loads a file of captured NetNTLMv2 hashes into hashcat for offline cracking. What must the tester specify so hashcat parses the hashes correctly?

    Show the answer

    Correct answerC. The hash mode that matches the hash type

    AWhy not this: Threads per service is an online-guesser setting, and hashcat has no target services.

    BWhy not this: Hashes are checked offline against candidates, not validated against a domain controller.

    CWhy this is right: The hash mode selects the algorithm and input format, so hashcat can parse and test candidates.

    DWhy not this: hashcat cracks offline and never connects to the source host, so no IP is needed.

    hashcat is told the hash type with a hash mode number (-m), which sets the algorithm and expected format. Without it, it cannot parse or compute candidates correctly. It works offline, so no target host or service is involved.

    Open this question
  29. Question 79

    Attacks and Exploits

    A tester sprays one recovered NTLM hash across three in-scope hosts with CrackMapExec over SMB. Two hosts return a [+] line, and the third returns [+] with (Pwn3d!). What does this output show?

    Show the answer

    Correct answerC. The hash authenticates on all three hosts, and only the third grants local administrator access

    AWhy not this: A lockout would appear as a failure status, not as [+] with (Pwn3d!).

    BWhy not this: A [+] line means the login succeeded, so the first two hosts accepted the hash. Failures show as [-].

    CWhy this is right: [+] marks a successful login on each host, and (Pwn3d!) adds that the account holds local admin rights on the third.

    DWhy not this: CME passes the hash as is. It does not crack anything, and [+] means success, not rejection.

    In CrackMapExec, [+] means the credential authenticated, and (Pwn3d!) is added when that account has administrative rights on the host. So the hash worked on all three hosts, and only the third gives admin access. Rejected logins appear as [-], and a hash is passed, not cracked.

    Open this question
  30. Question 80

    Attacks and Exploits

    A tester has copies of /etc/passwd and /etc/shadow from an in-scope Linux server and wants to crack the local account passwords offline with John the Ripper. What should the tester do first?

    Show the answer

    Correct answerC. Merge the two files into one with the unshadow utility

    AWhy not this: Hydra guesses passwords against live services. Hash entries are not usable as password lists.

    BWhy not this: Salts are part of the hash scheme, and John uses them while cracking. Removing them breaks the hashes.

    CWhy this is right: unshadow joins account details from passwd with hashes from shadow into the single file John cracks.

    DWhy not this: ssh2john extracts hashes from SSH private keys. It does not process passwd or shadow files.

    John expects usernames and hashes in one file, and the unshadow utility combines passwd and shadow into that format. The *2john extractors, such as ssh2john, handle other formats like SSH keys. Salts are part of the hash and are not removed.

    Open this question
  31. Question 81

    Attacks and Exploits

    A user mistypes a share name, DNS fails, and the host broadcasts an LLMNR query. A tester on the same segment wants to answer it and capture the NetNTLMv2 authentication that follows. Which tool fits?

    Show the answer

    Correct answerD. Responder

    AWhy not this: It is an online password guesser like Hydra and cannot answer LLMNR queries.

    BWhy not this: It maps Active Directory attack paths from collected data. It captures no authentication traffic.

    CWhy not this: It brute-forces logins against live services. It does not answer name-resolution broadcasts.

    DWhy this is right: It poisons LLMNR and NBT-NS replies and captures the NetNTLMv2 challenge-response that the victim sends.

    Responder answers LLMNR, NBT-NS and mDNS name-resolution broadcasts with spoofed replies, so the victim sends its NetNTLMv2 challenge-response to the tester for offline cracking. Hydra and Medusa guess passwords against live services and do not poison name resolution.

    Open this question
  32. Question 82

    Attacks and Exploits

    An exploit gives a tester a Meterpreter session inside a document-viewer process on an in-scope Windows host, and the user will soon close the viewer. The client forbids writing new executables to disk. What should the tester do to keep the session alive?

    Show the answer

    Correct answerC. Migrate the session into a stable, long-running process

    AWhy not this: A msfvenom executable must be written to disk and run, which the client's rule forbids.

    BWhy not this: A second Netcat shell needs Netcat on the target and a new connection; it does not preserve the Meterpreter session.

    CWhy this is right: Meterpreter runs inside its host process, so migrating to a stable process survives the viewer closing and writes nothing to disk.

    DWhy not this: Backgrounding only returns the console prompt; the session still dies when its host process exits.

    A Meterpreter session lives inside its host process, so moving it into a long-running process keeps it alive after the viewer closes, with no new file on disk. Running an msfvenom executable would also persist, but it writes a binary to disk, which the client forbids.

    Open this question
  33. Question 83

    Attacks and Exploits

    From a Linux host, a tester holds local administrator credentials for an in-scope Windows server. The client's EDR flags new service installs, so the tester wants remote command execution that creates no service. Which Impacket tool fits best?

    Show the answer

    Correct answerA. wmiexec.py

    AWhy this is right: wmiexec.py executes commands through WMI, so no service is created on the target.

    BWhy not this: psexec.py uploads an executable and creates a service, which is exactly what the EDR flags.

    CWhy not this: ntlmrelayx.py relays captured authentication to other hosts; it does not use known admin credentials for a shell.

    DWhy not this: secretsdump.py extracts hashes and secrets; it is not a command-execution tool.

    wmiexec.py runs commands through WMI, giving a semi-interactive shell without installing a service. psexec.py uploads a service binary and creates a service, which is the activity the EDR flags.

    Open this question
  34. Question 84

    Attacks and Exploits

    A tester has found an open TCP service on an in-scope host and wants to connect by hand, type raw protocol commands, and read the replies. Which tool fits best?

    Show the answer

    Correct answerB. Netcat

    AWhy not this: An auxiliary scanner runs a preset check against targets and offers no hand-typed session.

    BWhy this is right: Netcat makes a raw TCP connection and relays typed input and the service's replies, which gives manual interaction.

    CWhy not this: An NSE banner script sends a fixed, automated probe; the tester cannot type commands during it.

    DWhy not this: tcpdump only captures packets; it does not open a connection to the service.

    Netcat opens a raw TCP connection and passes whatever the tester types, so it suits manual interaction with a service. An NSE banner script automates a fixed probe and cannot be driven interactively.

    Open this question
  35. Question 85

    Attacks and Exploits

    A tester adds Nmap's default script scan option to a scan of in-scope hosts without naming any scripts. Which scripts run?

    Show the answer

    Correct answerB. Those in the default category

    AWhy not this: Safe is a separate category; default and safe overlap but are not the same set.

    BWhy this is right: The default script scan option runs scripts tagged with the default category.

    CWhy not this: Running the whole library requires asking for all scripts; the default option does not do that.

    DWhy not this: Vuln scripts run only when that category or a named script is requested.

    The default script scan option runs scripts in the default category, which are chosen for usefulness, speed and low intrusiveness. The safe category is a different grouping, and the full library and vuln scripts run only when requested.

    Open this question
  36. Question 86

    Attacks and Exploits

    A defender reviewing an authorized test sees network logons from one workstation to many servers, all using NTLM with the same local administrator account and no password ever entered. Which attack does this MOST likely show?

    Show the answer

    Correct answerD. Pass-the-hash

    AWhy not this: Spraying tries one password against many accounts; here a single account is reused and no guesses are made.

    BWhy not this: Stuffing replays leaked username and password pairs from other sites, not a captured NTLM hash.

    CWhy not this: Pass-the-ticket replays Kerberos tickets, but these logons used NTLM authentication.

    DWhy this is right: Reusing one account's NTLM hash on many hosts without entering a password is the signature of pass-the-hash.

    Reusing one account's NTLM hash across many hosts, with no password typed, is pass-the-hash: the hash itself answers the NTLM challenge. Pass-the-ticket would appear as Kerberos tickets, not NTLM logons.

    Open this question
  37. Question 87

    Attacks and Exploits

    A tester has a user's valid password and must demonstrate MFA fatigue. Which second factor does this attack wear down?

    Show the answer

    Correct answerB. Push notification approved with one tap

    AWhy not this: The key must be physically present and touched at the login device, so remote prompts cannot be approved.

    BWhy this is right: A single Approve tap completes the login, so repeated prompts can wear the user down into accepting one.

    CWhy not this: The user must read and type a code, so repeated login attempts do not produce an approval prompt to tap.

    DWhy not this: The card and PIN must be present at the login device, so remote prompt spam does not apply.

    MFA fatigue floods a user with push prompts until one is approved. Typed codes, hardware keys and smart cards need an active step on the login device that the attacker cannot trigger on the user's behalf.

    Open this question
  38. Question 88

    Attacks and Exploits

    A tester replays a stolen access token from a different machine, and the cloud app never prompts for MFA because it was satisfied at sign-in. Which recommendation BEST addresses this finding?

    Show the answer

    Correct answerC. Bind issued tokens to the client device and shorten their lifetime

    AWhy not this: Disabling NTLM limits pass-the-hash, but cloud tokens do not use NTLM at all.

    BWhy not this: Number matching counters MFA fatigue prompts, but no prompt occurs in a token replay.

    CWhy this is right: Device binding stops the token working from another machine, and a short lifetime limits the replay window.

    DWhy not this: Stronger sign-in MFA does not matter because the replayed token was already issued after MFA completed.

    The token was issued after MFA succeeded, so replaying it skips MFA entirely. Binding tokens to the issuing device and shortening their lifetime makes a stolen token unusable elsewhere or short-lived. Stronger MFA only protects sign-in.

    Open this question
  39. Question 89

    Attacks and Exploits

    A tester captured a user's Kerberos TGT with a 10-hour lifetime. Thirty minutes later the user changes their password. What is the tester's position?

    Show the answer

    Correct answerD. The ticket still works until it expires, because it is not checked against the password

    AWhy not this: Pass-the-ticket replays the ticket itself; no hash is needed, and the old ticket remains valid.

    BWhy not this: A TGT is not limited to one service; it can request service tickets for many services until it expires.

    CWhy not this: The TGT is protected by the krbtgt key, not the user's password, so a password change does not invalidate it.

    DWhy this is right: The KDC validates the TGT by its krbtgt encryption and lifetime, so it stays usable until expiry despite the password change.

    A TGT is encrypted with the krbtgt key and trusted by the KDC until it expires, so a password change does not revoke it. The tester can keep requesting service tickets. Needing a fresh hash describes pass-the-hash, not pass-the-ticket.

    Open this question
  40. Question 90

    Attacks and Exploits

    A tester scans an in-scope Linux host and lists the findings below. Which three can be exploited directly to gain a shell or code execution? (Choose three.)

    Choose 3 answers

    Show the answer

    Correct answersB. Docker Engine API on TCP 2375 has no authenticationD. Redis on TCP 6379 allows unauthenticated remote accessE. Anonymous FTP can upload to the web server's document root

    AWhy not this: Required SMB signing is a hardening setting that blocks relay and is not exploitable.

    BWhy this is right: An open Docker API lets the tester start a privileged container that mounts the host file system.

    CWhy not this: A non-standard port is obscurity, not a vulnerability, and a port scan still finds it.

    DWhy this is right: Unauthenticated Redis lets the tester write files that lead to command execution.

    EWhy this is right: Anonymous upload to the document root lets the tester place a web shell and run it.

    FWhy not this: A version banner is only information disclosure and gives no access by itself.

    An open Redis can be told to write files such as SSH keys or scheduled jobs, an unauthenticated Docker API can start a container that mounts the host, and anonymous upload to a web root allows a web shell. A version banner, a non-standard SSH port and required SMB signing are not exploitable on their own.

    Open this question
  41. Question 91

    Attacks and Exploits

    On an authorized test, a tester relays a domain controller's NTLM authentication to the CA's HTTP web enrollment page and receives a certificate for the DC account. Which weakness BEST explains this?

    Show the answer

    Correct answerC. The enrollment endpoint accepts NTLM without Extended Protection for Authentication

    AWhy not this: An exportable CA key is a different compromise and is not needed to relay authentication to enrollment.

    BWhy not this: A requester-supplied SAN is a template flaw used with the tester's own credentials, not a relay.

    CWhy this is right: Without Extended Protection, the endpoint cannot bind NTLM authentication to the connection, so a relay succeeds.

    DWhy not this: Revocation publishing affects checking issued certificates, not obtaining one through a relay.

    AD CS web enrollment over HTTP that accepts NTLM without Extended Protection for Authentication or HTTPS enforcement can be relayed to, so the tester is issued a certificate in the relayed account's name. A requester-supplied SAN is a different template flaw and involves no relay.

    Open this question
  42. Question 92

    Attacks and Exploits

    An in-scope router answers SNMPv2c on UDP 161. The tester wants write access to its configuration. What should the tester try FIRST?

    Show the answer

    Correct answerB. The vendor's default read-write community string, such as private

    AWhy not this: SNMPv2c sends the community string in cleartext, so there is no hash to crack.

    BWhy this is right: SNMPv2c uses community strings, and the default read-write string often grants configuration access.

    CWhy not this: NTLM relay needs a Windows authentication exchange, which SNMP does not use.

    DWhy not this: SNMP has no username login, so spraying SSH accounts tests a different service and its lockout policy.

    SNMPv2c authenticates with a community string instead of a username and password, and vendors ship defaults such as public (read) and private (read-write). Trying the default read-write string is the direct test. Cracking captured hashes fails because SNMPv2c sends the string in cleartext and has no hash.

    Open this question
  43. Question 93

    Attacks and Exploits

    Which tool is commonly used to carry out an on-path attack against hosts on the same network segment?

    Show the answer

    Correct answerC. Bettercap

    AWhy not this: Hashcat cracks password hashes offline and does not intercept traffic.

    BWhy not this: Hydra guesses credentials against login services and does not sit between hosts.

    CWhy this is right: Bettercap performs ARP and DNS spoofing and sniffing, which places the tester between two hosts.

    DWhy not this: Gobuster brute-forces directories, DNS names and virtual hosts, not network paths.

    Bettercap can spoof ARP and DNS to put the tester between two hosts so their traffic can be viewed or altered. Hydra attacks logins by guessing credentials and does not intercept traffic between hosts.

    Open this question
  44. Question 94

    Attacks and Exploits

    Which tool is built to enumerate shares, users and password policy across many Windows hosts from valid domain credentials?

    Show the answer

    Correct answerC. CrackMapExec

    AWhy not this: Responder poisons name queries to capture hashes; it does not enumerate hosts with credentials.

    BWhy not this: msfvenom generates payload files; it never queries hosts for shares or users.

    CWhy this is right: It runs against whole host ranges with supplied credentials and reports shares, users and policy.

    DWhy not this: Hydra guesses logins against a service; it does not enumerate shares or policy after authentication.

    CrackMapExec takes a range of hosts plus credentials and enumerates SMB shares, users, sessions and password policy, and can run commands, in one pass. Hydra only guesses logins against a service and does no post-authentication enumeration.

    Open this question
  45. Question 95

    Attacks and Exploits

    A Windows user mistypes a server name, DNS fails, and the host falls back to LLMNR on the local segment. A tester running Responder answers the query. What does the tester capture?

    Show the answer

    Correct answerA. A NetNTLMv2 challenge-response hash to crack offline

    AWhy this is right: The host authenticates to the spoofed answer and sends a challenge-response that can be cracked.

    BWhy not this: A NetNTLMv2 response is not the NT hash and cannot be used for pass-the-hash.

    CWhy not this: NTLM authentication never sends the password in cleartext, so none is captured.

    DWhy not this: Service tickets come from Kerberos requests to a domain controller, not from poisoned name queries.

    Responder answers the fallback name query, the host tries to authenticate, and Responder records the NetNTLMv2 challenge-response, which can be cracked offline or relayed. It is not a plaintext password or a reusable NT hash.

    Open this question
  46. Question 96

    Attacks and Exploits

    An in-scope FTP server locks an account after five failed logins. The tester has 300 valid usernames and wants to test one common password against each without causing lockouts. What should the tester do?

    Show the answer

    Correct answerA. Run Hydra with the username list and a single password

    AWhy this is right: One attempt per account stays under the lockout threshold while covering all 300 users.

    BWhy not this: A large password list against every user means many failures per account and mass lockouts.

    CWhy not this: Responder poisons name resolution; it does not test passwords against the FTP service.

    DWhy not this: Thousands of guesses against one account hit the five-failure lockout almost at once.

    Hydra can take a list of usernames with one password, which is password spraying: each account sees only one failure. Using many passwords per account, against one user or all of them, quickly exceeds the lockout threshold.

    Open this question
  47. Question 97

    Attacks and Exploits

    A tester on a mirrored switch port has only a headless Linux jump host and must recover credentials from a legacy FTP service without sending any traffic to the targets. Which approach is BEST?

    Show the answer

    Correct answerC. Save a tcpdump capture to a file, then follow the FTP TCP stream in Wireshark

    AWhy not this: Hydra sends login attempts to the target, which breaks the no-traffic constraint and recovers no existing credentials.

    BWhy not this: FTP sends plain USER and PASS commands, so there are no NTLMSSP messages to find.

    CWhy this is right: Passive capture suits a mirror port, and following the stream shows FTP's cleartext login commands.

    DWhy not this: Responder answers name queries and does not capture FTP logins; poisoning also sends traffic.

    tcpdump captures passively on a host with no GUI, and Wireshark reassembles the FTP session so the cleartext USER and PASS commands can be read. Searching for NTLMSSP fails because FTP does not use NTLM authentication.

    Open this question
  48. Question 98

    Attacks and Exploits

    A tester is generating a reverse TCP Windows payload with msfvenom for an authorized test. Which two payload options tell the payload where to connect? (Choose two.)

    Choose 2 answers

    Show the answer

    Correct answersB. LHOSTC. LPORT

    AWhy not this: It names target hosts for an exploit module; the payload file is not aimed at a target.

    BWhy this is right: It sets the tester's listener address that the payload connects back to.

    CWhy this is right: It sets the port on which the tester's handler listens for the callback.

    DWhy not this: It names the target's service port for an exploit module, not the callback port.

    A reverse payload calls back to the tester's handler, so it needs the handler's address (LHOST) and port (LPORT). RHOSTS and RPORT are exploit module options that name the target, not where a payload connects back.

    Open this question
  49. Question 99

    Attacks and Exploits

    A tester opens a mirrored-port capture, taken with tcpdump, in Wireshark. It holds a Telnet login, an HTTPS portal login and an SMB2 NTLMv2 authentication. With no keys or cracking, what can the tester read directly?

    Show the answer

    Correct answerD. Telnet credentials, by following the TCP stream

    AWhy not this: The NTLMv2 response is derived from the NT hash but does not contain it, so pass-the-hash is not possible from it.

    BWhy not this: NTLMv2 is a challenge-response; the cleartext password is not in it and needs offline cracking.

    CWhy not this: HTTPS is encrypted, so a display filter cannot reveal the form fields without session keys.

    DWhy this is right: Telnet is cleartext, so reassembling the stream with Follow TCP Stream shows the typed username and password.

    Telnet sends typed characters unencrypted, so Follow TCP Stream in Wireshark reassembles the login. HTTPS is encrypted, and an NTLMv2 response is a challenge-response value that exposes neither the password nor a reusable NT hash without offline cracking.

    Open this question
  50. Question 100

    Attacks and Exploits

    An authorized test targets a stack overflow that corrupts any payload containing the bytes 0x00 and 0x0a. How should the tester configure msfvenom?

    Show the answer

    Correct answerB. Set the bad characters so the encoder avoids them

    AWhy not this: Stageless payloads bundle the whole payload; they do not remove particular byte values.

    BWhy this is right: The bad-character setting makes msfvenom encode the payload without the listed bytes.

    CWhy not this: More encoder iterations target signature detection and do not guarantee that bad bytes are absent.

    DWhy not this: The output format sets the file type or wrapper; it does not strip bytes from the shellcode.

    msfvenom accepts a list of bad characters and picks an encoder whose output avoids those bytes, so the payload survives the vulnerable code path. Staged versus stageless changes how the payload is delivered, not which byte values appear in it.

    Open this question