IT数码 购物 网址 头条 软件 日历 阅读 图书馆
TxT小说阅读器
↓语音阅读,小说下载,古典文学↓
图片批量下载器
↓批量下载图片,美女图库↓
图片自动播放器
↓图片自动播放器↓
一键清除垃圾
↓轻轻一点,清除系统垃圾↓
开发: C++知识库 Java知识库 JavaScript Python PHP知识库 人工智能 区块链 大数据 移动开发 嵌入式 开发工具 数据结构与算法 开发测试 游戏开发 网络协议 系统运维
教程: HTML教程 CSS教程 JavaScript教程 Go语言教程 JQuery教程 VUE教程 VUE3教程 Bootstrap教程 SQL数据库教程 C语言教程 C++教程 Java教程 Python教程 Python3教程 C#教程
数码: 电脑 笔记本 显卡 显示器 固态硬盘 硬盘 耳机 手机 iphone vivo oppo 小米 华为 单反 装机 图拉丁
 
   -> Python知识库 -> Kali 2022.2 安装 CALDERA(避坑指南) -> 正文阅读

[Python知识库]Kali 2022.2 安装 CALDERA(避坑指南)

CALDERA GitHub官网

1 下载

1.1 Tips:

使用git clone下载GitHub仓库时,如果遇到下载缓慢或者失败的情况,可以在原有地址的https://后插入gitclone.com/进行下载。例如:

git clone https://github.com/mitre/caldera.git

# 在原有链接中插入gitclone.com/
git clone https://gitclone.com/github.com/mitre/caldera.git

参考自:https://blog.csdn.net/weixin_52450702/article/details/124911326

相关网站:https://gitclone.com/

其他方法:Gitee、码云、科学上网等。

1.2 clone caldera

使用下面的命令下载的plugins文件保存在/caldera/.git/modules/plugins/目录下,下载完成后将其拷贝到/caldera/plugins/目录下。

git clone https://github.com/mitre/caldera.git --recursive

1.3 clone plugins

plugins下的文件很多大概率会下载失败,根据提示的内容,使用git clone单独下载:

git clone https://github.com/mitre/caldera.git
git clone https://github.com/mitre/access.git
git clone https://github.com/mitre/atomic.git
git clone https://github.com/mitre/builder.git
git clone https://github.com/mitre/compass.git
git clone https://github.com/mitre/debrief.git
git clone https://github.com/mitre/emu.git
git clone https://github.com/mitre/fieldmanual.git
git clone https://github.com/mitre/gameboard.git
git clone https://github.com/mitre/human.git
git clone https://github.com/mitre/manx.git
git clone https://github.com/mitre/mock.git
git clone https://github.com/mitre/response.git
git clone https://github.com/mitre/sandcat.git
git clone https://github.com/mitre/ssl.git
git clone https://github.com/mitre/stockpile.git
git clone https://github.com/mitre/training.git

将单独下载的plugins拷贝到/caldera/plugins/目录下。

2 安装

2.1 必要和推荐

  • Python 3.7, 3.8, or 3.9 (with pip3)
  • GoLang 1.17+ (for optimal agent functionality)

其他详细信息参考官网:https://caldera.readthedocs.io/en/latest/Installing-CALDERA.html#requirements

2.2 查看pip3版本

┌──(lwj?kali)-[~/Desktop/caldera]
└─$ pip3 -V
pip 22.1.1 from /usr/lib/python3/dist-packages/pip (python 3.10)

2.3 python3.10安装报错

kali 2022.2更新后,自动安装了python3.9和3.10,经测试CALDERA的安装只支持3.7、3.8、3.9三个版本,3.10安装时会报如下的错,这里看到pip3的版本是3.10,所以接下来需要更换python版本。

┌──(lwj?kali)-[~/Desktop/caldera]
└─$ pip3 install -r requirements.txt 
Defaulting to user installation because normal site-packages is not writeable
Collecting aiohttp-jinja2==1.2.0
  Downloading aiohttp_jinja2-1.2.0-py3-none-any.whl (10 kB)
