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.
Merge pull request #110 from krmaxwell/dev
v0.7 release
- Loading branch information
Showing
20 changed files
with
583 additions
and
635 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 |
---|---|---|
|
@@ -52,3 +52,6 @@ maltrieve.out | |
archive | ||
grequests | ||
*.bak | ||
*.json | ||
screenlog* | ||
README.html |
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,17 @@ | ||
- repo: git://github.com/pre-commit/pre-commit-hooks | ||
sha: master | ||
hooks: | ||
- id: autopep8-wrapper | ||
args: ['-i', '--ignore=E501'] | ||
- id: check-json | ||
- id: check-yaml | ||
- id: end-of-file-fixer | ||
- id: flake8 | ||
args: [--max-line-length=256] | ||
- id: trailing-whitespace | ||
|
||
- repo: git://github.com/ivanlei/pre-commit-python-sorter | ||
sha: master | ||
hooks: | ||
- id: python-import-sorter | ||
args: [--silent-overwrite, --force_single_line] |
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
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,4 @@ | ||
test: | ||
override: | ||
- py.test --cov maltrieve test.py | ||
- coveralls |
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 |
---|---|---|
@@ -1,47 +1,49 @@ | ||
# | ||
# 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. | ||
# which was created by Kyle Maxwell (krmaxwell) and is | ||
# available at https://github.com/krmaxwell/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. | ||
# sudo docker run --rm -it technoskald/maltrieve | ||
|
||
FROM ubuntu:14.04 | ||
MAINTAINER Michael Boman <[email protected]> | ||
|
||
USER root | ||
RUN apt-get update && \ | ||
apt-get install -y --no-install-recommends \ | ||
apt-get dist-upgrade -y | ||
RUN 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/* && \ | ||
|
||
python-setuptools | ||
RUN rm -rf /var/lib/apt/lists/* && \ | ||
pip install --upgrade pip && \ | ||
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 && \ | ||
RUN git clone https://github.com/krmaxwell/maltrieve.git && \ | ||
cd maltrieve && \ | ||
pip install -r requirements.txt && \ | ||
git checkout dev && \ | ||
pip install -e . && \ | ||
chown -R maltrieve:maltrieve /home/maltrieve | ||
|
||
RUN mkdir /archive && \ | ||
chown maltrieve:maltrieve /archive | ||
|
||
USER maltrieve | ||
ENV HOME /home/maltrieve | ||
ENV USER maltrieve | ||
WORKDIR /home/maltrieve | ||
CMD ["./maltrieve.py"] | ||
|
||
ENTRYPOINT ["maltrieve"] | ||
CMD ["-d", "/archive/samples", "-l", "/archive/maltrieve.log"] |
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,18 @@ | ||
[Maltrieve] | ||
dumpdir = archive-test | ||
logfile = maltrieve-test.log | ||
logheaders = true | ||
User-Agent = Test-Agent | ||
proxy = 127.0.0.1:3128 | ||
|
||
#viper = http://127.0.0.1:8080 | ||
#cuckoo = http://127.0.0.1:8090 | ||
#vxcage = http://127.0.0.1:8080 | ||
crits = http://127.0.0.1:8080 | ||
crits_user = maltrieve | ||
crits_key = YOUR_API_KEY_HERE | ||
crits_source = maltrieve | ||
|
||
# Filter Lists are based on mime type NO SPACE BETWEEN , | ||
black_list = text/html,text/plain | ||
white_list = application/pdf,application/x-dosexec |
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
Oops, something went wrong.