Courseiva

CCNA Advanced Password Attacks Questions

26 questions · Advanced Password Attacks topic · All types, answers revealed

1
MCQeasy

A penetration tester has captured a password hash from a Linux system and identifies it as a SHA-512 crypt hash. Which Hashcat mode should be used to crack this hash?

A.Mode 500 (md5crypt, MD5(Unix))
B.Mode 1800 (sha512crypt, SHA512(Unix))
C.Mode 7400 (sha256crypt, SHA256(Unix))
D.Mode 3200 (bcrypt)
AnswerB

SHA-512 crypt hashes are commonly found in /etc/shadow on Linux systems and are identified by the $6$ prefix. Hashcat mode 1800 is specifically designed to crack these hashes. Since the scenario involves a SHA-512 crypt hash, mode 1800 is the correct choice for an efficient and successful cracking attempt.

Why this answer

Linux systems often store password hashes in /etc/shadow using SHA-512 crypt, identified by the $6$ prefix. Hashcat mode 1800 is the correct mode to crack these hashes. Other modes like 500, 3200, or 7400 target different algorithms and would not successfully crack the SHA-512 crypt hash, leading to wasted effort.

Exam trap

The trap here is confusing SHA-512 crypt with other Unix crypt variants like MD5, bcrypt, or SHA-256 crypt, which have different prefixes and require different Hashcat modes.

2
Multi-Selecthard

When conducting an advanced credential harvesting assessment against an Active Directory environment, a penetration tester attempts Kerberoasting. Which TWO actions or conditions are required to successfully extract and crack service tickets using this technique? (Choose TWO)

Select 2 answers
A.Possession of a standard domain user account to request service tickets from the Key Distribution Center.
B.Direct administrative access to the primary Domain Controller file system to steal the NTDS.dit database.
C.An active session running specialized exploitation tools on the specific host running the target service.
D.Offline brute-force cracking of the captured Ticket Granting Service ticket using tools like Hashcat or John the Ripper.
E.Unconstrained Kerberos delegation configured specifically on the local workstation operating system.
AnswersA, D

Any authenticated domain user possesses the rights to request a Ticket Granting Service ticket for any valid Service Principal Name registered in Active Directory. This core protocol design feature allows standard low-privilege accounts to initiate the Kerberoasting attack chain.

Why this answer

Kerberoasting requires requesting a Ticket Granting Service ticket for any domain user account associated with a Service Principal Name, followed by offline cracking since the ticket is encrypted with the service account password hash. GPEN testers leverage this to extract credentials without touching the target server directly.

Exam trap

Many students incorrectly assume that administrative domain credentials are required to request service tickets, forgetting that any standard domain user account can request SPN tickets by design.

3
MCQeasy

A penetration tester is performing a password audit and has obtained a set of NTLM hashes from a Windows system. The tester wants to use Hashcat to crack these hashes but needs to choose the correct mode. Which Hashcat mode should be used for NTLM hashes?

A.Hashcat mode 3000
B.Hashcat mode 5500
C.Hashcat mode 5600
D.Hashcat mode 1000
AnswerD

Hashcat mode 1000 is specifically for NTLM hashes. NTLM hashes are MD4-based and are commonly found in Windows environments. Using mode 1000 allows Hashcat to correctly parse and crack these hashes. This is the standard mode for NTLM and is widely used in penetration testing when dealing with Windows password hashes extracted from SAM or NTDS.dit files.

Why this answer

NTLM hashes are MD4-based and are cracked using Hashcat mode 1000. This mode correctly interprets the hash format and applies the appropriate algorithm. Other modes target different hash types such as NetNTLMv1, NetNTLMv2, or LM, and will not work for NTLM hashes.

Therefore, mode 1000 is the only correct choice for this scenario.

Exam trap

The trap here is confusing NTLM with NetNTLMv1 or NetNTLMv2, leading to selection of the wrong Hashcat mode.

4
Multi-Selecthard

During a red team engagement, an operator successfully dumps the LSA secrets and NTDS.dit database from a Windows domain controller. Which TWO advanced password extraction and analysis techniques should the operator prioritize to uncover administrative access vectors? (Choose two)

