Havoc_windows
Compiled Havoc for windows operating system
project:
https://github.com/HavocFramework/Havoc
steps
Since the original project is working in linux and macos, before compiling the source code and CMakelists.txt need to make some modifications to ensure that windows can be pass, I have uploaded to github, you can git clone and compile .
1. download source
git clone https://github.com/HavocFramework/Havoc
cd Havoc\client
git clone https://github.com/gabime/spdlog
2. install qt5 and python310
download and install qt5 and python
install qt5
mirror list:https://download.qt.io/static/mirrorlist/
chose fast mirror address.
qt-unified-windows-x64-online.exe --mirror https://mirrors.tuna.tsinghua.edu.cn/qt/
install python310
https://www.python.org/ftp/python/3.10.10/python-3.10.10-amd64.exe
3. install mingw
https://github.com/niXman/mingw-builds-binaries/releases
4. add env
set env for client compile
Qt5_DIR=E:\Qt\5.15.2\mingw81_64
PATH+= E:\Qt\Tools\CMake_64\bin;E:\Qt\Tools\mingw810_64\bin;e:\Tools\x86_64-w64- mingw32\13.2.0\bin
5.build teamserver
go build teamserver
cd teamserver
go env -w GO111MODULE="on"
go build -ldflags="-s -w" -o ..\havoc_server.exe main.go
6 .cmake-gui generate mingw makefiles and make compile client
make -j2
Qt creator open cmake mingw project directory and compile
:)
compile payload need set mingw-gcc in profile http_smb_windows.yaotl
Teamserver {
Host = "0.0.0.0"
Port = 40056
Build {
Compiler64 = "x86_64-w64-mingw32-gcc.exe"
Compiler86 = "i686-w64-mingw32-gcc.exe"
Nasm = "E:\\Havoc\\tools\\nasm.exe"
}
}
Operators {
user "admin" {
Password = "testpassword"
}
user "msf" {
Password = "testpassword"
}
}