no build EXE
Ondrik8 opened this issue · 9 comments
mkdir -p cert; \
openssl genrsa -out ./cert/ca.key 2048; \
openssl req -new -x509 -days 3650 -key ./cert/ca.key -subj "/C=US/ST=Hawaii/L=The Sewers/O=Pantegana, Inc./CN=Pantegana Root CA" -out ./cert/ca.crt; \
openssl req -newkey rsa:2048 -nodes -keyout ./cert/server.key -subj "/C=US/ST=Hawaii/L=The Sewers/O=Pantegana, Inc./CN=h4ck3r.shop" -out ./cert/server.csr; \
openssl x509 -req -extfile <(printf "subjectAltName=DNS:h4ck3r.com,IP:112.69.2.8") -days 3650 -in ./cert/server.csr -CA ./cert/ca.crt -CAkey ./cert/ca.key -CAcreateserial -out ./cert/server.crt;
Generating RSA private key, 2048 bit long modulus (2 primes)
................+++++
...................................................+++++
e is 65537 (0x010001)
Generating a RSA private key
.............+++++
..................................................+++++
writing new private key to './cert/server.key'
-----
Signature ok
subject=C = US, ST = Hawaii, L = The Sewers, O = "Pantegana, Inc.", CN = h4ck3r.com
Getting CA Private Key
mkdir -p out;
cd ./client/; \
go generate; \
sed -i "/^package main/c\package client" cert.go; \
cd ../main/client/; \
CGO_ENABLED=0 GOARCH=amd64 go build -ldflags="-s -w" -o client.bin; \
mv client.bin /home/kali/SOFT/pantegana/out/client.bin;
go: downloading github.com/emersion/go-autostart v0.0.0-20210130080809-00ed301c8e9a
mkdir -p out;
cd ./client/; \
go generate; \
sed -i "/^package main/c\package client" cert.go; \
cd ../main/client/; \
GOOS=windows GOARCH=amd64 go build -o client.exe; \
mv client.exe /home/kali/SOFT/pantegana/out/client.exe;
# github.com/elleven11/pantegana/client
../../client/persistence.go:26:22: c.Persistence.Disable undefined (type *autostart.App has no field or method Disable)
../../client/persistence.go:37:18: c.Persistence.IsEnabled undefined (type *autostart.App has no field or method IsEnabled)
../../client/persistence.go:42:23: c.Persistence.Enable undefined (type *autostart.App has no field or method Enable)
note: module requires Go 1.16
mv: cannot stat 'client.exe': No such file or directory
make: *** [Makefile:51: build-client-win] Error 1
note: module requires Go 1.16
The build failed because one of the modules requires Go 1.16 and up.
Make sure to update your go installation.
Try with Go 1.17
also tried with 16 version in my vps.) 17 ? ok...
also tried with 16 version in my vps.) 17 ? ok...
Yeah I just tried to build now, It seems to be a problem with the module. I am investigating.
it would not be bad that he collected in garble)
because the output will then be a crypted build
go version go1.17.1
Signature ok
subject=C = US, ST = Hawaii, L = The Sewers, O = "Pantegana, Inc.", CN = h4ck3r.com
Getting CA Private Key
mkdir -p out;
cd ./client/; \
go generate; \
sed -i "/^package main/c\package client" cert.go; \
cd ../main/client/; \
CGO_ENABLED=0 GOARCH=amd64 go build -ldflags="-s -w" -o client.bin; \
mv client.bin /root/C2/pantegana/out/client.bin;
mkdir -p win;
cd ./client/; \
go generate; \
sed -i "/^package main/c\package client" cert.go; \
cd ../main/client/; \
GOOS=windows GOARCH=amd64 go build -o client.exe; \
mv client.exe /root/C2/pantegana/win/client.exe;
# github.com/elleven11/pantegana/client
../../client/persistence.go:26:22: c.Persistence.Disable undefined (type *autostart.App has no field or method Disable)
../../client/persistence.go:37:18: c.Persistence.IsEnabled undefined (type *autostart.App has no field or method IsEnabled)
../../client/persistence.go:42:23: c.Persistence.Enable undefined (type *autostart.App has no field or method Enable)
mv: cannot stat 'client.exe': No such file or directory
make: *** [Makefile:51: build-client-win] Error 1
root@ondrik85:~/C2/pantegana# go version
go version go1.17.1 linux/amd64
Okay so the autostart package does not work if compiled on linux for windiows. For now I disabled it. You should be able to build the client now.
I don’t know how it happened, but I already saw the antivirus defender, I definitely set my settings not to send samples, thanks for the project, but I was conducting tests so far and I could not get into another folder in the shell I tried until the antivirus deleted the build .. I will try compile differently garble or goobfuscator