D3Ext / Hooka

Evasive shellcode loader, hooks detector and more
MIT License
204 stars 32 forks source link

undefined: core.GetSysIdHashing when compiling in a Docker container #8

Open lorenzog opened 11 months ago

lorenzog commented 11 months ago

Describe the bug The project does not compile on the latest golang Docker images

To Reproduce

  1. Clone the project
  2. Start a docker container, e.g. docker run -it --rm -v $PWD:/data go:latest /bin/bash
  3. Compile the project

Expected behavior The project compiles

Actual Behaviour An error is returned

root@c9d01abe2514:/go# cd /data
root@c9d01abe2514:/data# make
mkdir build/
export CGO_ENABLED=0
GOARCH=amd64 GOOS=windows go build -o build/hooka-amd64-windows.exe main.go
go: downloading github.com/D3Ext/maldev v0.1.4
go: downloading github.com/Binject/debug v0.0.0-20230508195519-26db73212a7a
go: downloading github.com/awgh/rawreader v0.0.0-20200626064944-56820a9c6da4
go: downloading github.com/google/uuid v1.3.1
go: downloading golang.org/x/sys v0.12.0
go: downloading github.com/briandowns/spinner v1.23.0
go: downloading github.com/common-nighthawk/go-figure v0.0.0-20210622060536-734e95fb86be
go: downloading github.com/fatih/color v1.15.0
go: downloading github.com/mattn/go-isatty v0.0.18
go: downloading golang.org/x/term v0.8.0
go: downloading github.com/mattn/go-colorable v0.1.13
# github.com/D3Ext/Hooka/pkg/hooka
pkg/hooka/hashing.go:10:14: undefined: core.GetSysIdHashing
make: *** [Makefile:6: all] Error 1

Desktop (please complete the following information):

lorenzog commented 11 months ago

Turns out the latest commit broke the installer 2f92e546c2908def5a0d744c1d22364f0d4806a9

D3Ext commented 11 months ago

Oh thanks for the report, I renamed that function but didn't updated it on the main program. I update it today