first commit
Some checks failed
Vulhub Format Check and Lint / format-check (push) Has been cancelled
Vulhub Format Check and Lint / markdown-check (push) Has been cancelled
Vulhub Docker Image CI / longtime-images-test (push) Has been cancelled
Vulhub Docker Image CI / images-test (push) Has been cancelled

This commit is contained in:
2025-09-06 16:08:15 +08:00
commit 63285f61aa
2624 changed files with 88491 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
FROM ubuntu:20.04
#RUN sed -i "s/http:\/\/archive.ubuntu.com/http:\/\/mirrors.aliyun.com/g" /etc/apt/sources.list && \
# sed -i "s/http:\/\/security.ubuntu.com/http:\/\/mirrors.aliyun.com/g" /etc/apt/sources.list
RUN set -ex \
&& apt-get update \
&& DEBIAN_FRONTEND="noninteractive" apt-get -y install tzdata ca-certificates wget qemu-system cloud-image-utils
RUN mkdir /home/chall
WORKDIR /home/chall
# old version ubuntu
RUN wget http://cloud-images-archive.ubuntu.com/releases/focal/release-20200423/ubuntu-20.04-server-cloudimg-amd64.img
COPY ./user-data /home/chall/
RUN cloud-localds user-data.img user-data && \
qemu-img resize ubuntu-20.04-server-cloudimg-amd64.img +20G
EXPOSE 2222
CMD qemu-system-x86_64 \
-drive "file=ubuntu-20.04-server-cloudimg-amd64.img,format=qcow2" \
-drive "file=user-data.img,format=raw" \
-m 2G \
-nic user,model=virtio,hostfwd=tcp:0.0.0.0:2222-:22 \
-smp $(nproc) \
-nographic \
-monitor null

View File

@@ -0,0 +1,8 @@
#cloud-config
password: vulhub
chpasswd: { expire: False }
ssh_pwauth: True
package_upgrade: false
packages:
- make
- gcc