docker搭建kali及安装oneforall

前期docker的安装这里就不用多说了,直接看后面的代码
安装oneforall
1.安装git和pip3

sudo apt update
sudo apt install git python3-pip -y

2.克隆项目

git clone https://gitee.com/shmilylty/OneForAll.git

3.安装相关依赖
cd OneForAll/

sudo apt install python3-dev python3-pip python3-testresources -y
sudo python3 -m pip install -U pip setuptools wheel -i https://mirrors.aliyun.com/pypi/simple/
sudo pip3 install --ignore-installed -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/
python3 oneforall.py --help

4.测试运行

python3 oneforall.py check
python3 oneforall.py --target example.com run

查看是否生成文件。
ls results
文件成功生成了,但csv文件在docker里查看起来有些麻烦。
导出文件到mac查看会方便的多。
5.文件导出
经过百度后发现有好几种方案,一种是安装lrzsz,一种是直接使用docker的cp功能。
1.lrzs
实际使用中,mac失败了,windows应该可以成功。
具体操作:
使用apt-get安装lrzs工具包。

apt-get install lrzsz

Lrzsz 的rz命令可以把电脑文件导入容器,而sz命令可让文件从容器中导出。
2.cp命令复制
复制宿主机文件到docker:

docker cp /path/filename 容器id或名称:/path/filename

复制docker文件到宿主机:

docker cp 容器id或名称:/path/filename /path/filename

m1测试结果:成功。

觉得还是不行的,看一下原文
https://www.jianshu.com/p/15b536088a6a

相关推荐

  1. dockerkali安装oneforall

    2023-12-25 23:40:04       73 阅读
  2. 服务部署:Ubuntu安装docker

    2023-12-25 23:40:04       37 阅读
  3. Kali/Debian Linux 安装Docker Engine

    2023-12-25 23:40:04       67 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2023-12-25 23:40:04       94 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2023-12-25 23:40:04       101 阅读
  3. 在Django里面运行非项目文件

    2023-12-25 23:40:04       82 阅读
  4. Python语言-面向对象

    2023-12-25 23:40:04       91 阅读

热门阅读

  1. 6_js数组常用函数进阶与String

    2023-12-25 23:40:04       65 阅读
  2. MultiValueMap

    2023-12-25 23:40:04       58 阅读
  3. 【大语言模型】Transformer原理以及运行机制

    2023-12-25 23:40:04       75 阅读
  4. arm day6

    2023-12-25 23:40:04       60 阅读
  5. 爬虫抓取链家二手房数据

    2023-12-25 23:40:04       49 阅读
  6. date工具类

    2023-12-25 23:40:04       52 阅读
  7. C语言中switch语句中的case后()

    2023-12-25 23:40:04       60 阅读
  8. [运维|shell] 编写shell脚本定期清理日志

    2023-12-25 23:40:04       56 阅读
  9. 第6章1-字符串及正则表达式 p63

    2023-12-25 23:40:04       51 阅读
  10. 避免约束系数过大的2种技巧

    2023-12-25 23:40:04       58 阅读
  11. ubuntu22.04上安装charles-proxy

    2023-12-25 23:40:04       53 阅读
  12. GO语言基础笔记(四):并发编程基础

    2023-12-25 23:40:04       50 阅读
  13. 第六章 卷:将磁盘挂载到容器

    2023-12-25 23:40:04       49 阅读