Select 2 answers
A.Performing offline dictionary and rule-based cracking against extracted NTLM hashes using high-performance GPU clusters.
B.Injecting malicious DLL payloads into the Local Security Authority Subsystem Service to capture plaintext credentials in real-time.
C.Executing Kerberoasting against all user accounts to extract service tickets encrypted with legacy RC4 encryption keys.
D.Leveraging NTDS.dit NTLM hashes to execute Pass-the-Hash attacks for lateral movement across SMB and WinRM services.
E.Running a responder-based LLMNR/NBT-NS poisoning campaign to capture incoming network authentication challenge-response pairs.
AnswersA, D

Cracking NTLM hashes recovered from the NTDS.dit database reveals plaintext passwords utilized by employees and administrators. This is critical for identifying administrative password reuse across external cloud applications and internal boundaries protected by multi-factor authentication.

Why this answer

Extracting credentials from NTDS.dit allows the recovery of NTLM hashes and potentially cleartext passwords stored via reversible encryption. Pass-the-hash utilizes captured NTLM hashes for lateral movement without cracking, while offline dictionary cracking recovers original plaintext passwords for reuse against external portals or multi-factor authentication boundaries where hash reuse fails.

Exam trap

Candidates often focus solely on 'cracking' hashes. They fail to prioritize 'Pass-the-Hash' as an immediate, non-cracking technique that provides instant lateral movement, which is often more efficient for red teamers.

5
MCQmedium

A penetration tester has captured a NetNTLMv2 challenge-response hash from a Windows workstation over SMB. The tester plans to recover the plaintext password offline using Hashcat on a workstation with a dedicated GPU. The hash file is saved as 'capture.txt' in the format 'username::domain:challenge:response:blob'. Which Hashcat mode should the tester specify to correctly crack this hash?

A.Hashcat mode 5500
B.Hashcat mode 5600
C.Hashcat mode 1000
D.Hashcat mode 3000
AnswerB

Hashcat mode 5600 is specifically designed for NetNTLMv2 hashes. The captured format matches the expected input for this mode, allowing the GPU to efficiently compute HMAC-MD5 responses. Using this mode ensures the challenge-response mechanism is properly emulated, enabling successful recovery of the plaintext password. Other modes target different hash types and will fail to parse or crack the hash correctly.

Why this answer

The captured hash is a NetNTLMv2 challenge-response, which requires Hashcat mode 5600. This mode correctly emulates the NetNTLMv2 protocol, allowing the GPU to compute the HMAC-MD5 response for each password candidate. Other modes target different hash types such as NTLM, NetNTLMv1, or LM, and will not parse or crack the hash.

Therefore, mode 5600 is the only correct choice for this scenario.

Exam trap

The trap here is confusing NetNTLMv2 with NTLM or NetNTLMv1, leading to selection of the wrong Hashcat mode.

6
MCQmedium

During an internal penetration test, you gain access to a Windows workstation and discover that a domain user's password hash is cached in the registry. You extract the hash and want to crack it offline. Which Hashcat mode should you use to attack the cached domain credential?

A.Hashcat mode 1000 (NTLM)
B.Hashcat mode 5500 (NetNTLMv2)
C.Hashcat mode 3000 (LM)
D.Hashcat mode 2100 (Domain Cached Credentials 2, MS Cache 2)
AnswerD

MSCache v2 hashes are stored in the registry under SECURITY\Cache and are used for offline domain logon. Hashcat mode 2100 is specifically designed to crack these Domain Cached Credentials 2 hashes. Since the scenario involves a cached domain credential from a workstation, mode 2100 is the correct mode to use for offline cracking.

Why this answer

Cached domain credentials are stored as MSCache v2 hashes in the SECURITY registry hive. Hashcat mode 2100 is purpose-built to crack these hashes offline. Other modes target different hash types such as NTLM, LM, or NetNTLMv2, which are not applicable here.

Using the correct mode ensures efficient and successful cracking of the cached credential.

Exam trap

The trap here is confusing cached domain credentials with NTLM hashes stored in the SAM database, leading to the selection of an incorrect Hashcat mode.

7
MCQmedium

What is the primary risk associated with storing credentials in plain text within scripts or configuration files?

