Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Logical Operations Exam CFR-210 Topic 4 Question 36 Discussion

Actual exam question for Logical Operations's CFR-210 exam
Question #: 36
Topic #: 4
[All CFR-210 Questions]

A file is discovered in the /etc directory of an internal server by an automated file integrity checker. A security analyst determines the file is a bash script. The contents are as follows:

---

#/bin/bash

IFS=:

[[-f/etc/passwd]] && cat/etc/passwd |

while read a b c d e f g

do

echo ''$e ($a)''

done

---

Which of the following was the author of the script attempting to gather?

Show Suggested Answer Hide Answer
Suggested Answer: D

Contribute your Thoughts:

Rene
18 days ago
Yo dawg, I heard you like usernames, so this script puts usernames in your usernames so you can see usernames while you see usernames. The answer is C) User's name and username, fo sho.
upvoted 0 times
...
Brande
21 days ago
This is a classic Linux privilege escalation attempt. The author is trying to gather the UID and GID, so the answer is D) UID and GID.
upvoted 0 times
Rosalind
2 days ago
A: That script looks suspicious. What do you think the author was trying to gather?
upvoted 0 times
...
...
Scarlet
1 months ago
Haha, this script is like a blast from the past! Trying to read the /etc/passwd file, how retro. The answer is definitely B) Username and password hash.
upvoted 0 times
Gilma
22 days ago
User1: Haha, this script is so old school!
upvoted 0 times
...
...
Charlena
1 months ago
Hmm, the script is just printing the username (field 5) from the /etc/passwd file. So the correct answer must be C) User's name and username.
upvoted 0 times
...
Lourdes
1 months ago
This script is clearly trying to extract user information from the /etc/passwd file. The answer has to be B) Username and password hash.
upvoted 0 times
...
Hubert
2 months ago
I believe the correct answer is A) Home directory and shell, as the script is reading /etc/passwd file.
upvoted 0 times
...
Jina
2 months ago
I agree with Azzie, the script seems to be echoing the user's name and username.
upvoted 0 times
...
Azzie
2 months ago
I think the author was trying to gather user's name and username.
upvoted 0 times
...

Save Cancel