Collecting aiohttp==3.6.2
  Downloading aiohttp-3.6.2-py3-none-any.whl (441 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 441.8/441.8 kB 1.1 MB/s eta 0:00:00
Collecting aiohttp_session==2.9.0
  Downloading aiohttp_session-2.9.0-py3-none-any.whl (14 kB)
Collecting aiohttp-security==0.4.0
  Downloading aiohttp_security-0.4.0-py3-none-any.whl (6.9 kB)
Collecting jinja2==2.10.3
  Downloading Jinja2-2.10.3-py2.py3-none-any.whl (125 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 125.3/125.3 kB 5.6 MB/s eta 0:00:00
Requirement already satisfied: pyyaml>=5.1 in /usr/lib/python3/dist-packages (from -r requirements.txt (line 6)) (5.4.1)
Requirement already satisfied: cryptography>=3.2 in /usr/lib/python3/dist-packages (from -r requirements.txt (line 7)) (3.4.8)
Collecting websockets==8.1
  Downloading websockets-8.1.tar.gz (58 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 58.9/58.9 kB 1.9 MB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
Collecting Sphinx==3.0.4
  Downloading Sphinx-3.0.4-py3-none-any.whl (2.8 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.8/2.8 MB 1.5 MB/s eta 0:00:00
Collecting sphinx_rtd_theme==0.4.3
  Downloading sphinx_rtd_theme-0.4.3-py2.py3-none-any.whl (6.4 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 6.4/6.4 MB 1.9 MB/s eta 0:00:00
Collecting recommonmark==0.6.0
  Downloading recommonmark-0.6.0-py2.py3-none-any.whl (10 kB)
Collecting marshmallow==3.5.1
  Downloading marshmallow-3.5.1-py2.py3-none-any.whl (45 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 45.5/45.5 kB 726.4 kB/s eta 0:00:00
Collecting dirhash==0.2.0
  Downloading dirhash-0.2.0-py3-none-any.whl (12 kB)
Collecting docker==4.2.0
  Downloading docker-4.2.0-py2.py3-none-any.whl (143 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 143.9/143.9 kB 6.0 MB/s eta 0:00:00
Collecting donut-shellcode==0.9.2
  Downloading donut-shellcode-0.9.2.tar.gz (149 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 149.7/149.7 kB 2.3 MB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
Requirement already satisfied: marshmallow-enum==1.5.1 in /usr/lib/python3/dist-packages (from -r requirements.txt (line 16)) (1.5.1)
Requirement already satisfied: ldap3==2.8.1 in /usr/lib/python3/dist-packages (from -r requirements.txt (line 17)) (2.8.1)
Collecting lxml~=4.6.2
  Downloading lxml-4.6.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_24_x86_64.whl (6.9 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 6.9/6.9 MB 2.1 MB/s eta 0:00:00
Collecting reportlab==3.5.64
  Downloading reportlab-3.5.64.tar.gz (2.9 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.9/2.9 MB 1.2 MB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
Collecting svglib==1.0.1
  Downloading svglib-1.0.1.tar.gz (900 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 900.7/900.7 kB 1.2 MB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
Collecting Markdown==3.3.3
  Downloading Markdown-3.3.3-py3-none-any.whl (96 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 96.3/96.3 kB 1.8 MB/s eta 0:00:00
Collecting dnspython==2.1.0
  Downloading dnspython-2.1.0-py3-none-any.whl (241 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 242.0/242.0 kB 1.9 MB/s eta 0:00:00
Collecting chardet<4.0,>=2.0
  Downloading chardet-3.0.4-py2.py3-none-any.whl (133 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 133.4/133.4 kB 2.5 MB/s eta 0:00:00
Collecting async-timeout<4.0,>=3.0
  Downloading async_timeout-3.0.1-py3-none-any.whl (8.2 kB)
Requirement already satisfied: yarl<2.0,>=1.0 in /usr/lib/python3/dist-packages (from aiohttp==3.6.2->-r requirements.txt (line 2)) (1.7.2)
Collecting multidict<5.0,>=4.5
  Downloading multidict-4.7.6.tar.gz (50 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 51.0/51.0 kB 4.2 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: attrs>=17.3.0 in /usr/lib/python3/dist-packages (from aiohttp==3.6.2->-r requirements.txt (line 2)) (21.2.0)
Requirement already satisfied: MarkupSafe>=0.23 in /usr/lib/python3/dist-packages (from jinja2==2.10.3->-r requirements.txt (line 5)) (2.0.1)
Requirement already satisfied: packaging in /usr/lib/python3/dist-packages (from Sphinx==3.0.4->-r requirements.txt (line 9)) (21.3)
Requirement already satisfied: babel>=1.3 in /usr/lib/python3/dist-packages (from Sphinx==3.0.4->-r requirements.txt (line 9)) (2.8.0)
Collecting sphinxcontrib-serializinghtml
  Downloading sphinxcontrib_serializinghtml-1.1.5-py2.py3-none-any.whl (94 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 94.0/94.0 kB 161.0 kB/s eta 0:00:00
Collecting sphinxcontrib-jsmath
  Downloading sphinxcontrib_jsmath-1.0.1-py2.py3-none-any.whl (5.1 kB)
Collecting docutils>=0.12
  Downloading docutils-0.18.1-py2.py3-none-any.whl (570 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 570.0/570.0 kB 1.2 MB/s eta 0:00:00
Collecting alabaster<0.8,>=0.7
  Downloading alabaster-0.7.12-py2.py3-none-any.whl (14 kB)
Collecting sphinxcontrib-applehelp
  Downloading sphinxcontrib_applehelp-1.0.2-py2.py3-none-any.whl (121 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 121.2/121.2 kB 2.0 MB/s eta 0:00:00
Collecting sphinxcontrib-htmlhelp
  Downloading sphinxcontrib_htmlhelp-2.0.0-py2.py3-none-any.whl (100 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100.5/100.5 kB 2.4 MB/s eta 0:00:00
Collecting imagesize
  Downloading imagesize-1.3.0-py2.py3-none-any.whl (5.2 kB)
Collecting sphinxcontrib-qthelp
  Downloading sphinxcontrib_qthelp-1.0.3-py2.py3-none-any.whl (90 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 90.6/90.6 kB 2.4 MB/s eta 0:00:00
Collecting snowballstemmer>=1.1
  Downloading snowballstemmer-2.2.0-py2.py3-none-any.whl (93 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 93.0/93.0 kB 1.5 MB/s eta 0:00:00
Requirement already satisfied: Pygments>=2.0 in /usr/lib/python3/dist-packages (from Sphinx==3.0.4->-r requirements.txt (line 9)) (2.11.2)
Requirement already satisfied: setuptools in /usr/lib/python3/dist-packages (from Sphinx==3.0.4->-r requirements.txt (line 9)) (59.6.0)
Requirement already satisfied: requests>=2.5.0 in /usr/lib/python3/dist-packages (from Sphinx==3.0.4->-r requirements.txt (line 9)) (2.27.1)
Collecting sphinxcontrib-devhelp
  Downloading sphinxcontrib_devhelp-1.0.2-py2.py3-none-any.whl (84 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 84.7/84.7 kB 2.9 MB/s eta 0:00:00
Requirement already satisfied: commonmark>=0.8.1 in /usr/lib/python3/dist-packages (from recommonmark==0.6.0->-r requirements.txt (line 11)) (0.9.1)
Collecting scantree>=0.0.1
  Downloading scantree-0.0.1.tar.gz (13 kB)
  Preparing metadata (setup.py) ... done
Requirement already satisfied: websocket-client>=0.32.0 in /usr/lib/python3/dist-packages (from docker==4.2.0->-r requirements.txt (line 14)) (1.2.3)
Requirement already satisfied: six>=1.4.0 in /usr/lib/python3/dist-packages (from docker==4.2.0->-r requirements.txt (line 14)) (1.16.0)
Requirement already satisfied: pillow>=4.0.0 in /usr/lib/python3/dist-packages (from reportlab==3.5.64->-r requirements.txt (line 19)) (9.1.1)
Collecting cssselect2>=0.2.0
  Downloading cssselect2-0.6.0-py3-none-any.whl (15 kB)
Collecting tinycss2>=0.6.0
  Downloading tinycss2-1.1.1-py3-none-any.whl (21 kB)
Requirement already satisfied: webencodings in /usr/lib/python3/dist-packages (from cssselect2>=0.2.0->svglib==1.0.1->-r requirements.txt (line 20)) (0.5.1)
Collecting pathspec>=0.5.9
  Downloading pathspec-0.9.0-py2.py3-none-any.whl (31 kB)
WARNING: The candidate selected for download or install is a yanked version: 'reportlab' candidate (version 3.5.64 at https://files.pythonhosted.org/packages/81/b3/7aef68dceb7efe1a023ad1e882671c64d694b40288cd8cd2c10e75d05eb1/reportlab-3.5.64.tar.gz#sha256=d3e6de2f27009ebee3ca3cae835b7cefba16039a32550f2b560a5be3bf1676f5 (from https://pypi.org/simple/reportlab/) (requires-python:>=2.7, >=3.6, <4))      
Reason for being yanked: bug in the barcharts for mixed parallel / stacked bars                                                                                                                           
Building wheels for collected packages: websockets, donut-shellcode, reportlab, svglib, multidict, scantree                                                                                               
  Building wheel for websockets (setup.py) ... done
  Created wheel for websockets: filename=websockets-8.1-cp310-cp310-linux_x86_64.whl size=73343 sha256=ad63795736e3239fa422f14318fb082c9337d17f956ed182489de1fbd7ea0062
  Stored in directory: /home/lwj/.cache/pip/wheels/98/3f/c7/9993dad06631d258fb8a01677090029dbdbd884a6199c31483
  Building wheel for donut-shellcode (setup.py) ... done
  Created wheel for donut-shellcode: filename=donut_shellcode-0.9.2-cp310-cp310-linux_x86_64.whl size=56572 sha256=e003493591cf56599673e43415adc6b6fa799bdbb1f7fa21051b1087f343b22c
  Stored in directory: /home/lwj/.cache/pip/wheels/f8/41/15/431c8fa7e3e69357d559189a964789cc0b832778345b142019
  Building wheel for reportlab (setup.py) ... done
  Created wheel for reportlab: filename=reportlab-3.5.64-cp310-cp310-linux_x86_64.whl size=2207402 sha256=8bc092c13197bd03f661396e56cb32e6a72e46d94de28f478c0a95c0521cf0e1
  Stored in directory: /home/lwj/.cache/pip/wheels/55/56/89/f561fa35045ca7029c31396658f8fcfa3cd0c00a54bd31a004
  Building wheel for svglib (setup.py) ... done
  Created wheel for svglib: filename=svglib-1.0.1-py3-none-any.whl size=27185 sha256=172118f7af2eb5d0400eacaf8a57eb15631333e660e03f398ea814e3a561a4f4
  Stored in directory: /home/lwj/.cache/pip/wheels/83/be/22/0a6ca3b6d9244ad3c00191cfcbd6faa366cab7a779da2775eb
  Building wheel for multidict (pyproject.toml) ... error
  error: subprocess-exited-with-error
  
  × Building wheel for multidict (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [2036 lines of output]
	# ......为省略的无数行无用信息
	......
	......
	......
	......
	......
RecursionError: maximum recursion depth exceeded
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for multidict
ERROR: Could not build wheels for multidict, which is required to install pyproject.toml-based projects   

2.4 使用miniconda更换python版本

下载地址:https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh

参考自:https://blog.csdn.net/u011262253/article/details/88828229

2.4.1 添加可执行权限

┌──(lwj?kali)-[~/Desktop]
└─$ chmod +x Miniconda3-py38_4.12.0-Linux-x86_64.sh 

2.4.2 执行安装

┌──(lwj?kali)-[~/Desktop]
└─$ ./Miniconda3-py38_4.12.0-Linux-x86_64.sh 

Welcome to Miniconda3 py38_4.12.0

In order to continue the installation process, please review the license
agreement.
# 回车继续
Please, press ENTER to continue
>>> 
# 回车后会显示介绍文档,左下角出现“more”,使用回车或者空格查看,也可以直接按“q”退出进行下一步。
======================================
End User License Agreement - Miniconda
======================================

Copyright 2015-2022, Anaconda, Inc.

All rights reserved under the 3-clause BSD License:

This End User License Agreement (the "Agreement") is a legal agreement between you and Anaconda, Inc. ("Anaconda") and governs your use of Miniconda.

Subject to the terms of this Agreement, Anaconda hereby grants you a non-exclusive, non-transferable license to:

  * Install and use the Miniconda,
  * Modify and create derivative works of sample source code delivered in Miniconda subject to the Terms of Service for the Repository (as defined hereinafter) available at https://www.anaconda.com/term
s-of-service, and
  * Redistribute code files in source (if provided to you by Anaconda as source) and binary forms, with or without modification subject to the requirements set forth below.

Anaconda may, at its option, make available patches, workarounds or other updates to Miniconda. Unless the updates are provided with their separate governing terms, they are deemed part of Miniconda lic
ensed to you as provided in this Agreement. This Agreement does not entitle you to any support for Miniconda.

Anaconda reserves all rights not expressly granted to you in this Agreement.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribut
ion.
  * Neither the name of Anaconda nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

You acknowledge that, as between you and Anaconda, Anaconda owns all right, title, and interest, including all intellectual property rights, in and to Miniconda and, with respect to third-party products
 distributed with or through Miniconda, the applicable third-party licensors own all right, title and interest, including all intellectual property rights, in and to such products. If you send or transm
it any communications or materials to Anaconda suggesting or recommending changes to the software or documentation, including without limitation, new features or functionality relating thereto, or any c
omments, questions, suggestions or the like ("Feedback"), Anaconda is free to use such Feedback. You hereby assign to Anaconda all right, title, and interest in, and Anaconda is free to use, without any
 attribution or compensation to any party, any ideas, know-how, concepts, techniques or other intellectual property rights contained in the Feedback, for any purpose whatsoever, although Anaconda is not
 required to use any Feedback.

DISCLAIMER
==========

THIS SOFTWARE IS PROVIDED BY ANACONDA AND ITS CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTI
CULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ANACONDA BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBST
ITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR O
THERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

# 输入yes,回车继续
Do you accept the license terms? [yes|no]
[no] >>> yes

Miniconda3 will now be installed into this location:
# 默认安装目录
/home/lwj/miniconda3

  - Press ENTER to confirm the location
  - Press CTRL-C to abort the installation
  - Or specify a different location below

# 回车安装在默认目录,也可以输入自定义位置后回车继续
[/home/lwj/miniconda3] >>> 
PREFIX=/home/lwj/miniconda3
Unpacking payload ...
Collecting package metadata (current_repodata.json): done                                                                                                                                                 
Solving environment: done

## Package Plan ##

  environment location: /home/lwj/miniconda3

  added / updated specs:
    - _libgcc_mutex==0.1=main
    - _openmp_mutex==4.5=1_gnu
    - brotlipy==0.7.0=py38h27cfd23_1003
    - ca-certificates==2022.3.29=h06a4308_1
    - certifi==2021.10.8=py38h06a4308_2
    - cffi==1.15.0=py38hd667e15_1
    - charset-normalizer==2.0.4=pyhd3eb1b0_0
    - colorama==0.4.4=pyhd3eb1b0_0
    - conda-content-trust==0.1.1=pyhd3eb1b0_0
    - conda-package-handling==1.8.1=py38h7f8727e_0
    - conda==4.12.0=py38h06a4308_0
    - cryptography==36.0.0=py38h9ce1e76_0
    - idna==3.3=pyhd3eb1b0_0
    - ld_impl_linux-64==2.35.1=h7274673_9
    - libffi==3.3=he6710b0_2
    - libgcc-ng==9.3.0=h5101ec6_17
    - libgomp==9.3.0=h5101ec6_17
    - libstdcxx-ng==9.3.0=hd4cf53a_17
    - ncurses==6.3=h7f8727e_2
    - openssl==1.1.1n=h7f8727e_0
    - pip==21.2.4=py38h06a4308_0
    - pycosat==0.6.3=py38h7b6447c_1
    - pycparser==2.21=pyhd3eb1b0_0
    - pyopenssl==22.0.0=pyhd3eb1b0_0
    - pysocks==1.7.1=py38h06a4308_0
    - python==3.8.13=h12debd9_0
    - readline==8.1.2=h7f8727e_1
    - requests==2.27.1=pyhd3eb1b0_0
    - ruamel_yaml==0.15.100=py38h27cfd23_0
    - setuptools==61.2.0=py38h06a4308_0
    - six==1.16.0=pyhd3eb1b0_1
    - sqlite==3.38.2=hc218d9a_0
    - tk==8.6.11=h1ccaba5_0
    - tqdm==4.63.0=pyhd3eb1b0_0
    - urllib3==1.26.8=pyhd3eb1b0_0
    - wheel==0.37.1=pyhd3eb1b0_0
    - xz==5.2.5=h7b6447c_0
    - yaml==0.2.5=h7b6447c_0
    - zlib==1.2.12=h7f8727e_1


The following NEW packages will be INSTALLED:

  _libgcc_mutex      pkgs/main/linux-64::_libgcc_mutex-0.1-main
  _openmp_mutex      pkgs/main/linux-64::_openmp_mutex-4.5-1_gnu
  brotlipy           pkgs/main/linux-64::brotlipy-0.7.0-py38h27cfd23_1003
  ca-certificates    pkgs/main/linux-64::ca-certificates-2022.3.29-h06a4308_1
  certifi            pkgs/main/linux-64::certifi-2021.10.8-py38h06a4308_2
  cffi               pkgs/main/linux-64::cffi-1.15.0-py38hd667e15_1
  charset-normalizer pkgs/main/noarch::charset-normalizer-2.0.4-pyhd3eb1b0_0
  colorama           pkgs/main/noarch::colorama-0.4.4-pyhd3eb1b0_0
  conda              pkgs/main/linux-64::conda-4.12.0-py38h06a4308_0
  conda-content-tru~ pkgs/main/noarch::conda-content-trust-0.1.1-pyhd3eb1b0_0
  conda-package-han~ pkgs/main/linux-64::conda-package-handling-1.8.1-py38h7f8727e_0
  cryptography       pkgs/main/linux-64::cryptography-36.0.0-py38h9ce1e76_0
  idna               pkgs/main/noarch::idna-3.3-pyhd3eb1b0_0
  ld_impl_linux-64   pkgs/main/linux-64::ld_impl_linux-64-2.35.1-h7274673_9
  libffi             pkgs/main/linux-64::libffi-3.3-he6710b0_2
  libgcc-ng          pkgs/main/linux-64::libgcc-ng-9.3.0-h5101ec6_17
  libgomp            pkgs/main/linux-64::libgomp-9.3.0-h5101ec6_17
  libstdcxx-ng       pkgs/main/linux-64::libstdcxx-ng-9.3.0-hd4cf53a_17
  ncurses            pkgs/main/linux-64::ncurses-6.3-h7f8727e_2
  openssl            pkgs/main/linux-64::openssl-1.1.1n-h7f8727e_0
  pip                pkgs/main/linux-64::pip-21.2.4-py38h06a4308_0
  pycosat            pkgs/main/linux-64::pycosat-0.6.3-py38h7b6447c_1
  pycparser          pkgs/main/noarch::pycparser-2.21-pyhd3eb1b0_0
  pyopenssl          pkgs/main/noarch::pyopenssl-22.0.0-pyhd3eb1b0_0
  pysocks            pkgs/main/linux-64::pysocks-1.7.1-py38h06a4308_0
  python             pkgs/main/linux-64::python-3.8.13-h12debd9_0
  readline           pkgs/main/linux-64::readline-8.1.2-h7f8727e_1
  requests           pkgs/main/noarch::requests-2.27.1-pyhd3eb1b0_0
  ruamel_yaml        pkgs/main/linux-64::ruamel_yaml-0.15.100-py38h27cfd23_0
  setuptools         pkgs/main/linux-64::setuptools-61.2.0-py38h06a4308_0
  six                pkgs/main/noarch::six-1.16.0-pyhd3eb1b0_1
  sqlite             pkgs/main/linux-64::sqlite-3.38.2-hc218d9a_0
  tk                 pkgs/main/linux-64::tk-8.6.11-h1ccaba5_0
  tqdm               pkgs/main/noarch::tqdm-4.63.0-pyhd3eb1b0_0
  urllib3            pkgs/main/noarch::urllib3-1.26.8-pyhd3eb1b0_0
  wheel              pkgs/main/noarch::wheel-0.37.1-pyhd3eb1b0_0
  xz                 pkgs/main/linux-64::xz-5.2.5-h7b6447c_0
  yaml               pkgs/main/linux-64::yaml-0.2.5-h7b6447c_0
  zlib               pkgs/main/linux-64::zlib-1.2.12-h7f8727e_1


Preparing transaction: done
Executing transaction: done
installation finished.
Do you wish the installer to initialize Miniconda3
# 输入yes,回车继续
by running conda init? [yes|no]
[no] >>> yes
no change     /home/lwj/miniconda3/condabin/conda
no change     /home/lwj/miniconda3/bin/conda
no change     /home/lwj/miniconda3/bin/conda-env
no change     /home/lwj/miniconda3/bin/activate
no change     /home/lwj/miniconda3/bin/deactivate
no change     /home/lwj/miniconda3/etc/profile.d/conda.sh
no change     /home/lwj/miniconda3/etc/fish/conf.d/conda.fish
no change     /home/lwj/miniconda3/shell/condabin/Conda.psm1
no change     /home/lwj/miniconda3/shell/condabin/conda-hook.ps1
no change     /home/lwj/miniconda3/lib/python3.8/site-packages/xontrib/conda.xsh
no change     /home/lwj/miniconda3/etc/profile.d/conda.csh
modified      /home/lwj/.zshrc

==> For changes to take effect, close and re-open your current shell. <==

If you'd prefer that conda's base environment not be activated on startup, 
   set the auto_activate_base parameter to false: 

conda config --set auto_activate_base false

# 看到这行代表安装完成
Thank you for installing Miniconda3!

2.4.3 验证

打开新的终端,发现左上角出现(base),代表conda安装成功。

(base) ┌──(lwj?kali)-[~/Desktop/caldera]
└─$ 

2.4.4 使用conda查找支持的python版本

(base) ┌──(lwj?kali)-[~]
└─$ conda search --full --name python
Loading channels: done
# Name                       Version           Build  Channel             
python                        2.7.13     hac47a24_15  pkgs/main           
python                        2.7.13     heccc3f1_16  pkgs/main           
python                        2.7.13     hfff3488_13  pkgs/main           
python                        2.7.14     h1571d57_29  pkgs/main           
python                        2.7.14     h1571d57_30  pkgs/main           
python                        2.7.14     h1571d57_31  pkgs/main           
python                        2.7.14     h1aa7481_19  pkgs/main           
python                        2.7.14     h435b27a_18  pkgs/main           
python                        2.7.14     h89e7a4a_22  pkgs/main           
python                        2.7.14     h91f54f5_26  pkgs/main           
python                        2.7.14     h931c8b0_15  pkgs/main           
python                        2.7.14     h9b67528_20  pkgs/main           
python                        2.7.14     ha6fc286_23  pkgs/main           
python                        2.7.14     hc2b0042_21  pkgs/main           
python                        2.7.14     hdd48546_24  pkgs/main           
python                        2.7.14     hf918d8d_16  pkgs/main           
python                        2.7.15      h1571d57_0  pkgs/main           
python                        2.7.15      h77bded6_1  pkgs/main           
python                        2.7.15      h77bded6_2  pkgs/main           
python                        2.7.15      h9bab390_2  pkgs/main           
python                        2.7.15      h9bab390_4  pkgs/main           
python                        2.7.15      h9bab390_6  pkgs/main           
python                        2.7.16      h8b3fad2_1  pkgs/main           
python                        2.7.16      h8b3fad2_2  pkgs/main           
python                        2.7.16      h8b3fad2_3  pkgs/main           
python                        2.7.16      h8b3fad2_4  pkgs/main           
python                        2.7.16      h8b3fad2_5  pkgs/main           
python                        2.7.16      h9bab390_0  pkgs/main           
python                        2.7.16      h9bab390_6  pkgs/main           
python                        2.7.16      h9bab390_7  pkgs/main           
python                        2.7.17      h9bab390_0  pkgs/main           
python                        2.7.18      h02575d3_0  pkgs/main           
python                        2.7.18      h15b4118_1  pkgs/main           
python                        2.7.18      ha1903f6_2  pkgs/main           
python                         3.5.4     h00c01ad_19  pkgs/main           
python                         3.5.4     h0b4c808_22  pkgs/main           
python                         3.5.4     h2170f06_12  pkgs/main           
python                         3.5.4     h3075507_18  pkgs/main           
python                         3.5.4     h417fded_24  pkgs/main           
python                         3.5.4     h56e0582_23  pkgs/main           
python                         3.5.4     h72f0b78_15  pkgs/main           
python                         3.5.4     hb43c6bb_21  pkgs/main           
python                         3.5.4     hc053d89_14  pkgs/main           
python                         3.5.4     hc3d631a_27  pkgs/main           
python                         3.5.4     he2c66cf_20  pkgs/main           
python                         3.5.5      hc3d631a_0  pkgs/main           
python                         3.5.5      hc3d631a_1  pkgs/main           
python                         3.5.5      hc3d631a_3  pkgs/main           
python                         3.5.5      hc3d631a_4  pkgs/main           
python                         3.5.6      h12debd9_1  pkgs/main           
python                         3.5.6      hc3d631a_0  pkgs/main           
python                         3.6.2     h02fb82a_12  pkgs/main           
python                         3.6.2     h0b30769_14  pkgs/main           
python                         3.6.2     h33255ae_18  pkgs/main           
python                         3.6.2     hca45abc_19  pkgs/main           
python                         3.6.2     hdfe5801_15  pkgs/main           
python                         3.6.3      h0ef2715_3  pkgs/main           
python                         3.6.3      h1284df2_4  pkgs/main           
python                         3.6.3      h6c0c0dc_5  pkgs/main           
python                         3.6.3      hc9025b9_1  pkgs/main           
python                         3.6.3      hcad60d5_0  pkgs/main           
python                         3.6.3      hefd0734_2  pkgs/main           
python                         3.6.4      hc3d631a_0  pkgs/main           
python                         3.6.4      hc3d631a_1  pkgs/main           
python                         3.6.4      hc3d631a_3  pkgs/main           
python                         3.6.5      hc3d631a_0  pkgs/main           
python                         3.6.5      hc3d631a_1  pkgs/main           
python                         3.6.5      hc3d631a_2  pkgs/main           
python                         3.6.6      h6e4f718_2  pkgs/main           
python                         3.6.6      hc3d631a_0  pkgs/main           
python                         3.6.7      h0371630_0  pkgs/main           
python                         3.6.8      h0371630_0  pkgs/main           
python                         3.6.9      h265db76_0  pkgs/main           
python                        3.6.10      h0371630_0  pkgs/main           
python                        3.6.10      h191fe78_1  pkgs/main           
python                        3.6.10      h7579374_2  pkgs/main           
python                        3.6.10      hcf32534_1  pkgs/main           
python                        3.6.12      hcff3b4d_2  pkgs/main           
python                        3.6.13      h12debd9_1  pkgs/main           
python                        3.6.13      hdb3f193_0  pkgs/main           
python                         3.7.0      h6e4f718_3  pkgs/main           
python                         3.7.0      hc3d631a_0  pkgs/main           
python                         3.7.1      h0371630_3  pkgs/main           
python                         3.7.1      h0371630_7  pkgs/main           
python                         3.7.2      h0371630_0  pkgs/main           
python                         3.7.3      h0371630_0  pkgs/main           
python                         3.7.4      h265db76_0  pkgs/main           
python                         3.7.4      h265db76_1  pkgs/main           
python                         3.7.5      h0371630_0  pkgs/main           
python                         3.7.6      h0371630_2  pkgs/main           
python                         3.7.7 h191fe78_0_cpython  pkgs/main           
python                         3.7.7 hcf32534_0_cpython  pkgs/main           
python                         3.7.7      hcff3b4d_4  pkgs/main           
python                         3.7.7      hcff3b4d_5  pkgs/main           
python                         3.7.9      h7579374_0  pkgs/main           
python                        3.7.10      h12debd9_4  pkgs/main           
python                        3.7.10      hdb3f193_0  pkgs/main           
python                        3.7.11      h12debd9_0  pkgs/main           
python                        3.7.13      h12debd9_0  pkgs/main           
python                         3.8.0      h0371630_0  pkgs/main           
python                         3.8.0      h0371630_1  pkgs/main           
python                         3.8.0      h0371630_2  pkgs/main           
python                         3.8.1      h0371630_1  pkgs/main           
python                         3.8.2      h191fe78_0  pkgs/main           
python                         3.8.2      hcf32534_0  pkgs/main           
python                         3.8.2     hcff3b4d_13  pkgs/main           
python                         3.8.2     hcff3b4d_14  pkgs/main           
python                         3.8.3      hcff3b4d_0  pkgs/main           
python                         3.8.3      hcff3b4d_2  pkgs/main           
python                         3.8.5      h7579374_1  pkgs/main           
python                         3.8.5      hcff3b4d_0  pkgs/main           
python                         3.8.8      hdb3f193_4  pkgs/main           
python                         3.8.8      hdb3f193_5  pkgs/main           
python                        3.8.10      h12debd9_8  pkgs/main           
python                        3.8.10      hdb3f193_7  pkgs/main           
python                        3.8.11 h12debd9_0_cpython  pkgs/main           
python                        3.8.12      h12debd9_0  pkgs/main           
python                        3.8.13      h12debd9_0  pkgs/main           
python                         3.9.0      hcff3b4d_1  pkgs/main           
python                         3.9.0      hdb3f193_2  pkgs/main           
python                         3.9.1      hdb3f193_2  pkgs/main           
python                         3.9.2      hdb3f193_0  pkgs/main           
python                         3.9.4      hdb3f193_0  pkgs/main           
python                         3.9.5      h12debd9_4  pkgs/main           
python                         3.9.5      hdb3f193_3  pkgs/main           
python                         3.9.6      h12debd9_0  pkgs/main           
python                         3.9.6      h12debd9_1  pkgs/main           
python                         3.9.7      h12debd9_1  pkgs/main           
python                        3.9.11      h12debd9_1  pkgs/main           
python                        3.9.11      h12debd9_2  pkgs/main           
python                        3.9.12      h12debd9_0  pkgs/main           
python                        3.9.12      h12debd9_1  pkgs/main           
python                        3.10.0      h12debd9_0  pkgs/main           
python                        3.10.0      h12debd9_1  pkgs/main           
python                        3.10.0      h12debd9_2  pkgs/main           
python                        3.10.0      h12debd9_4  pkgs/main           
python                        3.10.0      h12debd9_5  pkgs/main           
python                        3.10.0      h151d27f_3  pkgs/main           
python                        3.10.3      h12debd9_5  pkgs/main           
python                        3.10.4      h12debd9_0  pkgs/main  

2.4.5 安装python3.9.12

(base) ┌──(lwj?kali)-[~]
└─$ conda install python=3.9.12      
Collecting package metadata (current_repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: /home/lwj/miniconda3

  added / updated specs:
    - python=3.9.12


The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    brotlipy-0.7.0             |py39h27cfd23_1003         324 KB
    ca-certificates-2022.4.26  |       h06a4308_0         124 KB
    certifi-2022.5.18.1        |   py39h06a4308_0         147 KB
    cffi-1.15.0                |   py39hd667e15_1         225 KB
    conda-4.13.0               |   py39h06a4308_0         895 KB
    conda-package-handling-1.8.1|   py39h7f8727e_0         889 KB
    cryptography-37.0.1        |   py39h9ce1e76_0         1.3 MB
    openssl-1.1.1o             |       h7f8727e_0         2.5 MB
    pip-21.2.4                 |   py39h06a4308_0         1.8 MB
    pycosat-0.6.3              |   py39h27cfd23_0          82 KB
    pysocks-1.7.1              |   py39h06a4308_0          31 KB
    python-3.9.12              |       h12debd9_0        19.1 MB
    ruamel_yaml-0.15.100       |   py39h27cfd23_0         260 KB
    setuptools-61.2.0          |   py39h06a4308_0        1011 KB
    tzdata-2022a               |       hda174b7_0         109 KB
    ------------------------------------------------------------
                                           Total:        28.7 MB

The following NEW packages will be INSTALLED:

  tzdata             pkgs/main/noarch::tzdata-2022a-hda174b7_0

The following packages will be UPDATED:

  ca-certificates                      2022.3.29-h06a4308_1 --> 2022.4.26-h06a4308_0
  certifi                          2021.10.8-py38h06a4308_2 --> 2022.5.18.1-py39h06a4308_0
  conda                               4.12.0-py38h06a4308_0 --> 4.13.0-py39h06a4308_0
  cryptography                        36.0.0-py38h9ce1e76_0 --> 37.0.1-py39h9ce1e76_0
  openssl                                 1.1.1n-h7f8727e_0 --> 1.1.1o-h7f8727e_0
  python                                  3.8.13-h12debd9_0 --> 3.9.12-h12debd9_0

The following packages will be DOWNGRADED:

  brotlipy                          0.7.0-py38h27cfd23_1003 --> 0.7.0-py39h27cfd23_1003
  cffi                                1.15.0-py38hd667e15_1 --> 1.15.0-py39hd667e15_1
  conda-package-han~                   1.8.1-py38h7f8727e_0 --> 1.8.1-py39h7f8727e_0
  pip                                 21.2.4-py38h06a4308_0 --> 21.2.4-py39h06a4308_0
  pycosat                              0.6.3-py38h7b6447c_1 --> 0.6.3-py39h27cfd23_0
  pysocks                              1.7.1-py38h06a4308_0 --> 1.7.1-py39h06a4308_0
  ruamel_yaml                       0.15.100-py38h27cfd23_0 --> 0.15.100-py39h27cfd23_0
  setuptools                          61.2.0-py38h06a4308_0 --> 61.2.0-py39h06a4308_0


# 输入y,进行安装
Proceed ([y]/n)? y


Downloading and Extracting Packages
pip-21.2.4           | 1.8 MB    | ###################################################################################################### | 100% 
conda-4.13.0         | 895 KB    | ###################################################################################################### | 100% 
cryptography-37.0.1  | 1.3 MB    | ###################################################################################################### | 100% 
cffi-1.15.0          | 225 KB    | ###################################################################################################### | 100% 
conda-package-handli | 889 KB    | ###################################################################################################### | 100% 
pycosat-0.6.3        | 82 KB     | ###################################################################################################### | 100% 
certifi-2022.5.18.1  | 147 KB    | ###################################################################################################### | 100% 
python-3.9.12        | 19.1 MB   | ###################################################################################################### | 100% 
ca-certificates-2022 | 124 KB    | ###################################################################################################### | 100% 
tzdata-2022a         | 109 KB    | ###################################################################################################### | 100% 
ruamel_yaml-0.15.100 | 260 KB    | ###################################################################################################### | 100% 
openssl-1.1.1o       | 2.5 MB    | ###################################################################################################### | 100% 
pysocks-1.7.1        | 31 KB     | ###################################################################################################### | 100% 
setuptools-61.2.0    | 1011 KB   | ###################################################################################################### | 100% 
brotlipy-0.7.0       | 324 KB    | ###################################################################################################### | 100% 
Preparing transaction: done
Verifying transaction: done
Executing transaction: done

2.4.6 查看当前pip3的版本

(base) ┌──(lwj?kali)-[~/Desktop/caldera]
└─$ pip3 -V
pip 21.2.4 from /home/lwj/miniconda3/lib/python3.9/site-packages/pip (python 3.9)

2.5 开始安装caldera

(base) ┌──(lwj?kali)-[~/Desktop/caldera]
└─$ pip3 install -r requirements.txt 
Collecting aiohttp-jinja2==1.2.0
  Using cached aiohttp_jinja2-1.2.0-py3-none-any.whl (10 kB)
Collecting aiohttp==3.6.2
  Using cached aiohttp-3.6.2-py3-none-any.whl (441 kB)
Collecting aiohttp_session==2.9.0
  Using cached aiohttp_session-2.9.0-py3-none-any.whl (14 kB)
Collecting aiohttp-security==0.4.0
  Using cached aiohttp_security-0.4.0-py3-none-any.whl (6.9 kB)
Collecting jinja2==2.10.3
  Using cached Jinja2-2.10.3-py2.py3-none-any.whl (125 kB)
Collecting pyyaml>=5.1
  Downloading PyYAML-6.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (661 kB)
     |████████████████████████████████| 661 kB 52 kB/s 
Requirement already satisfied: cryptography>=3.2 in /home/lwj/miniconda3/lib/python3.9/site-packages (from -r requirements.txt (line 7)) (37.0.1)
Collecting websockets==8.1
  Using cached websockets-8.1.tar.gz (58 kB)
Collecting Sphinx==3.0.4
  Using cached Sphinx-3.0.4-py3-none-any.whl (2.8 MB)
Collecting sphinx_rtd_theme==0.4.3
  Using cached sphinx_rtd_theme-0.4.3-py2.py3-none-any.whl (6.4 MB)
Collecting recommonmark==0.6.0
  Using cached recommonmark-0.6.0-py2.py3-none-any.whl (10 kB)
Collecting marshmallow==3.5.1
  Using cached marshmallow-3.5.1-py2.py3-none-any.whl (45 kB)
Collecting dirhash==0.2.0
  Using cached dirhash-0.2.0-py3-none-any.whl (12 kB)
Collecting docker==4.2.0
  Using cached docker-4.2.0-py2.py3-none-any.whl (143 kB)
Collecting donut-shellcode==0.9.2
  Using cached donut-shellcode-0.9.2.tar.gz (149 kB)
Collecting marshmallow-enum==1.5.1
  Downloading marshmallow_enum-1.5.1-py2.py3-none-any.whl (4.2 kB)
Collecting ldap3==2.8.1
  Downloading ldap3-2.8.1-py2.py3-none-any.whl (423 kB)
     |████████████████████████████████| 423 kB 49 kB/s 
Collecting lxml~=4.6.2
  Downloading lxml-4.6.5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_24_x86_64.whl (6.9 MB)
     |████████████████████████████████| 6.9 MB 57 kB/s 
Collecting reportlab==3.5.64
  Downloading reportlab-3.5.64-cp39-cp39-manylinux2010_x86_64.whl (2.6 MB)
     |████████████████████████████████| 2.6 MB 43 kB/s 
Collecting svglib==1.0.1
  Using cached svglib-1.0.1.tar.gz (900 kB)
Collecting Markdown==3.3.3
  Using cached Markdown-3.3.3-py3-none-any.whl (96 kB)
Collecting dnspython==2.1.0
  Using cached dnspython-2.1.0-py3-none-any.whl (241 kB)
Collecting yarl<2.0,>=1.0
  Downloading yarl-1.7.2-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (304 kB)
     |████████████████████████████████| 304 kB 96 kB/s 
Collecting multidict<5.0,>=4.5
  Using cached multidict-4.7.6.tar.gz (50 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Collecting chardet<4.0,>=2.0
  Using cached chardet-3.0.4-py2.py3-none-any.whl (133 kB)
Collecting async-timeout<4.0,>=3.0
  Using cached async_timeout-3.0.1-py3-none-any.whl (8.2 kB)
Collecting attrs>=17.3.0
  Downloading attrs-21.4.0-py2.py3-none-any.whl (60 kB)
     |████████████████████████████████| 60 kB 46 kB/s 
Collecting MarkupSafe>=0.23
  Downloading MarkupSafe-2.1.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (25 kB)
Collecting docutils>=0.12
  Using cached docutils-0.18.1-py2.py3-none-any.whl (570 kB)
Collecting sphinxcontrib-devhelp
  Using cached sphinxcontrib_devhelp-1.0.2-py2.py3-none-any.whl (84 kB)
Collecting sphinxcontrib-applehelp
  Using cached sphinxcontrib_applehelp-1.0.2-py2.py3-none-any.whl (121 kB)
Collecting imagesize
  Using cached imagesize-1.3.0-py2.py3-none-any.whl (5.2 kB)
Collecting sphinxcontrib-jsmath
  Using cached sphinxcontrib_jsmath-1.0.1-py2.py3-none-any.whl (5.1 kB)
Collecting Pygments>=2.0
  Downloading Pygments-2.12.0-py3-none-any.whl (1.1 MB)
     |████████████████████████████████| 1.1 MB 28 kB/s 
Collecting alabaster<0.8,>=0.7
  Using cached alabaster-0.7.12-py2.py3-none-any.whl (14 kB)
Requirement already satisfied: setuptools in /home/lwj/miniconda3/lib/python3.9/site-packages (from Sphinx==3.0.4->-r requirements.txt (line 9)) (61.2.0)
Collecting sphinxcontrib-htmlhelp
  Using cached sphinxcontrib_htmlhelp-2.0.0-py2.py3-none-any.whl (100 kB)
Requirement already satisfied: requests>=2.5.0 in /home/lwj/miniconda3/lib/python3.9/site-packages (from Sphinx==3.0.4->-r requirements.txt (line 9)) (2.27.1)
Collecting sphinxcontrib-serializinghtml
  Using cached sphinxcontrib_serializinghtml-1.1.5-py2.py3-none-any.whl (94 kB)
Collecting sphinxcontrib-qthelp
  Using cached sphinxcontrib_qthelp-1.0.3-py2.py3-none-any.whl (90 kB)
Collecting snowballstemmer>=1.1
  Using cached snowballstemmer-2.2.0-py2.py3-none-any.whl (93 kB)
Collecting babel>=1.3
  Downloading Babel-2.10.3-py3-none-any.whl (9.5 MB)
     |████████████████████████████████| 9.5 MB 31 kB/s 
Collecting packaging
  Downloading packaging-21.3-py3-none-any.whl (40 kB)
     |████████████████████████████████| 40 kB 30 kB/s 
Collecting commonmark>=0.8.1
  Downloading commonmark-0.9.1-py2.py3-none-any.whl (51 kB)
     |████████████████████████████████| 51 kB 75 kB/s 
Collecting scantree>=0.0.1
  Using cached scantree-0.0.1.tar.gz (13 kB)
Requirement already satisfied: six>=1.4.0 in /home/lwj/miniconda3/lib/python3.9/site-packages (from docker==4.2.0->-r requirements.txt (line 14)) (1.16.0)
Collecting websocket-client>=0.32.0
  Downloading websocket_client-1.3.2-py3-none-any.whl (54 kB)
     |████████████████████████████████| 54 kB 71 kB/s 
Collecting pyasn1>=0.4.6
  Downloading pyasn1-0.4.8-py2.py3-none-any.whl (77 kB)
     |████████████████████████████████| 77 kB 95 kB/s 
Collecting pillow>=4.0.0
  Downloading Pillow-9.1.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.1 MB)
     |████████████████████████████████| 3.1 MB 44 kB/s 
Collecting tinycss2>=0.6.0
  Using cached tinycss2-1.1.1-py3-none-any.whl (21 kB)
Collecting cssselect2>=0.2.0
  Using cached cssselect2-0.6.0-py3-none-any.whl (15 kB)
Requirement already satisfied: cffi>=1.12 in /home/lwj/miniconda3/lib/python3.9/site-packages (from cryptography>=3.2->-r requirements.txt (line 7)) (1.15.0)
Collecting pytz>=2015.7
  Downloading pytz-2022.1-py2.py3-none-any.whl (503 kB)
     |████████████████████████████████| 503 kB 44 kB/s 
Requirement already satisfied: pycparser in /home/lwj/miniconda3/lib/python3.9/site-packages (from cffi>=1.12->cryptography>=3.2->-r requirements.txt (line 7)) (2.21)
Collecting webencodings
  Downloading webencodings-0.5.1-py2.py3-none-any.whl (11 kB)
Requirement already satisfied: certifi>=2017.4.17 in /home/lwj/miniconda3/lib/python3.9/site-packages (from requests>=2.5.0->Sphinx==3.0.4->-r requirements.txt (line 9)) (2022.5.18.1)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /home/lwj/miniconda3/lib/python3.9/site-packages (from requests>=2.5.0->Sphinx==3.0.4->-r requirements.txt (line 9)) (1.26.8)
Requirement already satisfied: idna<4,>=2.5 in /home/lwj/miniconda3/lib/python3.9/site-packages (from requests>=2.5.0->Sphinx==3.0.4->-r requirements.txt (line 9)) (3.3)
Requirement already satisfied: charset-normalizer~=2.0.0 in /home/lwj/miniconda3/lib/python3.9/site-packages (from requests>=2.5.0->Sphinx==3.0.4->-r requirements.txt (line 9)) (2.0.4)
Collecting pathspec>=0.5.9
  Using cached pathspec-0.9.0-py2.py3-none-any.whl (31 kB)
Collecting pyparsing!=3.0.5,>=2.0.2
  Downloading pyparsing-3.0.9-py3-none-any.whl (98 kB)
     |████████████████████████████████| 98 kB 55 kB/s 
WARNING: The candidate selected for download or install is a yanked version: 'reportlab' candidate (version 3.5.64 at https://files.pythonhosted.org/packages/8a/87/6066cb138dfb83381a17d90b0d334399fe25bc0c1df479c33bf064369910/reportlab-3.5.64-cp39-cp39-manylinux2010_x86_64.whl#sha256=576633e85335375f20f9430b514fc2d2c6c6a421264ad58a2452ad84787f13f6 (from https://pypi.org/simple/reportlab/) (requires-python:>=2.7, >=3.6, <4))                                                                                                                                                                                    
Reason for being yanked: bug in the barcharts for mixed parallel / stacked bars                                                                                                                           
Building wheels for collected packages: websockets, donut-shellcode, svglib, multidict, scantree
  Building wheel for websockets (setup.py) ... done
  Created wheel for websockets: filename=websockets-8.1-cp39-cp39-linux_x86_64.whl size=66062 sha256=22bff56a6a32bcf6d2618e4080797e74e11588645756bc75bc18ed4a72169e0a
  Stored in directory: /home/lwj/.cache/pip/wheels/d8/b9/a0/b97b211aeda2ebd6ac2e43fc300d308dbf1f9df520ed390cae
  Building wheel for donut-shellcode (setup.py) ... done
  Created wheel for donut-shellcode: filename=donut_shellcode-0.9.2-cp39-cp39-linux_x86_64.whl size=28439 sha256=cb3762bbd31e9e6392c99bf5742b5e4815ef926cce4b7909f9e9db99998062b0
  Stored in directory: /home/lwj/.cache/pip/wheels/ac/72/45/1a77c4737812b5635cd958224c0ff623ebcef62c15ef083bab
  Building wheel for svglib (setup.py) ... done
  Created wheel for svglib: filename=svglib-1.0.1-py3-none-any.whl size=27185 sha256=2ed634c320e020dcef02b1cc09754a2c51f3e74be107ec70f28dd51cc52aafdb
  Stored in directory: /home/lwj/.cache/pip/wheels/69/67/86/c1c61a7716f12c9d328e91af68a6221d271f3e2ef8ad83ad8b
  Building wheel for multidict (PEP 517) ... done
  Created wheel for multidict: filename=multidict-4.7.6-cp39-cp39-linux_x86_64.whl size=54225 sha256=589696bc82c42595554201e9d352d59f67c1541cc291cbe36d6fa9dddbcc9cd1
  Stored in directory: /home/lwj/.cache/pip/wheels/43/3a/a8/d7bf95ae763a7a2057cb502ff2da094763c166f253624afc63
  Building wheel for scantree (setup.py) ... done
  Created wheel for scantree: filename=scantree-0.0.1-py3-none-any.whl size=14419 sha256=646ff8c9d85d80081477588fc4ce0e4754fa5e2240ebb7a3c025615bbce219f7
  Stored in directory: /home/lwj/.cache/pip/wheels/c8/26/13/55fa20086ebc28cd331d15d2da71e3dedd50202c381f0a224f
Successfully built websockets donut-shellcode svglib multidict scantree
Installing collected packages: webencodings, pytz, pyparsing, multidict, MarkupSafe, yarl, tinycss2, sphinxcontrib-serializinghtml, sphinxcontrib-qthelp, sphinxcontrib-jsmath, sphinxcontrib-htmlhelp, sphinxcontrib-devhelp, sphinxcontrib-applehelp, snowballstemmer, Pygments, pillow, pathspec, packaging, jinja2, imagesize, docutils, chardet, babel, attrs, async-timeout, alabaster, websocket-client, Sphinx, scantree, reportlab, pyasn1, marshmallow, lxml, cssselect2, commonmark, aiohttp, websockets, svglib, sphinx-rtd-theme, recommonmark, pyyaml, marshmallow-enum, Markdown, ldap3, donut-shellcode, docker, dnspython, dirhash, aiohttp-session, aiohttp-security, aiohttp-jinja2
Successfully installed Markdown-3.3.3 MarkupSafe-2.1.1 Pygments-2.12.0 Sphinx-3.0.4 aiohttp-3.6.2 aiohttp-jinja2-1.2.0 aiohttp-security-0.4.0 aiohttp-session-2.9.0 alabaster-0.7.12 async-timeout-3.0.1 attrs-21.4.0 babel-2.10.3 chardet-3.0.4 commonmark-0.9.1 cssselect2-0.6.0 dirhash-0.2.0 dnspython-2.1.0 docker-4.2.0 docutils-0.18.1 donut-shellcode-0.9.2 imagesize-1.3.0 jinja2-2.10.3 ldap3-2.8.1 lxml-4.6.5 marshmallow-3.5.1 marshmallow-enum-1.5.1 multidict-4.7.6 packaging-21.3 pathspec-0.9.0 pillow-9.1.1 pyasn1-0.4.8 pyparsing-3.0.9 pytz-2022.1 pyyaml-6.0 recommonmark-0.6.0 reportlab-3.5.64 scantree-0.0.1 snowballstemmer-2.2.0 sphinx-rtd-theme-0.4.3 sphinxcontrib-applehelp-1.0.2 sphinxcontrib-devhelp-1.0.2 sphinxcontrib-htmlhelp-2.0.0 sphinxcontrib-jsmath-1.0.1 sphinxcontrib-qthelp-1.0.3 sphinxcontrib-serializinghtml-1.1.5 svglib-1.0.1 tinycss2-1.1.1 webencodings-0.5.1 websocket-client-1.3.2 websockets-8.1 yarl-1.7.2

3 运行

3.1 初次运行提示缺少模块

一开始下载的安装文件有可能会有缺失,我在执行的时候提示缺少aiohttp_apispec模块。

(base) ┌──(lwj?kali)-[~/Desktop/caldera]
└─$ python3 server.py --insecure
Traceback (most recent call last):
  File "/home/lwj/Desktop/caldera/server.py", line 8, in <module>
    import aiohttp_apispec
ModuleNotFoundError: No module named 'aiohttp_apispec'

3.2 使用pip3安装缺少的模块

(base) ┌──(lwj?kali)-[~/Desktop/caldera]
└─$ pip3 install aiohttp_apispec        
Collecting aiohttp_apispec
  Downloading aiohttp-apispec-2.2.3.tar.gz (2.7 MB)
     |████████████████████████████████| 2.7 MB 39 kB/s 
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Requirement already satisfied: jinja2 in /home/lwj/miniconda3/lib/python3.9/site-packages (from aiohttp_apispec) (2.10.3)
Requirement already satisfied: aiohttp<4.0,>=3.0.1 in /home/lwj/miniconda3/lib/python3.9/site-packages (from aiohttp_apispec) (3.6.2)
Collecting webargs<6.0
  Downloading webargs-5.5.3-py3-none-any.whl (29 kB)
Collecting apispec<4.0,>=3.0.0
  Downloading apispec-3.3.2-py2.py3-none-any.whl (27 kB)
Requirement already satisfied: multidict<5.0,>=4.5 in /home/lwj/miniconda3/lib/python3.9/site-packages (from aiohttp<4.0,>=3.0.1->aiohttp_apispec) (4.7.6)
Requirement already satisfied: chardet<4.0,>=2.0 in /home/lwj/miniconda3/lib/python3.9/site-packages (from aiohttp<4.0,>=3.0.1->aiohttp_apispec) (3.0.4)
Requirement already satisfied: async-timeout<4.0,>=3.0 in /home/lwj/miniconda3/lib/python3.9/site-packages (from aiohttp<4.0,>=3.0.1->aiohttp_apispec) (3.0.1)
Requirement already satisfied: yarl<2.0,>=1.0 in /home/lwj/miniconda3/lib/python3.9/site-packages (from aiohttp<4.0,>=3.0.1->aiohttp_apispec) (1.7.2)
Requirement already satisfied: attrs>=17.3.0 in /home/lwj/miniconda3/lib/python3.9/site-packages (from aiohttp<4.0,>=3.0.1->aiohttp_apispec) (21.4.0)
Requirement already satisfied: marshmallow>=2.15.2 in /home/lwj/miniconda3/lib/python3.9/site-packages (from webargs<6.0->aiohttp_apispec) (3.5.1)
Requirement already satisfied: idna>=2.0 in /home/lwj/miniconda3/lib/python3.9/site-packages (from yarl<2.0,>=1.0->aiohttp<4.0,>=3.0.1->aiohttp_apispec) (3.3)
Requirement already satisfied: MarkupSafe>=0.23 in /home/lwj/miniconda3/lib/python3.9/site-packages (from jinja2->aiohttp_apispec) (2.1.1)
Building wheels for collected packages: aiohttp-apispec
  Building wheel for aiohttp-apispec (PEP 517) ... done
  Created wheel for aiohttp-apispec: filename=aiohttp_apispec-2.2.3-py3-none-any.whl size=2672623 sha256=6ae712a9a11a08c97517a0f0dcb4e3942436625c22be4d7d1925c18982fdbedc
  Stored in directory: /home/lwj/.cache/pip/wheels/71/6a/f9/f47067ec6adc967c2ebf04a8fa6c3fd65ae38600a550d490b8
Successfully built aiohttp-apispec
Installing collected packages: webargs, apispec, aiohttp-apispec
Successfully installed aiohttp-apispec-2.2.3 apispec-3.3.2 webargs-5.5.3

3.3 再次安装,确保没有遗漏

(base) ┌──(lwj?kali)-[~/Desktop/caldera]
└─$ pip3 install -r requirements.txt    
Ignoring cryptography: markers 'python_version <= "3.7"' don't match your environment
Ignoring aioftp: markers 'python_version < "3.7"' don't match your environment
Collecting aiohttp-jinja2==1.5.0
  Downloading aiohttp_jinja2-1.5-py3-none-any.whl (11 kB)
Collecting aiohttp==3.8.1
  Downloading aiohttp-3.8.1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (1.2 MB)
     |████████████████████████████████| 1.2 MB 592 kB/s 
Requirement already satisfied: aiohttp_session==2.9.0 in /home/lwj/miniconda3/lib/python3.9/site-packages (from -r requirements.txt (line 3)) (2.9.0)
Requirement already satisfied: aiohttp-security==0.4.0 in /home/lwj/miniconda3/lib/python3.9/site-packages (from -r requirements.txt (line 4)) (0.4.0)
Requirement already satisfied: aiohttp-apispec==2.2.3 in /home/lwj/miniconda3/lib/python3.9/site-packages (from -r requirements.txt (line 5)) (2.2.3)
Collecting jinja2==3.0.3
  Downloading Jinja2-3.0.3-py3-none-any.whl (133 kB)
     |████████████████████████████████| 133 kB 858 kB/s 
Requirement already satisfied: pyyaml>=5.1 in /home/lwj/miniconda3/lib/python3.9/site-packages (from -r requirements.txt (line 7)) (6.0)
Requirement already satisfied: cryptography>=3.2 in /home/lwj/miniconda3/lib/python3.9/site-packages (from -r requirements.txt (line 9)) (37.0.1)
Collecting websockets>=10.3
  Downloading websockets-10.3-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (111 kB)
     |████████████████████████████████| 111 kB 722 kB/s 
Requirement already satisfied: Sphinx==3.0.4 in /home/lwj/miniconda3/lib/python3.9/site-packages (from -r requirements.txt (line 11)) (3.0.4)
Collecting docutils==0.16
  Downloading docutils-0.16-py2.py3-none-any.whl (548 kB)
     |████████████████████████████████| 548 kB 496 kB/s 
Requirement already satisfied: sphinx_rtd_theme==0.4.3 in /home/lwj/miniconda3/lib/python3.9/site-packages (from -r requirements.txt (line 13)) (0.4.3)
Requirement already satisfied: recommonmark==0.6.0 in /home/lwj/miniconda3/lib/python3.9/site-packages (from -r requirements.txt (line 14)) (0.6.0)
Requirement already satisfied: marshmallow==3.5.1 in /home/lwj/miniconda3/lib/python3.9/site-packages (from -r requirements.txt (line 15)) (3.5.1)
Requirement already satisfied: dirhash==0.2.0 in /home/lwj/miniconda3/lib/python3.9/site-packages (from -r requirements.txt (line 16)) (0.2.0)
Requirement already satisfied: docker==4.2.0 in /home/lwj/miniconda3/lib/python3.9/site-packages (from -r requirements.txt (line 17)) (4.2.0)
Requirement already satisfied: donut-shellcode==0.9.2 in /home/lwj/miniconda3/lib/python3.9/site-packages (from -r requirements.txt (line 18)) (0.9.2)
Requirement already satisfied: marshmallow-enum==1.5.1 in /home/lwj/miniconda3/lib/python3.9/site-packages (from -r requirements.txt (line 19)) (1.5.1)
Requirement already satisfied: ldap3==2.8.1 in /home/lwj/miniconda3/lib/python3.9/site-packages (from -r requirements.txt (line 20)) (2.8.1)
Requirement already satisfied: lxml~=4.6.2 in /home/lwj/miniconda3/lib/python3.9/site-packages (from -r requirements.txt (line 21)) (4.6.5)
Collecting reportlab==3.5.67
  Downloading reportlab-3.5.67-cp39-cp39-manylinux2010_x86_64.whl (2.6 MB)
     |████████████████████████████████| 2.6 MB 1.6 MB/s 
Requirement already satisfied: svglib==1.0.1 in /home/lwj/miniconda3/lib/python3.9/site-packages (from -r requirements.txt (line 23)) (1.0.1)
Requirement already satisfied: Markdown==3.3.3 in /home/lwj/miniconda3/lib/python3.9/site-packages (from -r requirements.txt (line 24)) (3.3.3)
Requirement already satisfied: dnspython==2.1.0 in /home/lwj/miniconda3/lib/python3.9/site-packages (from -r requirements.txt (line 25)) (2.1.0)
Collecting asyncssh==2.11.0
  Downloading asyncssh-2.11.0-py3-none-any.whl (343 kB)
     |████████████████████████████████| 343 kB 2.3 MB/s 
Collecting aioftp~=0.20.0
  Downloading aioftp-0.20.1-py3-none-any.whl (36 kB)
Collecting pyminizip==0.2.4
  Downloading pyminizip-0.2.4.tar.gz (258 kB)
     |████████████████████████████████| 258 kB 2.0 MB/s 
Requirement already satisfied: yarl<2.0,>=1.0 in /home/lwj/miniconda3/lib/python3.9/site-packages (from aiohttp==3.8.1->-r requirements.txt (line 2)) (1.7.2)
Collecting aiosignal>=1.1.2
  Downloading aiosignal-1.2.0-py3-none-any.whl (8.2 kB)
Collecting async-timeout<5.0,>=4.0.0a3
  Downloading async_timeout-4.0.2-py3-none-any.whl (5.8 kB)
Requirement already satisfied: multidict<7.0,>=4.5 in /home/lwj/miniconda3/lib/python3.9/site-packages (from aiohttp==3.8.1->-r requirements.txt (line 2)) (4.7.6)
Collecting frozenlist>=1.1.1
  Downloading frozenlist-1.3.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (156 kB)
     |████████████████████████████████| 156 kB 2.3 MB/s 
Requirement already satisfied: attrs>=17.3.0 in /home/lwj/miniconda3/lib/python3.9/site-packages (from aiohttp==3.8.1->-r requirements.txt (line 2)) (21.4.0)
Requirement already satisfied: charset-normalizer<3.0,>=2.0 in /home/lwj/miniconda3/lib/python3.9/site-packages (from aiohttp==3.8.1->-r requirements.txt (line 2)) (2.0.4)
Requirement already satisfied: apispec<4.0,>=3.0.0 in /home/lwj/miniconda3/lib/python3.9/site-packages (from aiohttp-apispec==2.2.3->-r requirements.txt (line 5)) (3.3.2)
Requirement already satisfied: webargs<6.0 in /home/lwj/miniconda3/lib/python3.9/site-packages (from aiohttp-apispec==2.2.3->-r requirements.txt (line 5)) (5.5.3)
Requirement already satisfied: MarkupSafe>=2.0 in /home/lwj/miniconda3/lib/python3.9/site-packages (from jinja2==3.0.3->-r requirements.txt (line 6)) (2.1.1)
Requirement already satisfied: sphinxcontrib-applehelp in /home/lwj/miniconda3/lib/python3.9/site-packages (from Sphinx==3.0.4->-r requirements.txt (line 11)) (1.0.2)
Requirement already satisfied: sphinxcontrib-htmlhelp in /home/lwj/miniconda3/lib/python3.9/site-packages (from Sphinx==3.0.4->-r requirements.txt (line 11)) (2.0.0)
Requirement already satisfied: sphinxcontrib-devhelp in /home/lwj/miniconda3/lib/python3.9/site-packages (from Sphinx==3.0.4->-r requirements.txt (line 11)) (1.0.2)
Requirement already satisfied: babel>=1.3 in /home/lwj/miniconda3/lib/python3.9/site-packages (from Sphinx==3.0.4->-r requirements.txt (line 11)) (2.10.3)
Requirement already satisfied: setuptools in /home/lwj/miniconda3/lib/python3.9/site-packages (from Sphinx==3.0.4->-r requirements.txt (line 11)) (61.2.0)
Requirement already satisfied: sphinxcontrib-serializinghtml in /home/lwj/miniconda3/lib/python3.9/site-packages (from Sphinx==3.0.4->-r requirements.txt (line 11)) (1.1.5)
Requirement already satisfied: imagesize in /home/lwj/miniconda3/lib/python3.9/site-packages (from Sphinx==3.0.4->-r requirements.txt (line 11)) (1.3.0)
Requirement already satisfied: alabaster<0.8,>=0.7 in /home/lwj/miniconda3/lib/python3.9/site-packages (from Sphinx==3.0.4->-r requirements.txt (line 11)) (0.7.12)
Requirement already satisfied: packaging in /home/lwj/miniconda3/lib/python3.9/site-packages (from Sphinx==3.0.4->-r requirements.txt (line 11)) (21.3)
Requirement already satisfied: sphinxcontrib-jsmath in /home/lwj/miniconda3/lib/python3.9/site-packages (from Sphinx==3.0.4->-r requirements.txt (line 11)) (1.0.1)
Requirement already satisfied: sphinxcontrib-qthelp in /home/lwj/miniconda3/lib/python3.9/site-packages (from Sphinx==3.0.4->-r requirements.txt (line 11)) (1.0.3)
Requirement already satisfied: Pygments>=2.0 in /home/lwj/miniconda3/lib/python3.9/site-packages (from Sphinx==3.0.4->-r requirements.txt (line 11)) (2.12.0)
Requirement already satisfied: snowballstemmer>=1.1 in /home/lwj/miniconda3/lib/python3.9/site-packages (from Sphinx==3.0.4->-r requirements.txt (line 11)) (2.2.0)
Requirement already satisfied: requests>=2.5.0 in /home/lwj/miniconda3/lib/python3.9/site-packages (from Sphinx==3.0.4->-r requirements.txt (line 11)) (2.27.1)
Requirement already satisfied: commonmark>=0.8.1 in /home/lwj/miniconda3/lib/python3.9/site-packages (from recommonmark==0.6.0->-r requirements.txt (line 14)) (0.9.1)
Requirement already satisfied: scantree>=0.0.1 in /home/lwj/miniconda3/lib/python3.9/site-packages (from dirhash==0.2.0->-r requirements.txt (line 16)) (0.0.1)
Requirement already satisfied: six>=1.4.0 in /home/lwj/miniconda3/lib/python3.9/site-packages (from docker==4.2.0->-r requirements.txt (line 17)) (1.16.0)
Requirement already satisfied: websocket-client>=0.32.0 in /home/lwj/miniconda3/lib/python3.9/site-packages (from docker==4.2.0->-r requirements.txt (line 17)) (1.3.2)
Requirement already satisfied: pyasn1>=0.4.6 in /home/lwj/miniconda3/lib/python3.9/site-packages (from ldap3==2.8.1->-r requirements.txt (line 20)) (0.4.8)
Requirement already satisfied: pillow>=4.0.0 in /home/lwj/miniconda3/lib/python3.9/site-packages (from reportlab==3.5.67->-r requirements.txt (line 22)) (9.1.1)
Requirement already satisfied: tinycss2>=0.6.0 in /home/lwj/miniconda3/lib/python3.9/site-packages (from svglib==1.0.1->-r requirements.txt (line 23)) (1.1.1)
Requirement already satisfied: cssselect2>=0.2.0 in /home/lwj/miniconda3/lib/python3.9/site-packages (from svglib==1.0.1->-r requirements.txt (line 23)) (0.6.0)
Collecting typing-extensions>=3.6
  Downloading typing_extensions-4.2.0-py3-none-any.whl (24 kB)
Requirement already satisfied: cffi>=1.12 in /home/lwj/miniconda3/lib/python3.9/site-packages (from cryptography>=3.2->-r requirements.txt (line 9)) (1.15.0)
Requirement already satisfied: pytz>=2015.7 in /home/lwj/miniconda3/lib/python3.9/site-packages (from babel>=1.3->Sphinx==3.0.4->-r requirements.txt (line 11)) (2022.1)
Requirement already satisfied: pycparser in /home/lwj/miniconda3/lib/python3.9/site-packages (from cffi>=1.12->cryptography>=3.2->-r requirements.txt (line 9)) (2.21)
Requirement already satisfied: webencodings in /home/lwj/miniconda3/lib/python3.9/site-packages (from cssselect2>=0.2.0->svglib==1.0.1->-r requirements.txt (line 23)) (0.5.1)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /home/lwj/miniconda3/lib/python3.9/site-packages (from requests>=2.5.0->Sphinx==3.0.4->-r requirements.txt (line 11)) (1.26.8)
Requirement already satisfied: idna<4,>=2.5 in /home/lwj/miniconda3/lib/python3.9/site-packages (from requests>=2.5.0->Sphinx==3.0.4->-r requirements.txt (line 11)) (3.3)
Requirement already satisfied: certifi>=2017.4.17 in /home/lwj/miniconda3/lib/python3.9/site-packages (from requests>=2.5.0->Sphinx==3.0.4->-r requirements.txt (line 11)) (2022.5.18.1)
Requirement already satisfied: pathspec>=0.5.9 in /home/lwj/miniconda3/lib/python3.9/site-packages (from scantree>=0.0.1->dirhash==0.2.0->-r requirements.txt (line 16)) (0.9.0)
Requirement already satisfied: pyparsing!=3.0.5,>=2.0.2 in /home/lwj/miniconda3/lib/python3.9/site-packages (from packaging->Sphinx==3.0.4->-r requirements.txt (line 11)) (3.0.9)
Building wheels for collected packages: pyminizip
  Building wheel for pyminizip (setup.py) ... done
  Created wheel for pyminizip: filename=pyminizip-0.2.4-cp39-cp39-linux_x86_64.whl size=70229 sha256=719850e94f1c9d11be9c8a63326e598b0f96958e8b5d8ce1bee1060f3a878b59
  Stored in directory: /home/lwj/.cache/pip/wheels/b0/37/e6/4b693fe163731709afb7a78d5c6c77e527b6883f1696db745e
Successfully built pyminizip
Installing collected packages: frozenlist, jinja2, docutils, async-timeout, aiosignal, typing-extensions, reportlab, aiohttp, websockets, pyminizip, asyncssh, aiohttp-jinja2, aioftp
  Attempting uninstall: jinja2
    Found existing installation: Jinja2 2.10.3
    Uninstalling Jinja2-2.10.3:
      Successfully uninstalled Jinja2-2.10.3
  Attempting uninstall: docutils
    Found existing installation: docutils 0.18.1
    Uninstalling docutils-0.18.1:
      Successfully uninstalled docutils-0.18.1
  Attempting uninstall: async-timeout
    Found existing installation: async-timeout 3.0.1
    Uninstalling async-timeout-3.0.1:
      Successfully uninstalled async-timeout-3.0.1
  Attempting uninstall: reportlab
    Found existing installation: reportlab 3.5.64
    Uninstalling reportlab-3.5.64:
      Successfully uninstalled reportlab-3.5.64
  Attempting uninstall: aiohttp
    Found existing installation: aiohttp 3.6.2
    Uninstalling aiohttp-3.6.2:
      Successfully uninstalled aiohttp-3.6.2
  Attempting uninstall: websockets
    Found existing installation: websockets 8.1
    Uninstalling websockets-8.1:
      Successfully uninstalled websockets-8.1
  Attempting uninstall: aiohttp-jinja2
    Found existing installation: aiohttp-jinja2 1.2.0
    Uninstalling aiohttp-jinja2-1.2.0:
      Successfully uninstalled aiohttp-jinja2-1.2.0
Successfully installed aioftp-0.20.1 aiohttp-3.8.1 aiohttp-jinja2-1.5 aiosignal-1.2.0 async-timeout-4.0.2 asyncssh-2.11.0 docutils-0.16 frozenlist-1.3.0 jinja2-3.0.3 pyminizip-0.2.4 reportlab-3.5.67 typing-extensions-4.2.0 websockets-10.3

3.4 也可以将requirements-dev.txt一并安装

(base) ┌──(lwj?kali)-[~/Desktop/caldera]
└─$ pip3 install -r requirements-dev.txt
Collecting tox
  Downloading tox-3.25.0-py2.py3-none-any.whl (85 kB)
     |████████████████████████████████| 85 kB 507 kB/s 
Collecting pytest
  Downloading pytest-7.1.2-py3-none-any.whl (297 kB)
     |████████████████████████████████| 297 kB 383 kB/s 
Collecting pytest-aiohttp==1.0.3
  Downloading pytest_aiohttp-1.0.3-py3-none-any.whl (8.5 kB)
Collecting coverage
  Downloading coverage-6.4.1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (211 kB)
     |████████████████████████████████| 211 kB 706 kB/s 
Collecting pre-commit
  Downloading pre_commit-2.19.0-py2.py3-none-any.whl (199 kB)
     |████████████████████████████████| 199 kB 852 kB/s 
Collecting safety
  Downloading safety-1.10.3-py2.py3-none-any.whl (18 kB)
Collecting bandit
  Downloading bandit-1.7.4-py3-none-any.whl (118 kB)
     |████████████████████████████████| 118 kB 1.4 MB/s 
Requirement already satisfied: dnspython==2.1.0 in /home/lwj/miniconda3/lib/python3.9/site-packages (from -r requirements-dev.txt (line 8)) (2.1.0)
Collecting pytest-asyncio>=0.17.2
  Downloading pytest_asyncio-0.18.3-1-py3-none-any.whl (14 kB)
Requirement already satisfied: aiohttp>=3.8.1 in /home/lwj/miniconda3/lib/python3.9/site-packages (from pytest-aiohttp==1.0.3->-r requirements-dev.txt (line 3)) (3.8.1)
Requirement already satisfied: six>=1.14.0 in /home/lwj/miniconda3/lib/python3.9/site-packages (from tox->-r requirements-dev.txt (line 1)) (1.16.0)
Collecting toml>=0.9.4
  Downloading toml-0.10.2-py2.py3-none-any.whl (16 kB)
Collecting filelock>=3.0.0
  Downloading filelock-3.7.1-py3-none-any.whl (10 kB)
Collecting pluggy>=0.12.0
  Downloading pluggy-1.0.0-py2.py3-none-any.whl (13 kB)
Collecting virtualenv!=20.0.0,!=20.0.1,!=20.0.2,!=20.0.3,!=20.0.4,!=20.0.5,!=20.0.6,!=20.0.7,>=16.0.0
  Downloading virtualenv-20.14.1-py2.py3-none-any.whl (8.8 MB)
     |████████████████████████████████| 8.8 MB 1.6 MB/s 
Collecting py>=1.4.17
  Downloading py-1.11.0-py2.py3-none-any.whl (98 kB)
     |████████████████████████████████| 98 kB 1.3 MB/s 
Requirement already satisfied: packaging>=14 in /home/lwj/miniconda3/lib/python3.9/site-packages (from tox->-r requirements-dev.txt (line 1)) (21.3)
Collecting tomli>=1.0.0
  Downloading tomli-2.0.1-py3-none-any.whl (12 kB)
Requirement already satisfied: attrs>=19.2.0 in /home/lwj/miniconda3/lib/python3.9/site-packages (from pytest->-r requirements-dev.txt (line 2)) (21.4.0)
Collecting iniconfig
  Downloading iniconfig-1.1.1-py2.py3-none-any.whl (5.0 kB)
Requirement already satisfied: pyyaml>=5.1 in /home/lwj/miniconda3/lib/python3.9/site-packages (from pre-commit->-r requirements-dev.txt (line 5)) (6.0)
Collecting identify>=1.0.0
  Downloading identify-2.5.1-py2.py3-none-any.whl (98 kB)
     |████████████████████████████████| 98 kB 5.0 MB/s 
Collecting cfgv>=2.0.0
  Downloading cfgv-3.3.1-py2.py3-none-any.whl (7.3 kB)
Collecting nodeenv>=0.11.1
  Downloading nodeenv-1.6.0-py2.py3-none-any.whl (21 kB)
Collecting dparse>=0.5.1
  Downloading dparse-0.5.1-py3-none-any.whl (12 kB)
Collecting Click>=6.0
  Downloading click-8.1.3-py3-none-any.whl (96 kB)
     |████████████████████████████████| 96 kB 4.8 MB/s 
Requirement already satisfied: requests in /home/lwj/miniconda3/lib/python3.9/site-packages (from safety->-r requirements-dev.txt (line 6)) (2.27.1)
Requirement already satisfied: setuptools in /home/lwj/miniconda3/lib/python3.9/site-packages (from safety->-r requirements-dev.txt (line 6)) (61.2.0)
Collecting stevedore>=1.20.0
  Downloading stevedore-3.5.0-py3-none-any.whl (49 kB)
     |████████████████████████████████| 49 kB 3.2 MB/s 
Collecting GitPython>=1.0.1
  Downloading GitPython-3.1.27-py3-none-any.whl (181 kB)
     |████████████████████████████████| 181 kB 4.1 MB/s 
Requirement already satisfied: aiosignal>=1.1.2 in /home/lwj/miniconda3/lib/python3.9/site-packages (from aiohttp>=3.8.1->pytest-aiohttp==1.0.3->-r requirements-dev.txt (line 3)) (1.2.0)
Requirement already satisfied: yarl<2.0,>=1.0 in /home/lwj/miniconda3/lib/python3.9/site-packages (from aiohttp>=3.8.1->pytest-aiohttp==1.0.3->-r requirements-dev.txt (line 3)) (1.7.2)
Requirement already satisfied: async-timeout<5.0,>=4.0.0a3 in /home/lwj/miniconda3/lib/python3.9/site-packages (from aiohttp>=3.8.1->pytest-aiohttp==1.0.3->-r requirements-dev.txt (line 3)) (4.0.2)
Requirement already satisfied: charset-normalizer<3.0,>=2.0 in /home/lwj/miniconda3/lib/python3.9/site-packages (from aiohttp>=3.8.1->pytest-aiohttp==1.0.3->-r requirements-dev.txt (line 3)) (2.0.4)
Requirement already satisfied: frozenlist>=1.1.1 in /home/lwj/miniconda3/lib/python3.9/site-packages (from aiohttp>=3.8.1->pytest-aiohttp==1.0.3->-r requirements-dev.txt (line 3)) (1.3.0)
Requirement already satisfied: multidict<7.0,>=4.5 in /home/lwj/miniconda3/lib/python3.9/site-packages (from aiohttp>=3.8.1->pytest-aiohttp==1.0.3->-r requirements-dev.txt (line 3)) (6.0.2)
Collecting gitdb<5,>=4.0.1
  Downloading gitdb-4.0.9-py3-none-any.whl (63 kB)
     |████████████████████████████████| 63 kB 3.2 MB/s 
Collecting smmap<6,>=3.0.1
  Downloading smmap-5.0.0-py3-none-any.whl (24 kB)
Requirement already satisfied: pyparsing!=3.0.5,>=2.0.2 in /home/lwj/miniconda3/lib/python3.9/site-packages (from packaging>=14->tox->-r requirements-dev.txt (line 1)) (3.0.9)
Collecting pbr!=2.1.0,>=2.0.0
  Downloading pbr-5.9.0-py2.py3-none-any.whl (112 kB)
     |████████████████████████████████| 112 kB 2.5 MB/s 
Collecting distlib<1,>=0.3.1
  Downloading distlib-0.3.4-py2.py3-none-any.whl (461 kB)
     |████████████████████████████████| 461 kB 2.6 MB/s 
Collecting platformdirs<3,>=2
  Downloading platformdirs-2.5.2-py3-none-any.whl (14 kB)
Requirement already satisfied: idna>=2.0 in /home/lwj/miniconda3/lib/python3.9/site-packages (from yarl<2.0,>=1.0->aiohttp>=3.8.1->pytest-aiohttp==1.0.3->-r requirements-dev.txt (line 3)) (3.3)
Requirement already satisfied: certifi>=2017.4.17 in /home/lwj/miniconda3/lib/python3.9/site-packages (from requests->safety->-r requirements-dev.txt (line 6)) (2022.5.18.1)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /home/lwj/miniconda3/lib/python3.9/site-packages (from requests->safety->-r requirements-dev.txt (line 6)) (1.26.8)
Installing collected packages: tomli, smmap, py, pluggy, iniconfig, toml, pytest, platformdirs, pbr, gitdb, filelock, distlib, virtualenv, stevedore, pytest-asyncio, nodeenv, identify, GitPython, dparse, Click, cfgv, tox, safety, pytest-aiohttp, pre-commit, coverage, bandit
Successfully installed Click-8.1.3 GitPython-3.1.27 bandit-1.7.4 cfgv-3.3.1 coverage-6.4.1 distlib-0.3.4 dparse-0.5.1 filelock-3.7.1 gitdb-4.0.9 identify-2.5.1 iniconfig-1.1.1 nodeenv-1.6.0 pbr-5.9.0 platformdirs-2.5.2 pluggy-1.0.0 pre-commit-2.19.0 py-1.11.0 pytest-7.1.2 pytest-aiohttp-1.0.3 pytest-asyncio-0.18.3 safety-1.10.3 smmap-5.0.0 stevedore-3.5.0 toml-0.10.2 tomli-2.0.1 tox-3.25.0 virtualenv-20.14.1

3.5 正式开始运行程序

第一次初始化比较久,也容易报错卡住,为了方便观察判断问题,推荐在官方的运行命令后面加上--log DEBUG参数,需要注意的几个点,我会在下面的命令中一一备注。

(base) ┌──(lwj?kali)-[~/Desktop/caldera]
└─$ python3 server.py --insecure --log DEBUG
2022-06-20 14:05:05 - WARNING (server.py:116 <module>) --insecure flag set. Caldera will use the default.yml config file.
2022-06-20 14:05:05 - INFO  (server.py:123 <module>) Using main config from conf/default.yml
2022-06-20 14:05:05 - DEBUG (learning_svc.py:20 __init__) Loaded 2 parsers
2022-06-20 14:05:05 - DEBUG (data_svc.py:115 restore_state) There are 0 jobs in the scheduler
2022-06-20 14:05:05 - DEBUG (contact_svc.py:37 register_contact) Registered contact: html
2022-06-20 14:05:05 - DEBUG (contact_svc.py:37 register_contact) Registered contact: gist
2022-06-20 14:05:05 - DEBUG (contact_svc.py:37 register_contact) Registered contact: http
2022-06-20 14:05:05 - DEBUG (contact_svc.py:37 register_contact) Registered contact: udp
2022-06-20 14:05:05 - DEBUG (contact_svc.py:37 register_contact) Registered contact: dns
2022-06-20 14:05:05 - DEBUG (contact_svc.py:37 register_contact) Registered contact: websocket
2022-06-20 14:05:05 - DEBUG (contact_svc.py:37 register_contact) Registered contact: slack
2022-06-20 14:05:05 - DEBUG (contact_svc.py:37 register_contact) Registered contact: tcp
2022-06-20 14:05:05 - DEBUG (contact_svc.py:37 register_contact) Registered contact: ftp
2022-06-20 14:05:05 - DEBUG (contact_svc.py:52 register_tunnel) Registered contact tunnel: ssh_tunneling
2022-06-20 14:05:05 - INFO  (contact_gist.py:70 start) Invalid Github Gist personal API token provided. Gist C2 contact will not be started.
2022-06-20 14:05:05 - INFO  (tunnel_ssh.py:26 start) Generating temporary SSH private key. Was unable to use provided SSH private key
2022-06-20 14:05:05 - INFO  (app_svc.py:109 load) Enabled plugin: debrief
# 在启用atomic插件时,会从GitHub上clone相应的模块,如果遇到网络不稳定,此处会报错,直接进行下一步;
# 此时可以按Ctrl+c取消,打开“/home/lwj/Desktop/caldera/plugins/atomic/app/atomic_svc”;
# 在48行,将repo_url = 'https://github.com/redcanaryco/atomic-red-team.git'中的地址进行修改:
# 1. 按照文章开头的方法,在https://后加入“gitclone.com/”
# 2. 更改为Gitee连接,“https://gitee.com/mirrors_redcanaryco/atomic-red-team.git”
# 保存后再次执行
2022-06-20 13:44:01 - DEBUG (atomic_svc.py:51 clone_atomic_red_team_repo) cloning repo https://github.com/redcanaryco/atomic-red-team.git
2022-06-20 13:44:58 - DEBUG (atomic_svc.py:53 clone_atomic_red_team_repo) clone complete
# 第一次clone完成后,atomic启用卡在了"Launch Agent",一般情况下超过9分钟可以ctrl+c取消重新开始(下面会说明)
#############################################################################
#############################################################################
2022-06-20 13:44:59 - DEBUG (atomic_svc.py:290 _prepare_executor) Skipping pre-req for "Stop/Start UFW firewall"
2022-06-20 13:44:59 - DEBUG (atomic_svc.py:290 _prepare_executor) Skipping pre-req for "Stop/Start UFW firewall systemctl"
2022-06-20 13:44:59 - DEBUG (atomic_svc.py:290 _prepare_executor) Skipping pre-req for "Turn off UFW logging"
2022-06-20 13:44:59 - DEBUG (atomic_svc.py:290 _prepare_executor) Skipping pre-req for "Add and delete UFW firewall rules"
2022-06-20 13:44:59 - DEBUG (atomic_svc.py:290 _prepare_executor) Skipping pre-req for "Edit UFW firewall user.rules file"
2022-06-20 13:44:59 - DEBUG (atomic_svc.py:290 _prepare_executor) Skipping pre-req for "Edit UFW firewall ufw.conf file"
2022-06-20 13:44:59 - DEBUG (atomic_svc.py:290 _prepare_executor) Skipping pre-req for "Edit UFW firewall sysctl.conf file"
2022-06-20 13:44:59 - DEBUG (atomic_svc.py:290 _prepare_executor) Skipping pre-req for "Edit UFW firewall main configuration file"
2022-06-20 13:44:59 - DEBUG (atomic_svc.py:290 _prepare_executor) Skipping pre-req for "Tail the UFW firewall log file"
2022-06-20 13:44:59 - DEBUG (atomic_svc.py:290 _prepare_executor) Skipping pre-req for "Creating GCP Service Account and Service Account Key"
2022-06-20 13:44:59 - DEBUG (atomic_svc.py:290 _prepare_executor) Skipping pre-req for "Creating GCP Service Account and Service Account Key"
2022-06-20 13:44:59 - DEBUG (atomic_svc.py:290 _prepare_executor) Skipping pre-req for "Creating GCP Service Account and Service Account Key"
2022-06-20 13:44:59 - DEBUG (atomic_svc.py:290 _prepare_executor) Skipping pre-req for "Creating GCP Service Account and Service Account Key"
2022-06-20 13:44:59 - DEBUG (atomic_svc.py:290 _prepare_executor) Skipping pre-req for "Port Scan using python"
2022-06-20 13:44:59 - DEBUG (atomic_svc.py:290 _prepare_executor) Skipping pre-req for "AWS - Create a group and add a user to that group"
2022-06-20 13:44:59 - DEBUG (atomic_svc.py:290 _prepare_executor) Skipping pre-req for "LSASS read with pypykatz"
2022-06-20 13:44:59 - DEBUG (atomic_svc.py:290 _prepare_executor) Skipping pre-req for "LSASS read with pypykatz"
2022-06-20 13:44:59 - DEBUG (atomic_svc.py:290 _prepare_executor) Skipping pre-req for "Dump LSASS with .Net 5 createdump.exe"
2022-06-20 13:44:59 - DEBUG (atomic_svc.py:290 _prepare_executor) Skipping pre-req for "whois file download"
2022-06-20 13:44:59 - DEBUG (atomic_svc.py:290 _prepare_executor) Skipping pre-req for "whois file download"
2022-06-20 13:44:59 - DEBUG (atomic_svc.py:290 _prepare_executor) Skipping pre-req for "Curl Upload File"
2022-06-20 13:44:59 - DEBUG (atomic_svc.py:290 _prepare_executor) Skipping pre-req for "Launch Daemon"
2022-06-20 13:44:59 - DEBUG (atomic_svc.py:290 _prepare_executor) Skipping pre-req for "Compress Data and lock with password for Exfiltration with winzip"
2022-06-20 13:44:59 - DEBUG (atomic_svc.py:290 _prepare_executor) Skipping pre-req for "Data Compressed - nix - tar Folder or File"
2022-06-20 13:44:59 - DEBUG (atomic_svc.py:290 _prepare_executor) Skipping pre-req for "Data Compressed - nix - tar Folder or File"
2022-06-20 13:44:59 - DEBUG (atomic_svc.py:290 _prepare_executor) Skipping pre-req for "ListSecrets"
2022-06-20 13:44:59 - DEBUG (atomic_svc.py:290 _prepare_executor) Skipping pre-req for "Cat the contents of a Kubernetes service account token file"
2022-06-20 13:44:59 - DEBUG (atomic_svc.py:290 _prepare_executor) Skipping pre-req for "Cat the contents of a Kubernetes service account token file"
2022-06-20 13:44:59 - DEBUG (atomic_svc.py:290 _prepare_executor) Skipping pre-req for "Cat the contents of a Kubernetes service account token file"
2022-06-20 13:44:59 - DEBUG (atomic_svc.py:290 _prepare_executor) Skipping pre-req for "Cat the contents of a Kubernetes service account token file"
2022-06-20 13:44:59 - DEBUG (atomic_svc.py:290 _prepare_executor) Skipping pre-req for "Cat the contents of a Kubernetes service account token file"
2022-06-20 13:44:59 - DEBUG (atomic_svc.py:290 _prepare_executor) Skipping pre-req for "Cat the contents of a Kubernetes service account token file"
2022-06-20 13:45:00 - DEBUG (atomic_svc.py:290 _prepare_executor) Skipping pre-req for "Dylib Injection via DYLD_INSERT_LIBRARIES"
2022-06-20 13:45:00 - DEBUG (atomic_svc.py:290 _prepare_executor) Skipping pre-req for "ListCronjobs"
2022-06-20 13:45:00 - DEBUG (atomic_svc.py:290 _prepare_executor) Skipping pre-req for "CreateCronjob"
2022-06-20 13:45:00 - DEBUG (atomic_svc.py:290 _prepare_executor) Skipping pre-req for "ADFS token signing and encryption certificates theft - Remote"
2022-06-20 13:45:00 - DEBUG (atomic_svc.py:290 _prepare_executor) Skipping pre-req for "ExecIntoContainer"
2022-06-20 13:45:00 - DEBUG (atomic_svc.py:290 _prepare_executor) Skipping pre-req for "DiskShadow Command Execution"
2022-06-20 13:45:00 - DEBUG (atomic_svc.py:290 _prepare_executor) Skipping pre-req for "At - Schedule a job"
2022-06-20 13:45:00 - DEBUG (atomic_svc.py:290 _prepare_executor) Skipping pre-req for "At - Schedule a job"
2022-06-20 13:45:00 - DEBUG (atomic_svc.py:290 _prepare_executor) Skipping pre-req for "Living off the land Terminal Input Capture on Linux with pam.d"
2022-06-20 13:45:00 - DEBUG (atomic_svc.py:290 _prepare_executor) Skipping pre-req for "Logging bash history to syslog"
2022-06-20 13:45:00 - DEBUG (atomic_svc.py:290 _prepare_executor) Skipping pre-req for "Bash session based keylogger"
2022-06-20 13:45:00 - DEBUG (atomic_svc.py:290 _prepare_executor) Skipping pre-req for "SSHD PAM keylogger"
2022-06-20 13:45:00 - DEBUG (atomic_svc.py:290 _prepare_executor) Skipping pre-req for "Auditd keylogger"
2022-06-20 13:45:00 - DEBUG (atomic_svc.py:290 _prepare_executor) Skipping pre-req for "Remote System Discovery - adidnsdump"
2022-06-20 13:45:00 - DEBUG (atomic_svc.py:290 _prepare_executor) Skipping pre-req for "Remote System Discovery - adidnsdump"
2022-06-20 13:45:01 - DEBUG (atomic_svc.py:290 _prepare_executor) Skipping pre-req for "Install MS Exchange Transport Agent Persistence"
2022-06-20 13:45:01 - DEBUG (atomic_svc.py:290 _prepare_executor) Skipping pre-req for "Create Volume Shadow Copy with vssadmin"
2022-06-20 13:45:01 - DEBUG (atomic_svc.py:290 _prepare_executor) Skipping pre-req for "Copy NTDS.dit from Volume Shadow Copy"
2022-06-20 13:45:01 - DEBUG (atomic_svc.py:290 _prepare_executor) Skipping pre-req for "Copy NTDS.dit from Volume Shadow Copy"
2022-06-20 13:45:01 - DEBUG (atomic_svc.py:290 _prepare_executor) Skipping pre-req for "Dump Active Directory Database with NTDSUtil"
2022-06-20 13:45:01 - DEBUG (atomic_svc.py:290 _prepare_executor) Skipping pre-req for "Create Volume Shadow Copy with WMI"
2022-06-20 13:45:01 - DEBUG (atomic_svc.py:290 _prepare_executor) Skipping pre-req for "Create Volume Shadow Copy remotely with WMI"
2022-06-20 13:45:01 - DEBUG (atomic_svc.py:290 _prepare_executor) Skipping pre-req for "Create Volume Shadow Copy remotely (WMI) with esentutl"
2022-06-20 13:45:01 - DEBUG (atomic_svc.py:290 _prepare_executor) Skipping pre-req for "Compressing data using GZip in Python (Linux)"
2022-06-20 13:45:01 - DEBUG (atomic_svc.py:290 _prepare_executor) Skipping pre-req for "Compressing data using bz2 in Python (Linux)"
2022-06-20 13:45:01 - DEBUG (atomic_svc.py:290 _prepare_executor) Skipping pre-req for "Compressing data using zipfile in Python (Linux)"
2022-06-20 13:45:01 - DEBUG (atomic_svc.py:290 _prepare_executor) Skipping pre-req for "Compressing data using tarfile in Python (Linux)"
2022-06-20 13:45:01 - DEBUG (atomic_svc.py:290 _prepare_executor) Skipping pre-req for "Execute shell script via python's command mode arguement"
2022-06-20 13:45:01 - DEBUG (atomic_svc.py:290 _prepare_executor) Skipping pre-req for "Execute Python via scripts (Linux)"
2022-06-20 13:45:01 - DEBUG (atomic_svc.py:290 _prepare_executor) Skipping pre-req for "Execute Python via Python executables (Linux)"
2022-06-20 13:45:01 - DEBUG (atomic_svc.py:290 _prepare_executor) Skipping pre-req for "AWS - Create Access Key and Secret Key"
2022-06-20 13:45:01 - DEBUG (atomic_svc.py:290 _prepare_executor) Skipping pre-req for "Launch Agent"
#############################################################################
#############################################################################
2022-06-20 14:05:05 - INFO  (app_svc.py:109 load) Enabled plugin: atomic
2022-06-20 14:05:05 - INFO  (app_svc.py:109 load) Enabled plugin: fieldmanual
2022-06-20 14:05:05 - INFO  (app_svc.py:109 load) Enabled plugin: access
2022-06-20 14:05:05 - INFO  (app_svc.py:109 load) Enabled plugin: training
2022-06-20 14:05:05 - DEBUG (base_world.py:46 set_config) Configuration (agents) update, setting deployments=['2f34977d-9558-4c12-abad-349716777c6b', '0ab383be-b819-41bf-91b9-1bd4404d83bf', '356d1722-7784-40c4-822b-0cf864b0b36d', '1837b43e-4fff-46b2-a604-a602f7540469']
2022-06-20 14:05:05 - INFO  (app_svc.py:109 load) Enabled plugin: response
2022-06-20 14:05:05 - INFO  (app_svc.py:109 load) Enabled plugin: stockpile
2022-06-20 14:05:05 - DEBUG (sand_svc.py:94 load_sandcat_extension_modules) Loaded gocat extension module: shared
# (末尾)关键字“shared”,此处会卡住加载9分钟,测试的几次都是,这一步也是耗时最久的。
2022-06-20 14:14:06 - DEBUG (sand_svc.py:94 load_sandcat_extension_modules) Loaded gocat extension module: slack
2022-06-20 14:14:06 - DEBUG (sand_svc.py:94 load_sandcat_extension_modules) Loaded gocat extension module: donut
# 关键字“donut”,加载3分钟
2022-06-20 14:17:06 - DEBUG (sand_svc.py:94 load_sandcat_extension_modules) Loaded gocat extension module: proxy_http
2022-06-20 14:17:06 - DEBUG (sand_svc.py:94 load_sandcat_extension_modules) Loaded gocat extension module: shellcode
2022-06-20 14:17:06 - DEBUG (sand_svc.py:94 load_sandcat_extension_modules) Loaded gocat extension module: shells
# 关键字“shells”,加载3分钟
2022-06-20 14:20:06 - DEBUG (sand_svc.py:94 load_sandcat_extension_modules) Loaded gocat extension module: native
2022-06-20 14:20:06 - INFO  (app_svc.py:109 load) Enabled plugin: sandcat
2022-06-20 14:20:06 - INFO  (app_svc.py:109 load) Enabled plugin: compass
2022-06-20 14:20:06 - INFO  (app_svc.py:109 load) Enabled plugin: manx
2022-06-20 14:20:06 - INFO  (logging.py:92 log) Creating SSH listener on 0.0.0.0, port 8022
2022-06-20 14:20:06 - INFO  (server.py:741 start) serving on 0.0.0.0:2222
2022-06-20 14:20:06 - DEBUG (c_ability.py:99 store) Collision in ability name detected for 4370001012f5f0df001269627b4737e9 and 562d85a09d73f7471bd3232cbd8777cb (System Owner/User Discovery). Modifying name of the second ability to System Owner/User Discovery (2)...
2022-06-20 14:20:06 - DEBUG (c_ability.py:99 store) Collision in ability name detected for e0c75b4cc32124ef4c61508694fd0808 and c84a57391dbc724dc51436deb3e0ca00 (Get-DomainUser with PowerView). Modifying name of the second ability to Get-DomainUser with PowerView (2)...
2022-06-20 14:20:07 - DEBUG (c_ability.py:99 store) Collision in ability name detected for 730a4255b7dc9bf643bc73a32607c480 and 425d3f2c8d735740e5347ee2b86b913a (Loadable Kernel Module based Rootkit). Modifying name of the second ability to Loadable Kernel Module based Rootkit (2)...
2022-06-20 14:20:07 - DEBUG (c_ability.py:99 store) Collision in ability name detected for b1d41972-3ad9-4aa1-8f7f-05f049a2980e and 10a9d979-e342-418a-a9b0-002c483e0fa6 (Start 54ndc47). Modifying name of the second ability to Start 54ndc47 (2)...
2022-06-20 14:20:09 - DEBUG (auth_svc.py:209 set_login_handlers) Using default login handler.
2022-06-20 14:20:09 - DEBUG (auth_svc.py:71 apply) Created authentication group: blue
2022-06-20 14:20:09 - DEBUG (auth_svc.py:71 apply) Created authentication group: red
# 看到“All systems ready”即代表服务已经正常开启了
2022-06-20 14:20:09 - INFO  (server.py:71 run_tasks) All systems ready.
# 一开始被最后这一句报警搞乱了思路,排查以后发现确实没有该文件,不过不影响CALDERA的正常使用,可以忽略。
2022-06-20 14:20:15 - WARNING (hook.py:60 build_docs) Unable to build docs:
/home/lwj/Desktop/caldera/plugins/fieldmanual/sphinx-docs/The-REST-API.md:3: WARNING: None:any 引用目标不存在:/api/docs

4 访问

推荐使用Chrome,经测试Firefox也可以访问。

4.1 地址:http://localhost:8888/

4.2 账号密码

账号密码
adminadmin
redadmin
blueadmin

4.3 页面展示

caldera登录页面

  Python知识库 最新文章
Python中String模块
【Python】 14-CVS文件操作
python的panda库读写文件
使用Nordic的nrf52840实现蓝牙DFU过程
【Python学习记录】numpy数组用法整理
Python学习笔记
python字符串和列表
python如何从txt文件中解析出有效的数据
Python编程从入门到实践自学/3.1-3.2
python变量
上一篇文章           查看所有文章
加:2022-06-25 18:04:45  更:2022-06-25 18:06:46 
 
开发: C++知识库 Java知识库 JavaScript Python PHP知识库 人工智能 区块链 大数据 移动开发 嵌入式 开发工具 数据结构与算法 开发测试 游戏开发 网络协议 系统运维
教程: HTML教程 CSS教程 JavaScript教程 Go语言教程 JQuery教程 VUE教程 VUE3教程 Bootstrap教程 SQL数据库教程 C语言教程 C++教程 Java教程 Python教程 Python3教程 C#教程
数码: 电脑 笔记本 显卡 显示器 固态硬盘 硬盘 耳机 手机 iphone vivo oppo 小米 华为 单反 装机 图拉丁

360图书馆 购物 三丰科技 阅读网 日历 万年历 2024年5日历 -2024/5/18 12:55:56-

图片自动播放器
↓图片自动播放器↓
TxT小说阅读器
↓语音阅读,小说下载,古典文学↓
一键清除垃圾
↓轻轻一点,清除系统垃圾↓
图片批量下载器
↓批量下载图片,美女图库↓
  网站联系: qq:121756557 email:121756557@qq.com  IT数码