Caldera 安装,实验

安装

git clone https://github.com/mitre/caldera.git --recursive     (有一些子模块,需要递归下载)

由于本机安装有一些条件约束。 https://www.cnblogs.com/zzl14/articles/18302481

 安装python3.8

Kali环境下安装python3_kali python3安装-CSDN博客

使用 Python 版本的 pip3: 如果你知道某个 Python 解释器的版本(例如 Python 3.7),你可以使用该版本的 pip3。例如:

python3.7 -m pip install package_name

 

还有nodejs v18--安装

kali安装Node.js - hirak0 - 博客园 (cnblogs.com)

 

cd caldera
pip3 install -r requirements.txt
python3 server.py --insecure --build
 
go安装

sudo apt install golang-go

 

只有在Caldera server的第一次启动时,或者在提取最新的更改时,才需要该参数。--build

启动后,使用 conf/local.yml文件中的密码登录 http://localhost:8888

 

 

 python3 server.py --insecure --fresh

启动成功,

红队登陆密码   red/admin

但是只有http://localhost:8888/agents  才能登陆成功。其他0.0.0.0无响应。好像是bug.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

docker安装

docker安装网络问题没法解决,出错了

使用docker安装。

 在 Debian 上安装 Docker Desktop |Docker 文档

https://docs.docker.com/engine/install/debian/#install-using-the-repository

 

kali下载源为 bookworm

deb [arch=amd64 signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian  bookworm  stable

 

docker换源

/etc/docker/daemon.json

{
"registry-mirrors": [
"https://docker.mirrors.ustc.edu.cn",
"https://s2v1ngmf.mirror.aliyuncs.com",
"https://hub-mirror.c.163.com",
"https://mirror.baidubce.com"
]
}

启动服务使其生效

systemctl daemon-reload
systemctl restart docker
docker build . --build-arg WIN_BUILD=true -t caldera:latest

安装不了。。



posted @ 2025-02-27 16:52  zzl14  阅读(101)  评论(0)    收藏  举报