初始化 Initialize
从Github拉取项目
git clone https://github.com/BKLockly/KarlinC2.git
切换目录进入项目
cd KarlinC2
服务端 Server
在启动Server端前,确保包含以下依赖:
- go
- gcc
- MinGW-w64
- Wails
- Garble
- Goimports
- Gonut
执行initialize.bat
或者initialize.sh
初始化环境:
Lockly@BK ❯.\initialize.bat
[*] Initializing Karlin...
[-] Checking required tools and environments...
[-] Checking MinGW-w64...
[-] Configuring Go Environment...
[-] Checking garble...
[-] Checking goimports...
[+] Checking gonut...
[-] Initializing Go Modules...
[-] Tidying Go Modules...
[+] Log file was empty and deleted.
[+] ========================================
[+] Initialization Completed
[+] ========================================
[-] Environment Information:
----------------------------------------
gcc: gcc (x86_64-posix-seh-rev0, Built by MinGW-W64 project) 8.1.0
go: go version go1.22.3 windows/amd64
garble: mvdan.cc/garble v0.12.1
gonut: gonut version v1.0.0-3
goimports: cmd/goimports@latest is installed
----------------------------------------
[*] Karlin is ready to use
请按任意键继续. . .
如上完成后即可启动server
cd ./backend/server
go run main.go
客户端 Client
从release页面获取对应的二进制文件执行即可,自行编译可使用makefile(只适配了windows):
make windows-amd64
客户端的编译依赖Wails, 请根据官网文档配置wails以进行编译:
wails build
正常进入登录页面,新建配置进行登录,成功登录的配置会自动保存到%UserProfile%\.karlin\client\operators.json