Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tcpdump to the image and update the binaries #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 11 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
FROM ubuntu:18.04
FROM ubuntu:22.04
MAINTAINER g00fb4ll <[email protected]>
COPY fubers /tmp/fubers
ADD https://download.docker.com/linux/static/stable/x86_64/docker-20.10.7.tgz /tmp/docker/docker-20.10.7.tgz
RUN tar -zxvf /tmp/docker/docker-20.10.7.tgz -C /tmp
ADD https://download.docker.com/linux/static/stable/x86_64/docker-24.0.8.tgz /tmp/docker/docker-24.0.8.tgz
RUN tar -zxvf /tmp/docker/docker-24.0.8.tgz -C /tmp
RUN cp /tmp/docker/docker /tmp/gdocker
ADD https://dl.k8s.io/release/v1.18.0/bin/linux/amd64/kubectl /tmp/gkubectl
ADD https://dl.k8s.io/release/v1.27.0/bin/linux/amd64/kubectl /tmp/gkubectl
RUN chmod +x /tmp/gkubectl
ADD https://github.com/cyberark/kubeletctl/releases/download/v1.7/kubeletctl_linux_amd64 /tmp/kubeletctl
ADD https://github.com/cyberark/kubeletctl/releases/download/v1.11/kubeletctl_linux_amd64 /tmp/kubeletctl
RUN chmod a+x /tmp/kubeletctl

RUN apt-get -y update && apt-get install -y curl && apt-get -y install wget && \
RUN apt-get -y update
RUN apt-get install -y curl
RUN apt-get -y install wget && \
apt-get -y install netcat && apt-get install sudo && apt-get -y install redis-tools && \
apt-get -y install netdiscover
apt-get -y install netdiscover && apt-get install tcpdump

WORKDIR /tmp
RUN ln -s /bin/bash /tmp/gbash
RUN ln -s /usr/bin/nsenter /tmp/runc-nsenter

CMD ["/tmp/gbash"]
CMD ["/tmp/gbash"]