D3Ext / Hooka

Evasive shellcode loader, hooks detector and more

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

undefined: core.GetSysIdHashing when compiling in a Docker container

lorenzog opened this issue · comments

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):

  • OS: Ubuntu 22.04 LTS
  • Latest Docker golang image as per 2023-10-17

Turns out the latest commit broke the installer 2f92e54

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