exam questions

Exam PT0-002 All Questions

View all questions & answers for the PT0-002 exam

Exam PT0-002 topic 1 question 227 discussion

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

After running the enum4linux.pl command, a penetration tester received the following output:



Which of the following commands should the penetration tester run NEXT?

  • A. smbspool //192.160.100.56/print$
  • B. net rpc share -S 192.168.100.56 -U ''
  • C. smbget //192.168.100.56/web -U ''
  • D. smbclient //192.168.100.56/web -U '' -N
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

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
kenechi
Highly Voted 2 years, 2 months ago
Selected Answer: C
smbget command starts with a front slash and not a back slash smbget smb://ip address/sharename D - smbclient command starts with a backslash smbclient -L \\ip address\sharename
upvoted 8 times
matheusfmartins
1 year, 9 months ago
"smbclient -L \\ip address\" is used to list the shares, if you want to connect to it you shoud use "smbclient //ip_address/share"
upvoted 3 times
...
ppsilva
2 years, 2 months ago
Right on the target !!!! You're 100% right.
upvoted 1 times
...
duckduckgooo
1 year, 5 months ago
You are right, but one more thing, the web -U for username and -N (means no password) its says at the top it can only do username/password. So no password would not work.
upvoted 1 times
...
[Removed]
2 years, 2 months ago
Which answer is correct C or D?
upvoted 2 times
...
...
435189c
Most Recent 8 months, 1 week ago
Recently did a different pentest exam, and one of the commands I ran was basically D, however I usually put -N after SMB client "smbclient -N //x.x.x.x/<share_name>", can remove -N and use -U to provide a credential to access the share.
upvoted 2 times
...
CCSXorabove
10 months, 1 week ago
Selected Answer: D
I think is D, because with smbget you need to specify the file to download and with smbclient you will be able to connect and list the files.
upvoted 3 times
...
Myfeedins479
1 year, 1 month ago
Selected Answer: D
I'm going with D because the server allows login with blank username and "password". smbclient will open an interactive SMB client session. smbget will allow files to be downloaded, but not as useful. net rpc share will list shares on the server.
upvoted 1 times
...
matheusfmartins
1 year, 9 months ago
Selected Answer: D
D. The attacker already know that he can login with null credentials and know the "web" share. So he should attempt no connect using the command "smbclient //192.168.100.56/web -U '' -N"
upvoted 4 times
...
Lolazo
2 years, 1 month ago
Selected Answer: D
The correct answer is option D, if you try option C without the "-r" parameter you will received the following error "NT_STATUS_OBJECT_NAME_NOT_FOUND opening remote file"
upvoted 3 times
...
KingIT_ENG
2 years, 2 months ago
D is the answer right
upvoted 3 times
...
[Removed]
2 years, 2 months ago
D is the answer A vulnerability scan is a type of assessment that helps to identify vulnerabilities in a network or system. Itscans systems for potential vulnerabilities, misconfigurations, and outdated software. Based on the output from a vulnerability scan, a penetration tester can identify vulnerabilities that may be exploited to gain access to a system. In this scenario, the output from the penetration testing tool shows that 100 hosts contained findings due to improper patch management. This indicates that the vulnerability scan detected vulnerabilities that could have been prevented through proper patch management. Therefore, the most likely test performed by the penetration tester is a vulnerability scan.
upvoted 3 times
...
[Removed]
2 years, 2 months ago
I dont know C or D? is correct answer
upvoted 1 times
...
nickwen007
2 years, 2 months ago
smbclient //192.168.100.56/web -U '' -N The smbclient //192.168.100.56/web -U '' -N command is used to access an SMB network share, such as a webserver. The -U option specifies the username which will be used to authenticate with the server, and in this example, it is set to a blank string. The -N option bypasses any authentication prompts so that the command will execute without prompting for authentication credentials. This command can be used by a penetration tester to collect data from a target system, such as webpages, documents, or scripts. smbget //192.168.100.56/web -U The smbget //192.168.100.56/web -U option specifies the username which will be used to authenticate with the server. This command can be used by a penetration tester to collect data from a target system, such as webpages, documents, or scripts. To execute this command, you must provide a valid username in place of the -U option. If this is not done, the command will not execute and an error will be returned.
upvoted 4 times
[Removed]
2 years, 2 months ago
I think C is correct
upvoted 1 times
...
...
cy_analyst
2 years, 2 months ago
Selected Answer: C
This command would allow the penetration tester to retrieve files from the 'web' share, which was successfully mapped and listed during the previous step. smbget is a utility that can be used to download files from SMB/CIFS servers, and it can be used to retrieve files from a remote share. Option A attempts to print to the 'print$' share, which was denied. Option B would simply list the available shares on the target host, which the penetration tester has already done. Option D would allow the penetration tester to interact with the 'web' share as if it were a remote filesystem, but it is not necessary to do so at this point, as the goal is simply to gather more information about the share.
upvoted 3 times
cy_analyst
2 years, 2 months ago
There are two shares available: "print$" and "web". The "print$" share seems to require authentication, while the "web" share is accessible without credentials. Therefore, the penetration tester should run the command that accesses the "web" share without authentication.
upvoted 2 times
[Removed]
2 years, 2 months ago
C is the answer right ?
upvoted 1 times
...
cy_analyst
2 years, 2 months ago
The "-U ''" option specifies an empty username and password to access the share without authentication.
upvoted 2 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 ...