This repository has been archived by the owner on Dec 16, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 184
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
64 additions
and
3 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# | ||
# This Docker image encapsulates Maltrieve, a tool to retrieve malware | ||
# directly from the source for security researchers. | ||
# which was created by Kyle Maxwell (technoskald) and is | ||
# available at https://github.com/technoskald/maltrieve. | ||
# | ||
# The file below is based on ideas from Spenser Reinhardt's Dockerfile | ||
# (https://registry.hub.docker.com/u/sreinhardt/honeynet/dockerfile) | ||
# and on instructions outlined by M. Fields (@shakey_1). | ||
# | ||
# To run this image after installing Docker, use a command like this: | ||
# | ||
# sudo docker run --rm -it technoskald/maltrieve bash | ||
# | ||
# then run ./maltrieve.py with the desired parameters. | ||
|
||
FROM ubuntu:14.04 | ||
MAINTAINER Michael Boman <[email protected]> | ||
|
||
USER root | ||
RUN apt-get update && \ | ||
apt-get install -y --no-install-recommends \ | ||
gcc \ | ||
git \ | ||
libpython2.7-stdlib \ | ||
python2.7 \ | ||
python2.7-dev \ | ||
python-pip \ | ||
python-setuptools && \ | ||
|
||
rm -rf /var/lib/apt/lists/* && \ | ||
|
||
groupadd -r maltrieve && \ | ||
useradd -r -g maltrieve -d /home/maltrieve -s /sbin/nologin -c "Maltrieve User" maltrieve | ||
|
||
WORKDIR /home | ||
RUN git clone https://github.com/technoskald/maltrieve.git && \ | ||
cd maltrieve && \ | ||
pip install -r requirements.txt && \ | ||
chown -R maltrieve:maltrieve /home/maltrieve | ||
|
||
USER maltrieve | ||
ENV HOME /home/maltrieve | ||
ENV USER maltrieve | ||
WORKDIR /home/maltrieve | ||
CMD ["./maltrieve.py"] | ||
|
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