布置比赛平台用,怕忘了

web

1
2
3
4
5
6
7
8
9
10
11
12
13
# 使用tutum
docker pull tutum/lamp
# 使用run创建实例 -P可以使用随机端口可以通过--name设定名称
# https://www.runoob.com/docker/docker-run-command.html
docker run -d -p 7001:80 tutum/lamp
# 使用bash进入实例 2da是pid
docker exec -it 2da /bin/bash
# 复制文件
docker cp index.php 8db:/var/html/index1.php
# 查看现有实例
docker ps -a
# 删除
docker container rm 0a990 -f

放置web题,放到/var/www/html下即可

pwn

1
2
3
4
# 使用当前目录的dockerfile创建镜像
docker build -t tjuctfwarmup .
# 创建实例
docker run -d -p "0.0.0.0:7000:8888" -h "tjuctfwarmup" --name="tjuctfwarmup" tjuctfwarmup