美文网首页
Kali Linux 暴力破解 Excel密码 - 草稿

Kali Linux 暴力破解 Excel密码 - 草稿

作者: Pydes | 来源:发表于2022-11-12 04:01 被阅读0次

    [toc]

    Kali Linux 暴力破解 Excel密码

    目标

    • 使用 Kali Linux 自带的工具破解 Mircosofe 365 Office Excel 加密文档密码

    预备

    • Kali LInux 2020.4
    • Windows 10 (安装Office软件)
    • Microsoft Office 365 (用于创建Excel文档)
    • office2john.py (Kali Linux 自带)
    • john (Kali Linux 自带)

    模拟

    使用 Office 365 创建 Excel 文档并加密文档内容

    # 在Windows 10 操作系统下
    
    1. 使用 Office365 创建 Excel文件  test.xlsx
    
    2. 打开 test.xlsx 文档并输入部分内容
    
    3. 点击`文件`按钮
    
    4. 选择`信息`,
    
    5. 点击`保护工作簿下拉框`
    
    6. 点击`用密码进行加密`
    
    7. 在弹出的对话框输入密码, 实验里设置为123123,并点击`确定`
    
    8. 关闭文档并重新打开 test.xlsx 后,自动弹出需要密码的对话框,验证加密成功
    

    破解

    使用 Kali Linux自带软件进行Excel密码破解

    # 在 Kali Linux 操作系统下 
    
    ## 1. 查询 office2john.py 所在路径 
    
    locate office2john.py 
    
    ## 2. 使用 office2john.py 获取 Excel 密码 Hash
    
    python3 /usr/share/john/office2john.py test.xlsx > hash.txt
    
    ## 3. 使用 john 和 密码文件 对 hash.txt 进行暴力破解 
    
    john --rules --wordlist=/home/Hack/WordList/PwnedPasswordTop100k.txt hash.txt
    
    
    ## 程序输出内容如下:
    
    Using default input encoding: UTF-8
    Loaded 1 password hash (Office, 2007/2010/2013 [SHA1 256/256 AVX2 8x / SHA512 256/256 AVX2 4x AES])
    Cost 1 (MS Office version) is 2013 for all loaded hashes
    Cost 2 (iteration count) is 100000 for all loaded hashes
    Will run 8 OpenMP threads
    Press 'q' or Ctrl-C to abort, almost any other key for status
    123123           (test.xlsx)
    1g 0:00:00:00 DONE (2020-11-25 20:54) 1.923g/s 123.0p/s 123.0c/s 123.0C/s //www.linuxmi.com//..aaaaaa
    Use the "--show" option to display all of the cracked passwords reliably
    Session completed
    
    ## 得到密码为 123123
    
    

    相关文章

      网友评论

          本文标题:Kali Linux 暴力破解 Excel密码 - 草稿

          本文链接:https://www.haomeiwen.com/subject/jndxsltx.html