A.It increases the complexity of the password hashes.
B.It prevents the use of multi-factor authentication.
C.It allows an attacker to bypass authentication without cracking.
D.It triggers an alert in the Windows Event Logs.
AnswerC

If a script contains a cleartext password, an attacker who reads the file can immediately authenticate as the user or service account without the need for any complex cracking or relaying. This bypasses all authentication controls, providing direct access to whatever resources that account has been granted.

Why this answer

Storing cleartext credentials is a critical security failure because it provides an immediate, usable password to any attacker who gains read access to the file system. This often leads to lateral movement and privilege escalation because these scripts are frequently used by administrators to automate tasks across multiple servers. Identifying these files is a major component of any internal penetration test's post-exploitation phase.

Exam trap

Candidates often overthink the risk as 'data leakage' or 'compliance violation.' While true, the technical impact in a penetration test is the ability to bypass authentication entirely without needing to perform cracking.

8
MCQmedium

During an internal network penetration test, you capture NetNTLMv2 challenge-response hashes. You decide to perform a relay attack rather than cracking them offline. Which protocol characteristic makes SMB relaying feasible against a target host?

A.The target machine enforces mandatory SMB signing across all network shares.
B.The target machine has disabled SMB signing, allowing challenge-response reuse.
C.The user account used for authentication has a blank password stored.
D.Kerberos protocol is exclusively enforced for all domain controller communications.
AnswerB

Disabling SMB signing permits valid authentication responses captured from one victim machine to be forwarded directly to the target system. The target accepts the relayed session because it does not cryptographically verify the message origin or session keys.

Why this answer

SMB relaying succeeds when message signing is disabled on the target server, allowing an attacker to intercept authentication requests and forward them to another machine. GPEN candidates must understand that signing protects the integrity of SMB sessions. Without it, session hijacking and relaying become trivial threats within local area networks.

Exam trap

Candidates often confuse SMB signing with password hashing algorithms, assuming that stronger hashes like NTLMv2 prevent relay attacks automatically. However, hashing strength only protects against offline brute-forcing, not active network relaying.

9
MCQhard

During a penetration test, an operator captures a network authentication attempt using the NTLMv2 protocol. The operator wants to crack the captured challenge-response offline using Hashcat. Which hash mode should the operator select to correctly process the captured NetNTLMv2 hash?

A.5600
B.5500
C.13100
D.1000
AnswerA

Hashcat mode 5600 is specifically designed for NetNTLMv2 hashes. These hashes are captured from network authentication attempts and consist of the username, domain, server challenge, and the HMAC-MD5 response. Selecting this mode ensures Hashcat correctly parses the format and applies the appropriate cracking algorithm. Using any other mode would result in errors or incorrect cracking attempts.

Why this answer

NetNTLMv2 hashes require Hashcat mode 5600. This mode is optimized for the NetNTLMv2 challenge-response format, which includes the username, domain, server challenge, and HMAC-MD5 response. Using the correct mode is essential for successful offline cracking.

Other modes correspond to different hash types and will not work with NetNTLMv2 captures.

Exam trap

The trap here is confusing NetNTLMv1 and NetNTLMv2 hash modes, as both are network authentication hashes but require different Hashcat modes.

10
MCQmedium

Which attack targets service accounts by requesting a service ticket (TGS) from the domain controller and cracking the ticket offline?

A.Pass-the-Ticket
B.AS-REP Roasting
C.Kerberoasting
D.Golden Ticket Attack
AnswerC

Kerberoasting is specifically defined as the process of requesting a service ticket for a service account and cracking the resulting TGS-REP hash offline. Since the ticket is encrypted with the service account's password hash, offline cracking reveals the service account password, often leading to significant privilege escalation.

Why this answer

Kerberoasting exploits the nature of Kerberos service tickets, which are encrypted using the hash of the target service account's password. Because the ticket is encrypted with the service account's hash, an attacker who can request a ticket can attempt to brute-force or dictionary-attack that ticket offline. This is a highly stealthy method because no malicious traffic is sent to the target service itself.

Exam trap

