2020-05-27 21:15:36 +02:00
# Compiling hashcat for Windows with Windows Subsystem for Linux.
2020-06-04 20:10:53 +02:00
Tested on Windows 10 x64, should also work to build hashcat for Windows on Linux.
2020-05-27 21:15:36 +02:00
2021-03-29 17:43:43 +02:00
I had it tested with WSL2 using Ubuntu_2004.2020.424.0_x64.appx.
Make sure to have the system upgraded after install (otherwise it will fail to find the gcc-mingw-w64-x86-64 package).
2020-05-27 21:15:36 +02:00
### Installation ###
Enable WSL.
2020-06-04 20:10:53 +02:00
Press the win + r key on your keyboard simultaneously and in the "Run" popup window type bash and make sure to install additional dependencies necessary for hashcat compilation
2020-05-27 21:15:36 +02:00
```
2021-03-29 17:43:43 +02:00
sudo apt install gcc-mingw-w64-x86-64 g++-mingw-w64-x86-64 make git
2020-05-27 21:15:36 +02:00
git clone https://github.com/hashcat/hashcat
2020-06-04 20:10:53 +02:00
git clone https://github.com/win-iconv/win-iconv
2020-05-27 21:15:36 +02:00
cd win-iconv/
2020-06-04 20:10:53 +02:00
patch < .. / hashcat / tools / win-iconv-64 . diff
2020-05-27 21:15:36 +02:00
sudo make install
2020-06-04 20:10:53 +02:00
cd ../
2020-05-27 21:15:36 +02:00
```
### Building ###
You've already cloned the latest master revision of hashcat repository above, so switch to the folder and type "make win" to start compiling hashcat
```
2020-06-04 20:10:53 +02:00
cd hashcat/
2020-05-27 21:15:36 +02:00
make win
```
2020-06-04 20:10:53 +02:00
The process may take a while, please be patient. Once it's finished, close WSL.
Press the win + r keys together and (in the "Run" popup window) type cmd, using cd navigate to the hashcat folder e.g.
```
cd "C:\Users\user\hashcat"
```
and start hashcat by typing
2020-05-27 21:15:36 +02:00
```
hashcat.exe
2021-02-23 12:23:38 +01:00
```