exam questions

Exam PT0-002 All Questions

View all questions & answers for the PT0-002 exam

Exam PT0-002 topic 1 question 307 discussion

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

A penetration tester runs the following command on a system:

find / –user root –perm -4000 –print 2>/dev/null

Which of the following is the tester trying to accomplish?

  • A. Set the SGID on all files in the /directory.
  • B. Find the /root directory on the system.
  • C. Find files with the SUID bit set.
  • D. Find files that were created during exploitation and move them to /dev/null.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

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
041ba31
8 months ago
Selected Answer: C
This command searches for files owned by the root user with the SUID (Set User ID) bit set, which can run with the file owner's permissions (in this case, root). It's a common technique for identifying potential privilege escalation vectors
upvoted 4 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