Candidates often confuse Kerberoasting with AS-REP Roasting. They fail to realize Kerberoasting specifically targets service tickets (TGS) by requesting them from the KDC, whereas AS-REP Roasting targets account pre-authentication flags.

11
MCQmedium

Which of the following is a primary advantage of using a 'Golden Ticket' attack over other credential-based attacks?

A.It does not require administrative privileges to execute.
B.It provides persistent access even after the user changes their password.
C.It is easily detectable by standard antivirus software.
D.It is limited to a single service on the network.
AnswerB

Because the Golden Ticket is a forged TGT, it is independent of individual user accounts or passwords. Even if an administrator changes their password or resets their account, the attacker can continue to use the forged ticket to access resources until the KRBTGT password itself is reset.

Why this answer

A Golden Ticket attack involves the compromise of the KRBTGT account, which is the master account for the Kerberos service in a domain. This allows an attacker to forge TGTs that can request access to any resource. Because the attacker controls the TGT, they can grant themselves administrative privileges and bypass standard password changes, making it a highly persistent and difficult-to-detect method of maintaining domain control.

Exam trap

Candidates often assume the Golden Ticket gives access to a specific user's credentials. They fail to grasp that the ticket is forged for the KRBTGT account, granting domain-wide, persistent, and forged identity access.

12
MCQhard

During an internal penetration test, a tester gains access to a Windows domain controller and extracts the NTDS.dit file along with the SYSTEM registry hive. The tester wants to extract all domain user password hashes for offline cracking. Which tool, when used with the appropriate arguments, can parse these files to retrieve the hashes?

A.Mimikatz
B.John the Ripper
C.hashcat
D.secretsdump.py
AnswerD

secretsdump.py from Impacket can parse an offline NTDS.dit file when provided with the SYSTEM hive to decrypt the encrypted hash data. It extracts NTLM hashes, Kerberos keys, and other secrets. This tool is specifically designed for this purpose and is widely used in penetration testing to obtain domain credentials from extracted Active Directory databases. It supports both online and offline extraction, making it suitable for this scenario.

Why this answer

secretsdump.py is the correct tool because it can parse an offline NTDS.dit file when paired with the SYSTEM hive to decrypt the encrypted password hashes. It extracts NTLM hashes and other secrets, which can then be cracked offline. Mimikatz is used for live memory extraction, while hashcat and John the Ripper are cracking tools that require pre-extracted hashes.

Therefore, secretsdump.py is the only tool that directly accomplishes the extraction from the given files.

Exam trap

The trap here is assuming that Mimikatz can parse offline NTDS.dit files, when it is primarily used for live credential extraction.

13
Multi-Selectmedium

A penetration tester is conducting a password attack against a Windows Active Directory environment. The tester has obtained a list of usernames and wants to perform a password spraying attack to avoid account lockouts. Which two considerations are most important when executing this attack? (Choose two.)

Select 2 answers
A.Perform the attack during non-business hours to avoid detection.
B.Target only privileged accounts to maximize impact.
C.Use a large list of unique passwords for each account.
D.Use a small number of common passwords across many accounts.
E.Ensure the lockout threshold is not exceeded for any account.
AnswersD, E

Password spraying involves trying a few common passwords against many accounts to avoid lockout thresholds. Using a small set of passwords reduces the risk of triggering lockouts because each account is only tried a few times. This approach increases the chance of finding weak passwords without alerting security controls. It is a fundamental principle of password spraying attacks in Active Directory environments.

Why this answer

Password spraying aims to avoid lockouts by trying a few common passwords across many accounts. The two most important considerations are using a small number of common passwords and ensuring the lockout threshold is not exceeded for any account. These directly address the goal of avoiding lockouts while maximizing coverage.

The other options either describe brute-force tactics or focus on evasion rather than the fundamental spraying methodology.

Exam trap

The trap here is confusing password spraying with brute-force, leading to selection of using large unique password lists.

14
MCQmedium

During a penetration test, you obtain a memory dump from a Windows Server 2016 system. You suspect that a domain administrator recently logged on and left credentials in memory. Which tool is specifically designed to extract plaintext passwords and hashes from Windows memory dumps?

A.John the Ripper
B.Mimikatz
C.Hashcat
D.Volatility
AnswerB

