Last active
November 19, 2015 12:05
-
-
Save eoftedal/474e5e0adf239f6cf47e to your computer and use it in GitHub Desktop.
Dockerfile for BeEF
This file contains 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 ubuntu | |
RUN apt-get update && apt-get upgrade -y && apt-get install -y build-essential libsqlite3-dev sqlite3 libssl-dev curl | |
RUN apt-get install -y software-properties-common && \ | |
apt-add-repository -y ppa:brightbox/ruby-ng && \ | |
apt-get update && \ | |
apt-get install -y ruby2.1 ruby2.1-dev | |
WORKDIR /opt/ | |
RUN locale-gen en_US.UTF-8 | |
ENV LC_ALL en_US.UTF-8 | |
RUN curl https://codeload.github.com/beefproject/beef/tar.gz/beef-0.4.6.1 -o beef-0.4.6.1.tar.gz && \ | |
tar xzf beef-0.4.6.1.tar.gz && \ | |
rm beef-0.4.6.1.tar.gz && \ | |
ln -s beef-beef-0.4.6.1 beef && \ | |
cd beef && \ | |
gem install --no-rdoc --no-ri bundler && \ | |
bundle install && \ | |
useradd -r -s /bin/false beef && \ | |
chown -R beef /opt/beef | |
COPY config.yaml /opt/beef/ | |
WORKDIR /opt/beef/ | |
CMD sudo -u beef ./beef |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment