KittyStager 是一个第 0 阶段 C2 系统,包含 API、客户端和恶意软件。API 负责提供基本任务以及由恶意软件注入内存的 shellcode。客户端也连接到 API,通过创建任务与恶意软件进行交互。KittyStager 的目标是在目标系统上部署一个简单的第 0 阶段载荷,并收集足够信息来针对特定目标调整载荷。由于第 0 阶段载荷旨在尽可能隐蔽,它不包含任何命令执行能力。
本项目仅供教育目的使用。我对本项目造成的任何损害概不负责。
一些设置可在 config 文件中更改
git clone https://github.com/Enelg52/KittyStager.git
cd KittyStager
编辑配置文件 file:
使用 openssl 为 https 生成证书的方法
$ openssl req -new -newkey rsa:2048 -nodes -keyout localhost.key -out localhost.csr
$ openssl x509 -req -days 365 -in localhost.csr -signkey localhost.key -out localhost.crt
构建服务器:
cd server
go build
构建客户端
cd client
go build
服务器需要运行
cd kitten/basicKitten
env GOOS=windows GOARCH=amd64 go build -o basicKitten.exe
然后启动服务器、客户端,并在目标上运行 kitten。
启动服务器
./server -h
Usage of server:
-p string
Path to the config file (default "config.yaml")
客户端将连接到 127.0.0.1:1337。如果你不在服务器上,需要使用 SSH 隧道。
./client













你可以根据配置文件自定义 kitten 代码。
# Malware
# Injection methode : createThread, banana, halo
injection: createThread
# Output : dll, exe
execType: exe
# Obfuscation : true, false
obfuscation: false
编译和混淆部分尚未实现。
编译 exe:
cd output
env GOOS=windows GOARCH=amd64 go build -o kitten.exe
编译 dll:
你需要在 config.yaml 中更改 execType
cd output
env GOOS=windows GOARCH=amd64 CGO_ENABLED=1 CC="x86_64-w64-mingw32-gcc" go build -o basickitten.dll -buildmode=c-shared kitten.go
项目分为三部分:
加密部分、kitten、配置和任务结构位于 internal 中。
欢迎提交拉取请求。如果你想添加其他功能,请随时提出 issue。
Discord:Enelg#9993