Mimikatz is a post-exploitation tool that extracts plaintext passwords, hashes, PINs, and Kerberos tickets from memory. It can parse memory dumps for credentials by targeting the Local Security Authority Subsystem Service (LSASS). In this scenario, Mimikatz is the appropriate tool to retrieve the domain administrator's credentials from the memory dump.

Why this answer

Mimikatz is the tool of choice for extracting credentials from Windows memory dumps. It directly parses LSASS memory to retrieve plaintext passwords and hashes. While Volatility can analyze memory dumps, it requires additional plugins for credential extraction.

Hashcat and John the Ripper are cracking tools, not extraction tools, so they are not suitable for this scenario.

Exam trap

The trap here is confusing memory analysis frameworks like Volatility with credential extraction tools like Mimikatz, or assuming that password crackers can extract credentials from memory.

15
Multi-Selectmedium

A penetration tester is performing a password attack against an Active Directory environment and has obtained a list of domain user accounts. The tester wants to perform a password spraying attack to identify weak passwords while minimizing the risk of account lockouts. Which TWO of the following are best practices for conducting a password spraying attack in this scenario? (Choose two.)

Select 2 answers
A.Monitor the domain controller's event logs for lockout events (e.g., Event ID 4740) to detect when the lockout threshold is being approached and adjust your attack accordingly.
B.Attempt all passwords in your list against a single account before moving to the next account to quickly identify which account has a weak password.
C.Use a small set of commonly used passwords, such as 'Password123' and 'Summer2024', and try each password against all accounts with a delay between attempts.
D.Use a single password for all accounts and attempt it simultaneously across all accounts using multiple threads to maximize speed.
E.Use the domain's password policy to determine the lockout threshold and observation window, then space attempts so that no account exceeds the threshold within that window.
AnswersC, E

Password spraying involves trying a few common passwords against many accounts. Using a small set reduces the chance of hitting the lockout threshold. Adding delays between attempts helps avoid triggering lockout policies based on time windows. This approach balances effectiveness with stealth and safety, making it a best practice for spraying in Active Directory environments.

Why this answer

Effective password spraying requires using a small set of common passwords and pacing attempts to avoid lockouts. Knowing the domain's lockout policy allows the attacker to stay under the threshold. Trying many passwords per account or using high concurrency can trigger lockouts, defeating the purpose.

Monitoring lockout events is a defensive measure, not an offensive best practice.

Exam trap

The trap here is confusing password spraying with brute-forcing, leading to the mistake of trying many passwords per account or ignoring lockout policies.

16
MCQmedium

Which file in a Windows system is required, along with the NTDS.dit file, to decrypt cached credentials stored in the database?

A.SAM hive
B.SOFTWARE hive
C.SYSTEM hive
D.SECURITY hive
AnswerC

The SYSTEM hive contains the Boot Key (also known as the Syskey). This key is used to encrypt the database of Active Directory, NTDS.dit. Without this specific key, the hashes within the NTDS.dit file remain unreadable, making it impossible to perform any meaningful offline analysis of domain credentials.

Why this answer

The NTDS.dit file is the primary database for Active Directory, but it is encrypted. The encryption key, known as the boot key, is stored in the SYSTEM registry hive. Without access to the SYSTEM hive, the NTDS.dit file is useless for offline credential extraction.

This relationship underscores the need for testers to obtain both files during a post-exploitation phase to achieve successful credential recovery.

Exam trap

Candidates often suggest the SAM file is required. While the SAM file is used for local credential extraction, the SYSTEM hive is specifically required to decrypt the NTDS.dit database for domain-level credentials.

17
MCQhard

Which THREE conditions must be met for a successful AS-REP Roasting attack?

A.The account must have the 'Do not require Kerberos pre-authentication' flag set.
B.The attacker must have Domain Admin credentials.
C.The attacker must have a valid username in the domain.
D.The service account must have AES-256 encryption enabled.
E.The attacker must be able to communicate with the domain's KDC.
AnswerA, C, E

This is the core requirement for the attack. Normally, Kerberos requires pre-authentication to prevent offline cracking. If this flag is enabled, the KDC will provide the encrypted data without requiring the user to prove they know their password, allowing the attacker to capture the data for offline cracking.

