exam questions

Exam PT1-002 All Questions

View all questions & answers for the PT1-002 exam

Exam PT1-002 topic 1 question 50 discussion

Actual exam question from CompTIA's PT1-002
Question #: 50
Topic #: 1
[All PT1-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
ALBaqir
2 years, 2 months ago
Selected Answer: C
It is SUID. reference: https://pentestlab.blog/tag/find/
upvoted 1 times
...
ResStapler
2 years, 8 months ago
Answer is C: SUID ( S et owner U ser ID up on execution) is a special type of file permissions given to a file. SUID is defined as giving temporary permissions to a user to run a program/file with the permissions of the file owner rather that the user who runs it. In simple words users will get file owner's permissions as well as owner UID and GID when executing a file/program/command. https://www.linux.com/training-tutorials/what-suid-and-how-set-suid-linuxunix/
upvoted 2 times
...
cuernov
3 years ago
Selected Answer: C
looking for SUID
upvoted 1 times
...
Adonist
3 years, 1 month ago
Selected Answer: C
Definitely C
upvoted 2 times
...
Davar39
3 years, 3 months ago
Selected Answer: C
It's C, the 2>/dev/null is output redirection, it simply sends all the error messages to infinity and beyond preventing any error messages to appear in the terminal session.
upvoted 4 times
...
tokhs
3 years, 4 months ago
I would go with C too it does find but not move
upvoted 1 times
...
BinarySoldier
3 years, 5 months ago
This should be C
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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago