# Compiling hashcat for Windows with macOS. Tested on macOS 12.6.6 M1. Make sure to have the HomeBrew upgraded. ### Installation ### ``` brew install mingw-w64 git clone https://github.com/hashcat/hashcat git clone https://github.com/win-iconv/win-iconv cd win-iconv/ cmake -D WIN_ICONV_BUILD_EXECUTABLE=OFF -D CMAKE_INSTALL_PREFIX=/opt/win-iconv-64 -D CMAKE_CXX_COMPILER=$(which x86_64-w64-mingw32-g++) -D CMAKE_C_COMPILER=$(which x86_64-w64-mingw32-gcc) -D CMAKE_SYSTEM_NAME=Windows sudo make install cd ../ wget https://repo.msys2.org/mingw/mingw64/mingw-w64-x86_64-python-3.12.10-1-any.pkg.tar.zst sudo mkdir /opt/win-python sudo tar --zstd -xf mingw-w64-x86_64-python-3.12.10-1-any.pkg.tar.zst -C /opt/win-python ``` ### 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 ``` cd hashcat/ make win ``` The process may take a while, please be patient.