ggg4566 / Havoc_windows

havoc windows

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

image

Qt creator open cmake mingw project directory and compile image

image

:)

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"
    }
}
image

About

havoc windows

License:GNU General Public License v3.0


Languages

Language:C++ 41.9%Language:Go 31.5%Language:C 22.3%Language:Ragel 2.9%Language:CMake 0.6%Language:Python 0.1%Language:Ruby 0.1%Language:Perl 0.1%Language:Makefile 0.1%Language:HCL 0.1%Language:Assembly 0.1%Language:Shell 0.0%Language:Batchfile 0.0%Language:HTML 0.0%