____ _____ __
_ _ ___| | __| |
| | | | | | __| |__
|___|_|_|____/|_____|_____|
描述:此代码提供了一种灵活且可自定义的文件恢复工具,可用于从各种源中恢复已删除的文件,包括本地文件系统,磁盘映像和远程服务器。该代码是用Python编写的,可以在Windows和Linux系统上运行。
注意力!为了在某些目录(例如系统目录)中恢复已删除的文件,用户可能需要运行具有提高特权的Python脚本。这将允许脚本访问必要的文件和目录以恢复已删除的文件。
但是,重要的是要注意,运行具有提高特权的脚本也可能是危险的,如果不仔细使用,可能会损害您的系统。确保仔细查看代码,并了解其在使用提高特权的运行之前。在尝试任何数据恢复之前,在尝试任何数据恢复之前创建重要数据始终是一个好习惯。
要求:要使用此代码,您需要在系统上安装Python 3。此外,该代码使用几个外部库,您可能需要使用PIP安装这些库:
**Python 3** (can be downloaded from https://www.python.org/downloads/)
**python-magic** library (can be installed via pip install python-magic)
**paramiko** library (can be installed via pip install paramiko)
**requests** library (can be installed via pip install requests)
**python-magic** library (can be installed via pip install python-magic)
**paramiko** library (can be installed via pip install paramiko)
**requests** library (can be installed via pip install requests)
**pytsk3** library (can be installed via pip install pytsk3 or downloaded from https://github.com/ipython/pytsk3)
**tqdm** library (can be installed via pip install tqdm)
**psutil** library (can be installed via pip install psutil)
使用方法:要使用代码,您可以只需下载undel.py文件并使用Python从命令行运行。该代码提供了几个选项,您在运行时可以指定这些选项。正如我所说,und.py脚本旨在恢复系统上已删除的文件。它可以通过扫描文件系统中的删除文件并试图恢复它们来起作用。该脚本支持各种选择以自定义恢复过程,包括:
Selecting the type of file to recover (e.g., JPEG, PDF, etc.)
Limiting the size of files to recover
Filtering by file extension or name
Specifying the output directory for recovered files
Running in quiet mode to suppress progress output
Running in verbose mode to show more detailed information about the recovery process
e.t.c
该脚本提供了一种灵活而强大的工具,用于恢复系统上的已删除文件。
Recover files from a disk image
Recover files from a remote server
Preview the contents of the recovered file in the console before saving
Recover only files of specific types
Recover all files in a directory and its subdirectories.
*Many other features will be accessible soon.
您可以通过使用-H或-HELP选项运行代码来查看可用选项及其描述的列表:
python unDEL.py --help
默认情况下,脚本将恢复文件到与脚本相同的目录中名为“ recuction_files”的目录。您可以使用-o或-utput选项更改输出目录,然后使用所需的输出目录路径:
python unDEL.py -o /path/to/output/directory [options]
该脚本还允许您使用-t或-type选项指定要恢复的文件类型,然后使用所需的文件类型。例如,要仅恢复JPEG文件,请运行以下命令:
python unDEL.py -t [type for example jpg] [options]
该脚本包括一个进度栏,以指示文件恢复过程的进度。如果您不想看到进度栏,则可以使用-Q或-Quiet选项以安静模式运行脚本:
python unDEL.py -q [options]
该脚本包括一个详细模式,可提供有关文件恢复过程的更详细信息。您可以使用-v或-verbose选项启用详细模式:
python unDEL.py -v [options]
我认为此“读数”包含您开始使用脚本所需的所有内容,请在运行该代码之前先检查代码,以查看在执行过程中代码会做什么。
按照您自己的风险运行脚本,您系统发生的所有sh!t都在您的良心上。
祝你好运。