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:

Scarlet
3 days 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
...
Charlena
6 days 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
9 days 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
24 days ago
I believe the correct answer is A) Home directory and shell, as the script is reading /etc/passwd file.
upvoted 0 times
...
Jina
25 days ago
I agree with Azzie, the script seems to be echoing the user's name and username.
upvoted 0 times
...
Azzie
26 days ago
I think the author was trying to gather user's name and username.
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77