Last active
May 9, 2023 08:38
-
-
Save thomashartm/4aaf0c2b6d1562b9e03c49ab39969886 to your computer and use it in GitHub Desktop.
Dockerfile providing golang and python 3 inside a kali linux container
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM kalilinux/kali-rolling | |
######## | |
# The purpose of the this container is quickly hacking some security testing scripts and tools. | |
# Put the file into your local dev project, add the required tools, build the image and run it. | |
# Mount your local folder for development. | |
# Howto: | |
# | |
# docker build --no-cache -t <image-name> . | |
# | |
# docker run --rm -it -v $(pwd):/usr/src <image-name> | |
# | |
######## | |
# OS update | |
RUN apt-get update && apt-get -yu dist-upgrade -y | |
# Install golang | |
RUN apt-get install -y golang-go | |
# Python env and tools installation | |
RUN apt-get install -y python3-pip python3-dev \ | |
&& cd /usr/local/bin \ | |
&& ln -s /usr/bin/python3 python \ | |
&& pip3 install --upgrade pip \ | |
&& apt-get install -y \ | |
wget \ | |
nmap \ | |
sslyze \ | |
nikto \ | |
theharvester \ | |
whois \ | |
dnsmap | |
ENV GOROOT=/usr/lib/go | |
ENV GOPATH=$HOME/go | |
ENV PATH=$GOPATH/bin:$GOROOT/bin:$PATH | |
RUN mkdir -p /usr/src | |
WORKDIR /usr/src | |
# enable if needed | |
#COPY requirements.txt . | |
#RUN pip install -r requirements.txt | |
VOLUME /usr/src |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Unable to locate package golang-go
Error code: executor failed running [/bin/sh -c apt-get install -y golang-go]: exit code: 100