有些人總覺得密碼破解需要很多駭客工具,其實不見得,這篇文章會介紹如何使用 windows 內建的 powershell 指令以及 7zip 解壓縮軟體,實作zip壓縮檔密碼暴力破解。
如果已經對 powershell 有一定熟悉程度,可以直接跳到 完整 powershell 語法 ,還不熟悉或是執行時遇到問題的話,請跟著以下步驟慢慢執行。
C:\Program Files (x86)\7-Zip\7z.exe
前面的東西準備差不多了,等下的 powershell 中有幾個要自己填入的資料
共4項,請依照自己電腦的路徑修改
可以在檔案總管或桌面,任意空白位置按住 shift 再按滑鼠右鍵,會在新的視窗看看到 在這裡開啟PowerShell 視窗,點擊下去就會看到指令列視窗了
在 powershell 中,請貼上這一段指令,記得路徑C:\pw\zippassword.ps1這個部分要改成自己電腦路徑,按下 enter 執行後,要等他一會兒(大概10秒),之後就開始跑了
powershell -ExecutionPolicy Bypass -File C:\pw\zippassword.ps1
以下是執行起來的樣子,最後一筆 1234567 就是被暴力破解試出來的密碼
zippassword.ps1
,副檔名最後一個字是數字onedanielmiessler/SecLists Passwords/Common-Credentials/10-million-password-list-top-1000000.txt
https://github.com/danielmiessler/SecLists/blob/master/Passwords/Common-Credentials/10-million-password-list-top-1000000.txt
Powershell: Brute-forcing password-protected .zip file (speeding up the process)
https://stackoverflow.com/questions/39172934/powershell-brute-forcing-password-protected-zip-file-speeding-up-the-process