0
0
Cybersecurityknowledge~10 mins

Disk imaging and analysis in Cybersecurity - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to create a disk image using the dd command.

Cybersecurity
dd if=[1] of=/path/to/image.img bs=4M
Drag options to blanks, or click blank then click option'
A/dev/sda
B/home/user
C/dev/null
D/etc/passwd
Attempts:
3 left
💡 Hint
Common Mistakes
Using a directory path instead of a device file.
Using a file that is not a disk device as input.
2fill in blank
medium

Complete the command to verify the integrity of a disk image using SHA256 checksum.

Cybersecurity
sha256sum [1]
Drag options to blanks, or click blank then click option'
A/dev/sda
B/home/user
Cimage.img
D/etc/passwd
Attempts:
3 left
💡 Hint
Common Mistakes
Trying to checksum the disk device instead of the image file.
Using a directory or unrelated file as input.
3fill in blank
hard

Fix the error in the command to mount a disk image read-only.

Cybersecurity
mount -o loop,[1] image.img /mnt
Drag options to blanks, or click blank then click option'
Arw
Bro
Cexec
Dnoexec
Attempts:
3 left
💡 Hint
Common Mistakes
Using rw which allows writing.
Using unrelated mount options.
4fill in blank
hard

Fill both blanks to create a dictionary comprehension that maps file names to their sizes if size is greater than 1000 bytes.

Cybersecurity
{filename: [1] for filename, [2] in files.items() if size > 1000}
Drag options to blanks, or click blank then click option'
Asize
Cname
Dlength
Attempts:
3 left
💡 Hint
Common Mistakes
Using incorrect variable names like 'name' or 'length'.
Not matching the variable used in the condition with the unpacked value.
5fill in blank
hard

Fill all three blanks to create a dictionary comprehension that maps uppercase file names to their sizes if size is less than 5000 bytes.

Cybersecurity
{ [1]: [2] for filename, size in files.items() if [3] < 5000 }
Drag options to blanks, or click blank then click option'
Afilename.upper()
Bsize
Dfilename
Attempts:
3 left
💡 Hint
Common Mistakes
Using the original filename instead of uppercase.
Mixing up the variable names in keys, values, or condition.