The latest kali magicrescue

description:

  Scan block devices and extract known file types by looking at the magic bytes.
  Magic Rescue opens the device for reading, scans their file types (know how to recover) and calls an external program to extract them. It looks at the "magic bytes" in the contents of the file, so it can be used as an undelete utility, and it can also be used to recover damaged drives or partitions. It can work on any file system, but on a very fragmented file system, it can only restore the first block of each file. However, these blocks are sometimes up to 50MB.
  To call magicrescue, you must specify at least one device and the -d and -r options. Please refer to the "Use" section in this manual to get started.

Options:

-b blocksize
	默认值:1。这将指示magicrescue仅考虑以blocksize参数的倍数开头的文件。 该选项仅适用于其后的方法,因此通过多次指定该选项,可以将其用于不同配方的不同行为。
	使用此选项通常可以获得更好的性能,但是将发现更少的文件。 特别是,带有前导垃圾的文件(例如许多mp3文件)和其他文件中包含的文件可能会被跳过。 而且,某些文件系统不会将小文件对齐以限制边界,因此也不会以这种方式找到它们。
	如果您不知道文件系统的块大小,请使用值512,该值几乎总是硬件扇区的大小。

-d directory
	必选 找到文件的输出目录。 确保此目录中有足够的可用空间,尤其是在提取非常常见的文件类型(例如jpeg或gzip文件)时。 还要确保文件系统能够在一个目录中处理数千个文件,即,如果要提取许多文件,请不要使用FAT。
	您不应该将输出目录放在试图从其中抢救文件的同一块设备上。这可能会在当前读取位置之前将相同的文件添加到块设备中,导致magicrescue稍后再次查找相同的文件。在

Guess you like

Origin blog.csdn.net/qq_40399982/article/details/112973354