nerdexam
CompTIA

PT0-002 · Question #163

A penetration tester downloaded a Java application file from a compromised web server and identifies how to invoke it by looking at the following log: Which of the following is the order of steps…

The correct answer is D. Start a packet capture with Wireshark and then run the application. To validate if a Java application uses encryption over sockets, a penetration tester should capture network traffic while the application is running. Analyzing the captured packets will reveal whether the communication is encrypted or sent in plain text.

Information Gathering and Vulnerability Scanning

Question

A penetration tester downloaded a Java application file from a compromised web server and identifies how to invoke it by looking at the following log:

Which of the following is the order of steps the penetration tester needs to follow to validate whether the Java application uses encryption over sockets?

Exhibit

PT0-002 question #163 exhibit

Options

  • ARun an application vulnerability scan and then identify the TCP ports used by the application.
  • BRun the application attached to a debugger and then review the application's log.
  • CDisassemble the binary code and then identify the break points.
  • DStart a packet capture with Wireshark and then run the application.

How the community answered

(49 responses)
  • A
    6% (3)
  • B
    4% (2)
  • C
    14% (7)
  • D
    76% (37)

Why each option

To validate if a Java application uses encryption over sockets, a penetration tester should capture network traffic while the application is running. Analyzing the captured packets will reveal whether the communication is encrypted or sent in plain text.

ARun an application vulnerability scan and then identify the TCP ports used by the application.

Running an application vulnerability scan might identify some vulnerabilities but typically doesn't directly show whether current socket communication is encrypted in real-time operation.

BRun the application attached to a debugger and then review the application's log.

Running the application attached to a debugger and reviewing logs might provide insights into the application's internal workings, but it doesn't directly show the encryption status of network traffic on the wire.

CDisassemble the binary code and then identify the break points.

Disassembling binary code and identifying breakpoints is a reverse engineering technique to understand the application's logic, which is a more time-consuming and indirect method compared to observing live network traffic for encryption validation.

DStart a packet capture with Wireshark and then run the application.Correct

Starting a packet capture with Wireshark and then running the application is the most direct way to observe network traffic generated by the application. By analyzing the captured packets, the penetration tester can identify if the communication uses encrypted protocols like TLS/SSL (e.g., HTTPS, SMTPS, LDAPS) or if data is transmitted unencrypted, allowing for a clear determination of encryption usage over sockets.

Concept tested: Network traffic analysis for encryption validation

Source: https://www.wireshark.org/docs/wsug_html_chunked/ChBuildProtocols.html

Topics

#Packet capture#Network analysis#Encryption validation#Dynamic analysis

Community Discussion

No community discussion yet for this question.

Full PT0-002 Practice