0x1 InI

如果你不希望为了使用Docker 而增加负担,不妨试试这个RancherOS

NAME : RancherOS

SITE : https://rancher.com/

RESUME: 一个极轻量且安全的Linux发行版。它由容器构建,将赋予您更好的容器运行体验。

0x2 INSTALL BY VMWARE

1
2
3
4
Booting from ISO    https://releases.rancher.com/os/latest/vmware/rancheros.iso
For docker-machine https://releases.rancher.com/os/latest/vmware/rancheros-autoformat.iso
VMDK https://releases.rancher.com/os/latest/vmware/rancheros.vmdk
Initrd https://releases.rancher.com/os/latest/vmware/initrd

0x21 Set Up VM

20210608234808690273.png

开机注意连接 ISO

0x22 Power on VM

20210608234805935018.png

0x23 cloud-config.yml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
### cloud-config.yml
rancher:
docker:
registry_mirror: https://docker.mirrors.ustc.edu.cn
network:
interfaces:
eth0:
dhcp: true
eth1:
dhcp: true
dns:
nameservers:
- 223.5.5.5
- 223.6.6.6

ssh_authorized_keys:
- ssh-rsa
- ssh-rsa

0x24 config & install

1
2
3
4
5
6
7
8
9
10
11
12
# vmware 窗口 输入命令 :
sudo passwd rancher

# xshell / cmd
ssh rancher@192.168.52.132
vi cloud-config.yml
i
# 把改好的内容复制进去
sudo fdisk -l # 查看你的硬盘
sudo ros install --cloud-config cloud-config.yml --device /dev/sda # 两次y确认
# 接下来会重启,直接使用密钥连接即可,注意配置 sshd 安全
# 可以参考下面配置配置 docker 加速

0x25 daemon.json

1
2
3
4
5
6
7
8
9
10
11
12
// /etc/docker/daemon.json
{
"registry-mirrors": [
"https://registry.docker-cn.com",
"http://hub-mirror.c.163.com",
"https://docker.mirrors.ustc.edu.cn"
],
"dns": [
"223.5.5.5",
"8.8.8.8"
]
}

0x3 PLAY & WORK

0x31 DBJ

1
docker run -it --name dbj -p 5000:5000 xrsec/dbj:latest

20210608234755786084.png

0x32 V2RAYA

1
2
3
4
5
6
7
8
9
docker run -d \
--restart=always \
--privileged \
--network=host \
--name v2raya \
-v /lib/modules:/lib/modules \
-v /etc/resolv.conf:/etc/resolv.conf \
-v /etc/v2raya:/etc/v2raya \
mzz2017/v2raya

20210608234747177758.png

0x33 DDNS-GO

1
2
3
4
5
6
docker run -d \
--name ddns-go \
--restart=always \
--net=host \
-v /opt/ddns-go:/root \
jeessy/ddns-go

20210608234737945604.png

0x34 COBALTSTRIKE

1
2
3
4
5
6
7
8
9
10
11
12
13
14
docker run -it \
--name cs \
-e "passwd=123456" \
-e "server_ip=192.168.52.132" \
-e "server_port=53235" \
-e "aliasname=Bing Wallpaper" \
-e "dname=CN=www.microsoft.com, OU=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=WA, C=US" \
-p 50000:50000 \
-p 443:443 \
-p 80:80 \
-p 50000:50000/udp \
-p 443:443/udp \
-p 80:80/udp \
xrsec/cobaltstrike:none

20210608234729931982.png

0x35 AWVS

1
2
3
4
docker run -it -d \
--name awvs \
-p 3443:3443 \
xrsec/awvs:v14

20210608234720923256.png

. . .

BUG❌

万万不可删除以下容器,也不要使用 sudo 命令 , 需要用到 sudo 命令 务必三思

20210608234712729583.png

  • docker rm -f $(docker ps -qa) # 不要尝试这个命令 堪比 rm -rf
  • 其他问题欢迎留言

XRSec has the right to modify and interpret this article. If you want to reprint or disseminate this article, you must ensure the integrity of this article, including all contents such as copyright notice. Without the permission of the author, the content of this article shall not be modified or increased or decreased arbitrarily, and it shall not be used for commercial purposes in any way