exam questions

Exam CS0-002 All Questions

View all questions & answers for the CS0-002 exam

Exam CS0-002 topic 1 question 150 discussion

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

A security analyst needs to provide a copy of a hard drive for forensic analysis. Which of the following would allow the analyst to perform the task?

  • A. dcfldd if=/dev/one of=/mnt/usb/evidence.bin hash=md5, sha1 hashlog=/mnt/usb/evidence.bin.hashlog
  • B. dd if=/dev/sda of=/mnt/usb/evidence.bin bs=4096; sha5l2sum /mnt/usb/evidence.bin > /mnt/usb/evidence.bin.hash
  • C. tar -zcf /mnt/usb/evidence.tar.gz / -except /mnt; sha256sum /mnt/usb/evidence.tar.gz > /mnt/usb/evidence.tar.gz.hash
  • D. find / -type f -exec cp {} /mnt/usb/evidence/ \; sha1sum /mnt/usb/evidence/* > /mnt/usb/evidence/evidence.hash
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

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
Tag
Highly Voted 2 years, 7 months ago
Selected Answer: B
B is correct
upvoted 7 times
2Fish
2 years, 1 month ago
Agree - (A) would also work but I'm not so sure about /dev/one and the MD5. (B) also creates a sha512 hash.
upvoted 1 times
...
kyky
1 year, 10 months ago
Option B (dd command with sha5l2sum) is incorrect because sha5l2sum is not a valid command. It seems to be a typographical error, and the command should have been sha512sum.
upvoted 1 times
...
...
SAAVYTECH
Highly Voted 2 years, 7 months ago
Selected Answer: A
"dcfldd is an enhanced version of GNU dd with features useful for forensics and security. dcfldd has the following additional features Hashing on the fly- dcfldd can hash the input data as it is being transferred helping to ensure data integrity. https://www.forensics-matters.com/2020/10/20/simple-forensics-imaging-with-dd-dc3dd-dcfldd/#:~:text=dcfldd%20is%20an%20enhanced%20version,helping%20to%20ensure%20data%20integrity.
upvoted 7 times
Abyad
2 years, 6 months ago
but it uses md5 and sha1, while B uses sha512
upvoted 1 times
abrilo
2 years, 6 months ago
You may be wondering why MD5 is used for forensic imaging when most security practitioners recommend against using it. MD5 remains in use because it is fast and widely available, and the attacks against MD5 are primarily threats for reasons that don't apply to forensic images. As a practitioner, you are unlikely to encounter someone who can or would intentionally make two drives with different contents hash to the same value......from CompTIA notebook
upvoted 3 times
...
...
Tag
2 years, 7 months ago
however, the answers given, id say B is correct based on the syntax. in A, the file or block copied is "one" .. /dev/one idk what that is in B, its /dev/sda which is the block itself "sda"
upvoted 10 times
fermins
2 years, 3 months ago
this is most likely the key, one is not a valid partition...
upvoted 2 times
...
...
...
RobV
Most Recent 1 year, 5 months ago
Is sha5l2sum an error or intentional?
upvoted 1 times
RobV
1 year, 5 months ago
B is right if it's a typo. If an intentional mistake then it would return an error making A correct.
upvoted 1 times
...
...
greatsparta
1 year, 5 months ago
Selected Answer: A
This command uses dcfldd to copy the contents of the hard drive (if=/dev/one) to a file (of=/mnt/usb/evidence.bin). It also generates MD5 and SHA-1 hash values for the copied data, and the hash values are logged to /mnt/usb/evidence.bin.hashlog.
upvoted 1 times
...
Xoomalla
1 year, 9 months ago
Selected Answer: B
Syntax error in A... this is why B was chosen. /dev/one .. I don't know any device with the name "one".
upvoted 1 times
...
Aliyan
1 year, 9 months ago
Selected Answer: B
Question is "Which of the following would allow the analyst to perform the task?" NOT "Which of the following would allow BEST AND MORE DETAILED FOR the analyst to perform the task?" I would not risk it for A because also /dev/one is not default hard drive name. Also dcfldd is more advanced and not everyone can read it
upvoted 1 times
...
heinzelrumpel
1 year, 9 months ago
ther is no thing as /dev/one
upvoted 2 times
...
Sleezyglizzy
1 year, 10 months ago
B first part of command in A is wrong
upvoted 1 times
...
kyky
1 year, 10 months ago
Selected Answer: A
A. dcfldd if=/dev/one of=/mnt/usb/evidence.bin hash=md5, sha1 hashlog=/mnt/usb/evidence.bin.hashlog. Option A would allow the security analyst to perform the task of providing a copy of a hard drive for forensic analysis. The command dcfldd is a forensic version of the dd command and is commonly used for creating forensic disk images. The command dcfldd if=/dev/one specifies the input file as /dev/one, representing the hard drive. The of=/mnt/usb/evidence.bin specifies the output file as /mnt/usb/evidence.bin, which is where the copy of the hard drive will be saved.
upvoted 1 times
kyky
1 year, 10 months ago
Option B (dd command with sha5l2sum) is incorrect because sha5l2sum is not a valid command. It seems to be a typographical error, and the command should have been sha512sum.
upvoted 1 times
...
...
tutita
1 year, 11 months ago
Selected Answer: B
option B its the right one, option A has a wrong syntax its coping from dev/one and it doesn't exist such a thing dev/sda is where the partitions are located
upvoted 1 times
...
JoInn
2 years ago
Selected Answer: B
Guys, this is B. For the people who are wondering about the misspelling in sha512sum command, it's just the way the questions were transcribed.
upvoted 2 times
...
kiduuu
2 years, 1 month ago
Selected Answer: A
The dcfldd command is a forensic version of the dd command that is used for low-level copying of data. The "if" parameter specifies the input file (in this case, the hard drive to be imaged), and the "of" parameter specifies the output file (in this case, the destination of the forensic image). The "hash" parameter allows the analyst to generate a hash of the forensic image to verify its integrity, and the "hashlog" parameter specifies the location of the hash log file. Option B, dd if=/dev/sda of=/mnt/usb/evidence.bin bs=4096; sha5l2sum /mnt/usb/evidence.bin > /mnt/usb/evidence.bin.hash, is missing a digit in the command (it should be sha512sum instead of sha5l2sum) and it does not use a forensic version of the dd command like dcfldd.
upvoted 2 times
...
JoshuaXIV
2 years, 1 month ago
For the guys who answer B, have you notice the sha5l2sum on the command? it should be sha512sum right?
upvoted 1 times
...
trojan123
2 years, 4 months ago
Selected Answer: A
Option B is not suitable to provide a copy of a hard drive for forensic analysis as it does not include unused and slack space. Unused and slack space are the areas on a hard drive that do not contain data and can contain hidden data that may be important for forensic analysis. By not including these areas in the copy, valuable data may be missed, and the integrity of the evidence can be compromised.
upvoted 3 times
...
CyberNoob404
2 years, 4 months ago
Selected Answer: B
B is the only answer that makes since as it's a forensic tool.
upvoted 1 times
...
j0n45
2 years, 4 months ago
Selected Answer: B
also B is correct because the syntax in A has a "," in it, and not ";" for properly executing the sha command.
upvoted 1 times
...
lordguck
2 years, 5 months ago
B: A: is the better solution but the command line is wrong "if=/dev/one"
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