CompTIA PenTest+ (PT0-001) — Question 42
Which of the following commands would allow a penetration tester to access a private network from the Internet in Metasploit?
Answer options
- A. set rhost 192.168.1.10
- B. run autoroute -s 192.168.1.0/24
- C. db_nmap -iL /tmp/privatehosts.txt
- D. use auxiliary/server/socks4a
Correct answer: A
Explanation
The command 'set rhost 192.168.1.10' specifies the target host that the penetration tester is attempting to access, which is essential for establishing a connection. The other options either relate to network scanning, routing setup, or SOCKS proxy server usage, but do not directly enable access to a private network from the Internet.