用密码解密加密ms-office文件的python工具和库
msoffice-decrypt的Python项目详细描述
ms office_decrypt是一个python工具和库,用于使用密码对加密的ms office文件进行解密。这项工作基于
https://github.com/nolze/msoffcrypto-tool。我创建这个项目是为了解决一个特定的用例。
git+https://github.com/unixfreak0037/msoffice-decrypt
>
>示例
>
<
>
<
<
(命令行)用密码解密文件。
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~加密的.doc
::
未加密。doc
(命令行)解密一个文件尝试的所有可能是另一个文件中的密码的所有可能是另一个文件中的密码的所有可能是另一个文件中的密码的文件。
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
msoffice_decrypt-i sample.txt scan_ciwilson.doc文件扫描未加密的ciwilson。doc
::
找到密码:7779
将解密的scan-ciwilson.doc扫描到未加密的scan-ciwilson.doc
(库)
~代码::python
from msoffice_decrypt import msoffice decryptor
decryptor=msofficedecryptor(input_file_path,output_file_path)
如果decryptor.is_decryptable:
打开('sample.txt,'r')作为fp:
word_list=decryptor.find_password(fp)
查看这些密码是否正确
password=decryptor.guess(word_list)
如果密码:
decryptor.decrypt(password)
https://github.com/nolze/msoffcrypto-tool。我创建这个项目是为了解决一个特定的用例。
git+https://github.com/unixfreak0037/msoffice-decrypt
>
>示例
>
<
>
<
<
(命令行)用密码解密文件。
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~加密的.doc
::
未加密。doc
(命令行)解密一个文件尝试的所有可能是另一个文件中的密码的所有可能是另一个文件中的密码的所有可能是另一个文件中的密码的文件。
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
msoffice_decrypt-i sample.txt scan_ciwilson.doc文件扫描未加密的ciwilson。doc
::
找到密码:7779
将解密的scan-ciwilson.doc扫描到未加密的scan-ciwilson.doc
(库)
~代码::python
from msoffice_decrypt import msoffice decryptor
decryptor=msofficedecryptor(input_file_path,output_file_path)
如果decryptor.is_decryptable:
打开('sample.txt,'r')作为fp:
word_list=decryptor.find_password(fp)
查看这些密码是否正确
password=decryptor.guess(word_list)
如果密码:
decryptor.decrypt(password)