CompTIA PenTest+ (PT0-001) — Question 12

A penetration tester wants to launch a graphic console window from a remotely compromised host with IP 10.0.0.20 and display the terminal on the local computer with IP 192.168.1.10. Which of the following would accomplish this task?

Answer options

Correct answer: A

Explanation

The correct answer is A because it correctly sets the DISPLAY environment variable to the local machine's IP and allows the remote host to connect. Options B and C do not properly configure the X11 forwarding, and option D uses netcat which is not suitable for displaying a graphical interface directly.