tiagorlampert / CHAOS

:fire: CHAOS is a free and open-source Remote Administration Tool that allow generate binaries to control remote operating systems.
MIT License
2.35k stars 522 forks source link

Unable to generate exe #84

Closed cxaqhq closed 2 years ago

cxaqhq commented 2 years ago

image image

tiagorlampert commented 2 years ago

Hello @cxaqhq,

Could you give me some details about your environment?

Are you running from a docker instance or a local development?

If you are running from code, what is your operating system? The only supported OS to run the server is Linux currently.

I added now a logger wich probably will give some details about the error on the terminal. So if you running from a local development just update your branch and get the last changes.

cxaqhq commented 2 years ago

root@VM-4-7-debian:~# uname -a Linux VM-4-7-debian 4.19.0-11-amd64 #1 SMP Debian 4.19.146-1 (2020-09-17) x86_64 GNU/Linux

cxaqhq commented 2 years ago

Docker is not used.

tiagorlampert commented 2 years ago

Could you try this test.

Run on your terminal inside the root project:

cd client

GO_ENABLED=1 GOOS=windows GOARCH=amd64 go build -o main.exe main.go

file main.exe

It should build a executable from the source code client, if occurs some error, probably we will see the reason.

The output should be something like this:

image

cxaqhq commented 2 years ago

image

tiagorlampert commented 2 years ago

Probably your golang version is old than Go 1.16. Its a requirement to be >= 1.16, i didn't specify on readme.

To see your version run:

go version

You should update your golang version or run from a docker instance.

cxaqhq commented 2 years ago

okok,Thank you for your guidance

cxaqhq commented 2 years ago

It can now be generated, but it was killed by WindowsDefender. Can I modify the client source bypassAV?

tiagorlampert commented 2 years ago

Unfortunately we don't have currently a bypass built in functionality, on the future versions probably we are work on it.

So you should use a third party project to do that.

cxaqhq commented 2 years ago

image 304? run exe not Connected Devices

tiagorlampert commented 2 years ago

http 304 is just the browser cache downloading the Web UI js.

The machine running the client have access to your server? check if IP and port are correct.

cxaqhq commented 2 years ago

image IP prot is correct

tiagorlampert commented 2 years ago

I added some logs on client when connecting with server, probably now you can see some error. You need to get the latest code from repository.

Could you try it? Sorry for delay.