exam questions

Exam PT0-001 All Questions

View all questions & answers for the PT0-001 exam

Exam PT0-001 topic 1 question 37 discussion

Actual exam question from CompTIA's PT0-001
Question #: 37
Topic #: 1
[All PT0-001 Questions]

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?

  • A. From the remote computer, run the following commands: export XHOST 192.168.1.10:0.0 xhost+ Terminal
  • B. From the local computer, run the following command: ssh -L4444:127.0.0.1:6000 -X [email protected] xterm
  • C. From the remote computer, run the following command: ssh -R6000:127.0.0.1:4444 -p 6000 [email protected] ג€xhost+; xtermג€
  • D. 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
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
xxdxx
Highly Voted 5 years, 2 months ago
When I tried these commands, only B worked successfully
upvoted 9 times
who__cares123456789___
4 years, 2 months ago
YEP!! B 1000% sure...here is a link where the use the EXACT command from B!!! EASY MONEY!! https://explainshell.com/explain?cmd=ssh+-L4444%3A127.0.0.1%3A6000+-X+user%4010.0.0.20+xterm
upvoted 3 times
...
...
mr_robot
Highly Voted 4 years, 10 months ago
Another example for B: https://www.howtogeek.com/168145/how-to-use-ssh-tunneling/ https://explainshell.com/explain?cmd=ssh+-L4444%3A127.0.0.1%3A6000+-X+user%4010.0.0.20+xterm Commands from A seem incomplete: https://www.lifewire.com/linux-command-xhost-4093456
upvoted 6 times
...
kloug
Most Recent 2 years, 2 months ago
bbbbbbbbbbbbbbbb
upvoted 1 times
...
bromings
2 years, 6 months ago
should be A
upvoted 1 times
...
miabe
2 years, 9 months ago
Selected Answer: B
looks good to me
upvoted 1 times
...
CybeSecN
3 years, 9 months ago
I am going for B
upvoted 3 times
...
versun
3 years, 10 months ago
Answer is B
upvoted 2 times
...
Yanos_kv
3 years, 10 months ago
The answer is B
upvoted 3 times
...
lmao
4 years, 1 month ago
lol no one is mentioning that that they're in 2 different networks# answer is c
upvoted 1 times
...
EZPASS
4 years, 4 months ago
If B is the correct answer, why does it have the wrong Local IP ?
upvoted 2 times
Justcallmeb
4 years, 4 months ago
127.0.0.1 is the loopback address. It refers to the local host. https://www.hostinger.com/tutorials/what-is-localhost
upvoted 1 times
...
...
TestBanger
4 years, 5 months ago
B https://kb.iu.edu/d/adhh#:~:text=From%20an%20xterm%20terminal%2C% 20use%20the%20following%20syntax%3A,of%20the%20X%20client%20you%20want%20to%20run
upvoted 2 times
someguy1393
4 years, 4 months ago
Thanks for sharing that link. It makes it easy to understand that B is the correct answer.
upvoted 1 times
...
...
harej8
4 years, 5 months ago
B worked like a charm.
upvoted 2 times
...
khuno
4 years, 10 months ago
isn't the key here is "graphic console window". the other options are terminal only?
upvoted 3 times
khuno
4 years, 9 months ago
never mind, got confused with gui
upvoted 1 times
khuno
4 years, 9 months ago
I will go with D, just because the local IP on B is wrong
upvoted 1 times
...
...
...
D1960
4 years, 12 months ago
According to ssh man pages: -L [bind_address:]port:host:hostport : Specifies that connections to the given TCP port or Unix socket on the local (client) host are to be forwarded to the given host and port, or Unix socket, on the remote side. -X : Enables X11 forwarding
upvoted 2 times
...
mr_robot
5 years ago
Which Linux distro did you guys test the commands from B? I used the latest Kali but could not make it work. I got connection refused even though I had enabled SSH.
upvoted 1 times
...
GOKU1984
5 years, 1 month ago
B .. Is the only work that worked ...D brought up an x term window of the of the same terminal you were trying from.
upvoted 3 times
...
jon34thna
5 years, 2 months ago
I don't think A. serveral tests and I think it is B or D
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago