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
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:
23
base/polkit/0.105-old/Dockerfile
Normal file
23
base/polkit/0.105-old/Dockerfile
Normal file
@@ -0,0 +1,23 @@
|
||||
FROM ubuntu:focal
|
||||
|
||||
LABEL maintainer="phithon <root@leavesongs.com>"
|
||||
|
||||
RUN set -ex \
|
||||
&& apt-get update \
|
||||
&& apt-get install -y --no-install-recommends wget ca-certificates make gcc libc-dev \
|
||||
# dependencies for policykit
|
||||
libglib2.0-0 libpam-systemd dbus
|
||||
|
||||
RUN set -ex \
|
||||
&& cd /tmp \
|
||||
&& wget http://archive.ubuntu.com/ubuntu/pool/main/p/policykit-1/libpolkit-backend-1-0_0.105-14.1ubuntu0.5_amd64.deb \
|
||||
&& wget http://archive.ubuntu.com/ubuntu/pool/main/p/policykit-1/policykit-1_0.105-14.1ubuntu0.5_amd64.deb \
|
||||
&& wget http://archive.ubuntu.com/ubuntu/pool/main/p/policykit-1/libpolkit-gobject-1-0_0.105-14.1ubuntu0.5_amd64.deb \
|
||||
&& wget http://archive.ubuntu.com/ubuntu/pool/main/p/policykit-1/libpolkit-agent-1-0_0.105-14.1ubuntu0.5_amd64.deb \
|
||||
&& dpkg -i libpolkit-gobject-1-0_0.105-14.1ubuntu0.5_amd64.deb \
|
||||
&& dpkg -i libpolkit-backend-1-0_0.105-14.1ubuntu0.5_amd64.deb \
|
||||
&& dpkg -i libpolkit-agent-1-0_0.105-14.1ubuntu0.5_amd64.deb \
|
||||
&& dpkg -i policykit-1_0.105-14.1ubuntu0.5_amd64.deb \
|
||||
&& rm -rf /tmp/*.deb
|
||||
|
||||
USER nobody
|
31
base/polkit/0.105/Dockerfile
Normal file
31
base/polkit/0.105/Dockerfile
Normal 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
|
8
base/polkit/0.105/user-data
Normal file
8
base/polkit/0.105/user-data
Normal file
@@ -0,0 +1,8 @@
|
||||
#cloud-config
|
||||
password: vulhub
|
||||
chpasswd: { expire: False }
|
||||
ssh_pwauth: True
|
||||
package_upgrade: false
|
||||
packages:
|
||||
- make
|
||||
- gcc
|
Reference in New Issue
Block a user