trustedsec / trevorc2

TrevorC2 is a legitimate website (browsable) that tunnels client/server communications for covert command execution.
Other
1.22k stars 256 forks source link

Build from c #29

Closed Spl01ter closed 3 years ago

Spl01ter commented 3 years ago

How do you build from C code on MacOS?

Spl01ter commented 3 years ago

$ make
x86_64-w64-mingw32-gcc -s -Wall -I ./include -mwindows -DWIN_MAIN ./src/aes.c ./src/crypto.c ./src/decode.c ./src/encode.c ./src/main.c ./src/sha256.c ./posix_src/http.c -lws2_32 -o ./tc2_client.exe make: x86_64-w64-mingw32-gcc: No such file or directory make: *** [win] Error 1

Spl01ter commented 3 years ago

$ make posix
gcc -s -Wall -I ./include ./src/aes.c ./src/crypto.c ./src/decode.c ./src/encode.c ./src/main.c ./src/sha256.c ./posix_src/http.c -o ./tc2_client.out ld: warning: option -s is obsolete and being ignored