Skip to content

Instantly share code, notes, and snippets.

@astellon
Created December 1, 2021 01:23
Show Gist options
  • Save astellon/ac65e7e3c73fcc47ced3e7b52a137e3f to your computer and use it in GitHub Desktop.
Save astellon/ac65e7e3c73fcc47ced3e7b52a137e3f to your computer and use it in GitHub Desktop.
TryHackMe用のKali Linux環境
version: '3'
services:
tryhackme:
container_name: tryhackme
build:
context: .
dockerfile: Dockerfile
volumes:
- ./workspace:/workspace
devices:
- /dev/net/tun:/dev/net/tun
environment:
- OVPN_CONF=Astellon.ovpn
cap_add:
- NET_ADMIN
FROM kalilinux/kali
ARG OVPN_CONF
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && apt-get install kali-linux-default -yqq -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold"
COPY ./entrypoint.sh /
COPY ${OVPN_CONF} /
ENTRYPOINT ["/entrypoint.sh"]
#!/bin/sh
openvpn --daemon --config ${OVPN_CONF}
exec "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment