1
mirror of https://github.com/hashcat/hashcat synced 2024-12-09 02:13:10 +01:00
hashcat/BUILD_MSYS2.md

47 lines
1.0 KiB
Markdown
Raw Normal View History

2019-03-28 17:54:33 +01:00
# Compiling hashcat with msys2.
2021-05-07 09:55:48 +02:00
Tested on a Windows 10 20H2 x64 machine.
2019-03-28 17:54:33 +01:00
2019-03-29 13:01:17 +01:00
### Installation ###
2019-03-28 17:54:33 +01:00
Go to https://www.msys2.org/ and follow the instructions on the main page (steps 1 to 7).
2019-03-29 17:39:41 +01:00
Install additional dependencies required to compile hashcat by running the following commands
2019-03-29 13:01:17 +01:00
```
2019-03-28 17:54:33 +01:00
$ pacman -S git
$ pacman -S make
$ pacman -S gcc
$ pacman -S libiconv-devel
```
2019-03-29 13:01:17 +01:00
### Building ###
2019-03-28 17:54:33 +01:00
Once all that is done, type the following command to copy the latest master revision of hashcat repository into msys64\home\username\hashcat
2019-03-29 13:01:17 +01:00
```
2019-03-28 17:54:33 +01:00
$ git clone https://github.com/hashcat/hashcat.git
```
2019-03-29 17:39:41 +01:00
Switch to the newly created folder by running
2019-03-29 13:01:17 +01:00
```
2019-03-28 17:54:33 +01:00
$ cd hashcat
```
Now type "make" to start compiling hashcat
2019-03-29 13:01:17 +01:00
```
2019-03-28 17:54:33 +01:00
$ make
```
2019-03-29 17:39:41 +01:00
The process may take a while, please be patient. Once it's finished, run hashcat by typing "./hashcat.exe"
2019-03-29 13:01:17 +01:00
```
2019-03-28 17:54:33 +01:00
$ ./hashcat.exe
```
2019-03-29 13:01:17 +01:00
### Notes ###
2019-03-28 17:54:33 +01:00
While hashcat will run fine from msys shell, running it from a windows shell will require msys-iconv-2.dll and msys-2.0.dll to be in the same folder with hashcat.exe (the files can be found in msys64\usr\bin).