Why this answer

AS-REP Roasting targets accounts configured with the 'Do not require Kerberos pre-authentication' flag. This vulnerability allows an attacker to request a TGT without providing the user's password. The KDC responds with an encrypted structure that can be cracked offline.

Understanding this process is vital for identifying misconfigured service accounts that provide a low-hanging fruit for attackers to gain credentials without triggering common alerts.

Exam trap

Candidates frequently forget that the attacker needs a valid domain username to request the AS-REP. They incorrectly assume the attack can be performed blindly against any arbitrary username in the domain.

18
MCQmedium

During an internal penetration test, you capture an NTLMv2 net-NTLM hash using LLMNR/NBT-NS poisoning. You attempt to crack the hash offline using Hashcat with a standard rockyou.txt wordlist, but the operation yields no plaintext. What is the most effective next step to recover the credentials given that the password complexity requirements were met?

A.Re-capture the hash using Kerberoasting to obtain a valid Ticket Granting Service ticket for a service principal name instead of relying on the LLMNR response.
B.Convert the net-NTLMv2 hash format directly into an MD5 hash format using a custom script so that standard rainbow tables can instantly identify the plaintext password string.
C.Apply rule-based attack modes or hybrid mask attacks in Hashcat to mutate base wordlist entries with common character substitutions, appending numbers, and special symbols.
D.Downgrade the captured authentication traffic by forcing the domain controller to negotiate LM hashing during the next SMB session establishment phase to simplify cracking.
AnswerC

NTLMv2 hashing defeats plain wordlist matching because the hash incorporates challenge-response data. Rule-based and hybrid mask modes mutate rockyou entries with substitutions, appended digits, and symbols, approximating the complexity-compliant passwords that a raw dictionary attack cannot reach.

Why this answer

NTLMv2 hashes utilize a challenge-response mechanism that cannot be reversed directly, requiring offline brute-forcing or rule-based attacks against the captured challenge and response. Because standard wordlists often fail against complex alphanumeric passwords, applying dynamic rule sets or combining masks significantly expands the search space to cover permutations users typically create to satisfy strict corporate password policies during assessments.

Exam trap

Candidates often assume that failing to crack a hash with a default wordlist means the hash is entirely uncrackable or improperly captured, leading them to abandon offline attempts prematurely instead of applying rules or combinator attacks.

19
MCQmedium

During an internal penetration test, an attacker intercepts an Active Directory Kerberos AS-REQ for a user account that does not have Kerberos pre-authentication enabled. What is the most effective post-exploitation technique for the operator to perform offline credential cracking against this captured artifact?

A.Execute a DCSync attack using volume shadow copies to extract the NTDS.dit database directly from the primary domain controller.
B.Perform a Kerberoasting attack to harvest service ticket hashes for accounts with registered Service Principal Names.
C.Conduct an AS-REP roasting attack to extract the encrypted ticket portion and crack the underlying user password offline.
D.Inject a malicious golden ticket into memory after dumping the krbtgt account credentials from the lsass process.
AnswerC

Accounts configured without Kerberos pre-authentication allow anonymous request handling where the Key Distribution Center responds with an AS-REP ticket containing data encrypted with the user's password hash. Attackers capture this response and utilize GPU acceleration to perform offline dictionary attacks successfully.

Why this answer

Disabling Kerberos pre-authentication allows an attacker to request an AS-REP for any targeted user account without knowing their password. The returned ticket contains a portion encrypted with the user's NTLM hash, which can then be attacked offline using hashcat or John the Ripper to recover the plaintext password. This attack vector bypasses standard lockout policies completely since no actual authentication attempts are made against the Domain Controller during the cracking phase.

Exam trap

Candidates often suggest performing a brute-force attack against the DC. This is incorrect because AS-REP Roasting allows the operator to perform the cracking offline, avoiding any interaction with the DC's lockout policy.

20
MCQmedium

During an internal penetration test, an operator intercepts an AS-REP response for a user account that does not have Kerberos pre-authentication enabled. What is the most efficient next step to recover the account password offline?

