File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -5,9 +5,9 @@ ENV DEBIAN_FRONTEND=noninteractive
55
66# 0 - core packages
77RUN apt-get update && \
8- apt-get install -y --no-install-recommends \
9- openssh-server sudo gcc make curl wget python3 && \
10- apt-get clean && rm -rf /var/lib/apt/lists/*
8+ apt-get upgrade -y && \
9+ apt-get install -y openssh-server && \
10+ apt-get autoremove -y
1111
1212# 1 - users / passwords (root: aim8Du7h - lowpriv: trustno1)
1313RUN useradd -m -s /bin/bash lowpriv && \
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22set -e
3- apt-get update && apt-get install -y sudo && apt-get clean
3+ apt-get update && apt-get install -y sudo less man && apt-get clean
44echo " lowpriv ALL=(ALL) NOPASSWD:/usr/bin/less, /usr/bin/man" > /etc/sudoers.d/gtfo-int
55chmod 440 /etc/sudoers.d/gtfo-int
You can’t perform that action at this time.
0 commit comments