Certified Penetration Testing Consultant Exam Prep
Free practice questions

Free C)PTC Practice Questions

10 exam-style questions with answers and explanations, straight from our 1,030-question bank. Tap an answer to check yourself. When you're ready, take the scored version in the free practice test.

Start the free practice test → ★★★★★4.9/5 from 2,400+ candidates · No signup

The C)PTC exam has 100 questions and runs 2 hours.

These 10 free C)PTC questions are organized by exam domain, so you can see how each part of the Certified Penetration Testing Consultant blueprint is tested. Reveal the answer and explanation under each question.

Domain 1: Pentesting Team Foundation

Question 1

During an approved assessment of a live ordering service, monitoring shows new checkout failures immediately after a test request. The rules of engagement prohibit availability disruption and reserve service restarts for the client's operations team. The tester has not established whether the request caused the failures. What should happen first?

Show answer & explanation

Correct answer: C - Stop requests to the affected service and notify the designated emergency contact, retaining the test evidence.

Domain 2: NMAP Automation

Question 2

Two scans of the same approved host produce these observations: ACK scan, TCP 8443: RST replies. SYN scan, TCP 8443: no response after retries. The scanner's location and the target's network policy were unchanged. Select the corresponding Nmap port-state interpretation.

Show answer & explanation

Correct answer: A - ACK: unfiltered; SYN: filtered. Neither result establishes whether a listener exists.

Domain 3: Exploitation Processes

Question 3

An approved exercise sends a benign test signature that the client's detection-only IDS is configured to recognize. The IDS raises the expected alert; the request also reaches the test service, which remains healthy. The agreed plan calls for additional tests after alert verification. How should the tester treat this result?

Show answer & explanation

Correct answer: D - Record successful detection and continue the remaining tests within the approved plan.

Domain 4: Fuzzing with Spike

Question 4

A SPIKE campaign should mutate only the body of a lab service's STORE <body> request, preserving the command and its CRLF terminator. A normal request reaches the body parser, and the runner will fuzz every variable field. The script instead uses s_string_variable("STORE "), s_string("AAAA"), and s_string("\r\n"); its mutations are rejected as unknown commands. Select the field layout that targets the intended parser.

Show answer & explanation

Correct answer: A - Use s_string for the prefix and terminator, with s_string_variable for the body.

Domain 5: Privilege Escalation

Question 5

Review this Python 3 transport fragment for a blocking TCP socket: sent = sock.send(request) sock.close() The request is 1,600 bytes, but sent is 512 and the capture contains only those 512 bytes. The service never receives the request terminator. Which revision addresses the sender's truncation?

Show answer & explanation

Correct answer: C - Use sendall(request), handling any transmission error before closing the socket.

Domain 6: Stack Based Windows Buffer Overflow

Question 6

An isolated 32-bit Windows service strips an 8-byte protocol header before copying the remaining input into a vulnerable stack buffer. The first byte of the saved return address is at offset 268 from the start of that copied input. A harness mistakenly places its four-byte marker at offset 268 from the start of the complete request. All offsets are zero-based, and the header must remain present. What change corrects the marker's placement?

Show answer & explanation

Correct answer: D - Move it to request offset 276, adding the header length to the measured field offset.

Domain 7: Web Application Security and Exploitation

Question 7

In ZAP, a tester retains customer A's session cookie but replaces an invoice identifier with the identifier of customer B's invoice. The response contains B's invoice. Both test accounts are ordinary customers, and each must be able to download only their own invoices. Which repair meets that access requirement?

Show answer & explanation

Correct answer: B - Check the authenticated customer's ownership of the requested invoice on every download request.

Question 8

A search endpoint binds values in its SQL WHERE clause but concatenates the request's sort value into ORDER BY. Users need only two sorting choices: Name and Created date. The team must eliminate injection through sorting without losing those choices. Which implementation should replace the untrusted concatenation?

Show answer & explanation

Correct answer: B - Map the two accepted choices to fixed column identifiers and reject any other sort value.

Domain 9: Linux Address Space Layout Randomization

Question 9

A position-independent Linux test program has changing stack and library addresses across fresh terminal launches, but stable addresses across fresh launches through GDB. The kernel's ASLR setting is unchanged, and show disable-randomization reports on. The analyst needs newly launched debug sessions to retain the native address randomization. Which adjustment achieves that?

Show answer & explanation

Correct answer: A - Issue set disable-randomization off in GDB before launching the next inferior process.

Domain 10: Windows Exploit Protection

Question 10

A Windows crash log records ExceptionCode=0xC0000005 and ExceptionInformation[0]=8. The address in ExceptionInformation[1] lies in committed memory that is readable and writable, but not executable. The intended test bytes are intact there. Identify the protection effect that explains this record.

Show answer & explanation

Correct answer: C - Execution from a non-executable page was blocked; the test bytes had still been written there.

The rest of the C)PTC blueprint

The C)PTC exam also covers these domains. Drill them in the full free practice test:

That's 10 of 1,030

The full bank has 1,020 more C)PTC questions with explanations.

Continue in the free practice test →

View plans