A.Run GetUserSPNs.py to request service ticket hashes for Kerberoasting against the domain controller.
B.Capture an NTLMv1 challenge-response handshake by forcing authentication over SMB using Responder.
C.Execute Hashcat with mode 13100 against the captured NTLM hash dumped from the local security authority subsystem service.
D.Use GetNPUsers.py to request the AS-REP ticket and crack the derived hash offline using Hashcat mode 18200.
AnswerD

With pre-authentication disabled, the domain controller returns an AS-REP encrypted with the user's password-derived key, so no valid credentials are needed. GetNPUsers.py harvests this ticket and extracts the crackable hash, which Hashcat mode 18200 attacks offline against wordlists, satisfying the efficiency constraint.

Why this answer

Disabling Kerberos pre-authentication allows any unauthenticated user to request an AS-REP for that account, containing a ticket encrypted with the user's secret key. Tools like Rubeus or GetNPUsers.py can harvest these tickets, which are formatted specifically for offline cracking using hashcat mode 18200 without requiring valid domain credentials initially.

Exam trap

Candidates often confuse AS-REP roasting with Kerberoasting, assuming a valid domain user account is required to request the ticket when AS-REP roasting explicitly targets accounts lacking pre-authentication.

21
MCQhard

During an internal penetration test, you capture a NetNTLMv2 challenge-response hash from a workstation. You attempt to crack it offline using Hashcat, but after several hours with a large wordlist and rules, the hash remains uncracked. Which factor most directly determines the feasibility of cracking this hash?

A.The length and complexity of the user's password
B.The version of the SMB protocol used during authentication
C.The network speed between the attacker and the victim
D.The amount of RAM available on the cracking machine
AnswerA

NetNTLMv2 cracking success depends on the entropy of the original password. Longer, more complex passwords exponentially increase the search space, making offline cracking infeasible. Even with large wordlists and rules, a high-entropy password will resist recovery, directly limiting the attack's success.

Why this answer

The feasibility of cracking a NetNTLMv2 hash offline is fundamentally governed by the password's entropy. NetNTLMv2 uses HMAC-MD5 with the user's NT hash and a server challenge, making it resistant to precomputation and requiring brute-force or dictionary attacks. If the password is long and complex, the search space becomes too large for practical cracking, regardless of hardware or network factors.

Exam trap

The trap here is attributing cracking difficulty to network or protocol factors, when in reality it is the password's strength that makes the hash resistant to recovery.

22
MCQhard

A penetration tester is targeting a web application that uses a custom authentication mechanism. After capturing network traffic, the tester notices that the application sends a challenge to the client and expects a response derived from the user's password. The tester wants to perform an offline brute-force attack against the captured challenge-response pairs. Which type of password attack is this?

A.Offline brute-force against challenge-response
B.Rainbow table attack
C.Credential stuffing
D.Pass-the-Hash
AnswerA

This scenario describes a challenge-response authentication protocol where the client proves knowledge of the password by responding to a challenge. Capturing these pairs allows an attacker to perform an offline brute-force attack, trying different passwords to see which one produces the correct response. This is a classic offline password attack against challenge-response mechanisms.

Why this answer

The attack involves capturing challenge-response pairs and then performing an offline brute-force to recover the password that generates the correct response. This is a form of offline password cracking against a challenge-response protocol. Other options like Pass-the-Hash, credential stuffing, or rainbow tables do not match the described scenario.

Exam trap

The trap here is assuming that any offline attack against authentication traffic is a hash-cracking attack, when challenge-response protocols require a different approach.

23
MCQmedium

In the context of password attacks, what is the primary purpose of a 'mask' in Hashcat?

A.To hide the password hash from security logs.
B.To define the structure and character sets to be tested.
C.To decrypt hashes using a known public key.
D.To automatically rotate the password in the target account.
AnswerB

A mask allows the tester to specify custom patterns, such as 'uppercase, lowercase, digit, symbol'. By defining these character sets and their positions, the tester restricts the search space to likely password structures, which dramatically increases the speed and efficiency of the cracking process compared to random guessing.

Why this answer

