-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (27 loc) · 1.17 KB
/
Dockerfile
File metadata and controls
32 lines (27 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
FROM hackinglab/alpine-base:3.2
MAINTAINER Ivan Buetler <ivan.buetler@compass-security.com>
ENV SIAB_USERCSS="Normal:+/etc/shellinabox/options-enabled/00_White-On-Black.css,Reverse:-/etc/shellinabox/options-enabled/00+Black-on-White.css;Colors:+/etc/shellinabox/options-enabled/01+Color-Terminal.css,Monochrome:-/etc/shellinabox/options-enabled/01_Monochrome.css" \
SIAB_PORT=4200 \
SIAB_ADDUSER=true \
SIAB_USER=hacker \
SIAB_USERID=1337 \
SIAB_GROUP=hacker \
SIAB_GROUPID=1337 \
SIAB_PASSWORD=compass \
SIAB_SHELL=/bin/bash \
SIAB_HOME=/home/hacker \
SIAB_SUDO=false \
SIAB_SSL=true \
SIAB_SERVICE=/:LOGIN \
SIAB_PKGS=none \
SIAB_SCRIPT=none
# ENV SIAB_USERCSS="Normal:+/etc/shellinabox/options-enabled/00+Black-on-White.css,Reverse:-/etc/shellinabox/options-enabled/00_White-On-Black.css;Colors:+/etc/shellinabox/options-enabled/01+Color-Terminal.css,Monochrome:-/etc/shellinabox/options-enabled/01_Monochrome.css"
# Add the files
ADD root /
RUN apk add --update bash openssl curl sudo && \
rm -rf /var/cache/apk/* && \
adduser -D -H -h /home/shellinabox shellinabox && \
mkdir /var/lib/shellinabox && \
chmod +s /bin/su
# Expose the ports for nginx
EXPOSE 80