A mask attack is a sophisticated form of brute-forcing where the tester defines the character set and structure of the password (e.g., ?d?d?d?d for a four-digit numeric password). By limiting the search space to patterns that are likely to be used, the tester can crack passwords significantly faster than a pure brute-force approach. This is an essential skill for optimizing cracking sessions against complex password policies.

Exam trap

Candidates frequently confuse a 'mask' with a 'dictionary' attack. They assume the mask is a list of passwords rather than a structural definition of character sets and patterns used to generate guesses.

24
Multi-Selectmedium

A penetration tester is conducting an offline password attack against a set of NTLM hashes extracted from a Windows domain. The tester wants to maximize the efficiency of the cracking process by using Hashcat. Which two techniques are most effective for this goal? (Choose two.)

Select 2 answers
A.Increasing the number of threads to exceed the number of CPU cores
B.Utilizing a rule-based attack with a comprehensive rule set like best64.rule
C.Using the --username option to ignore usernames during cracking
D.Employing a mask attack with a custom character set tailored to the organization's password policy
E.Running a pure brute-force attack with all printable ASCII characters up to 12 characters
AnswersB, D

Rule-based attacks apply transformations to dictionary words, significantly expanding the candidate space without requiring a larger wordlist. Using a well-curated rule set like best64.rule can efficiently cover common password mutations, increasing the chances of cracking NTLM hashes while maintaining reasonable processing speed.

Why this answer

Rule-based attacks and mask attacks are both highly effective for offline NTLM cracking because they intelligently reduce the search space by applying common transformations or adhering to known password policies. Pure brute-force is impractical for long passwords, while options like ignoring usernames or oversubscribing threads do not enhance cracking efficiency.

Exam trap

The trap here is assuming that more computational force (pure brute-force or more threads) is always better, when in fact targeted techniques like rules and masks are far more efficient for typical password patterns.

25
MCQmedium

A penetration tester is performing an offline attack against a Windows domain. They have obtained the NTDS.dit file and the SYSTEM hive. Which tool is most effective for extracting the NTLM hashes for offline cracking?

A.Hashcat
B.Mimikatz
C.secretsdump.py
D.John the Ripper
AnswerC

Secretsdump.py is the definitive tool within the Impacket suite for performing local or remote secret extraction. By providing the NTDS.dit and SYSTEM hive files, it decrypts the database, allowing the tester to retrieve NTLM hashes for every user in the domain, which is essential for subsequent offline cracking attempts.

Why this answer

Impacket's secretsdump.py is the industry standard for parsing NTDS.dit files and SYSTEM hives to extract domain credentials. It leverages the boot key stored in the SYSTEM hive to decrypt the encrypted hashes within the NTDS.dit database. Understanding this process is critical for penetration testers because it represents the most common method of achieving domain-wide compromise after gaining the necessary domain controller files.

Exam trap

Many candidates mistakenly select Mimikatz for this specific offline task. While Mimikatz is powerful, it is primarily an in-memory tool, whereas secretsdump.py is the dedicated utility for parsing offline files.

26
MCQmedium

A penetration tester has obtained a single NT hash for a domain user account during an internal engagement. The tester wants to authenticate to a remote Windows 10 workstation as that user without knowing the plaintext password. Which tool is designed to perform this authentication using only the NT hash?

A.Responder with the -w flag
B.Hydra with the -H option
C.Nmap with the smb-enum-users script
D.Mimikatz with the sekurlsa::pth module
AnswerD

Mimikatz's sekurlsa::pth module performs Pass-the-Hash by injecting the NT hash into a new logon session, allowing authentication to remote systems without the plaintext password. It is a standard tool for this scenario in internal penetration tests.

Why this answer

Pass-the-Hash uses the NT hash itself as the credential to authenticate to remote systems. Mimikatz's sekurlsa::pth module injects the hash into a new logon session, enabling the tester to access resources as the target user without recovering the plaintext password. Other tools listed perform different functions such as poisoning, enumeration, or online brute-force, and cannot authenticate with an NT hash.

Exam trap

The trap here is confusing tools that capture hashes with tools that use hashes to authenticate; Pass-the-Hash requires injecting the hash into a logon session, not just possessing it.

Ready to test yourself?

Try a timed practice session using only Advanced Password Attacks questions.