Skip to content

Commit

Permalink
Merge branch 'release/2.2.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
fedelemantuano committed Jan 13, 2018
2 parents 13a6e77 + 704a99d commit 14588b4
Show file tree
Hide file tree
Showing 33 changed files with 754 additions and 181 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ _build
_resources
build/
dist/
logs
virtualenvs
logs/
venv/
7 changes: 4 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ env:
before_install:
- sudo apt-get -qq update
- >
sudo apt-get install -y
sudo apt-get -yqq --no-install-recommends install
build-essential
cmake
libfuzzy-dev
unrar
- sudo apt-get -y -o Dpkg::Options::="--force-confnew" install docker-ce
#- sudo apt-get -y -o Dpkg::Options::="--force-confnew" install docker-ce

# Build latest images spamscope-root, spamscope-elasticsearch
# make images
Expand All @@ -51,6 +51,7 @@ before_install:
install:
- pip install --upgrade pip setuptools
- python setup.py install
- pip install -r requirements_optional.txt
- git clone https://$BITBUCKET_USER:[email protected]/$BITBUCKET_USER/zemana-api.git $ZEMANA_PATH && cd $ZEMANA_PATH && python setup.py install && cd -
- src/cli/faup.sh
- pip install coveralls
Expand All @@ -61,7 +62,7 @@ before_script:
# command to run tests
script:
# Unittests and coverage
- coverage run --include=src/modules/* --omit=src/modules/abstracts.py -m unittest discover -s tests -f -v
- coverage run --include=src/modules/* --omit=src/modules/abstracts.py,src/modules/mails/spamassassin_analysis.py -m unittest discover -s tests -f -v

# timing
- python tests/timing_test_search_keywords.py
Expand Down
24 changes: 21 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,20 +87,29 @@ For more details please visit the [wiki page](https://github.com/SpamScope/spams
Clone repository

```
git clone https://github.com/SpamScope/spamscope.git
$ git clone https://github.com/SpamScope/spamscope.git
```

then enter in SpamScope directory and install it:

```
python setup.py install
$ python setup.py install
```
or

```
pip install SpamScope
$ pip install SpamScope
```

If you want to install all optional packages:

```
$ git clone https://github.com/SpamScope/spamscope.git
$ pip install -r requirements_optional
```

Thug is not in requirements_optional. To install it go in Thug section.

### Faup
[Faup](https://github.com/stricaud/faup) stands for Finally An Url Parser and is a library and command line tool to parse URLs and normalize fields.
To install it follow the [wiki](https://github.com/SpamScope/spamscope/wiki/Installation#faup).
Expand All @@ -125,6 +134,15 @@ Thug is a Python low-interaction honeyclient aimed at mimicing the behavior of a

You can see a complete SpamScope report with Thug analysis [here](https://goo.gl/Y4kWCv).

Thug analysis can be very slow and you can have `heartbeat timeout` in Apache Storm.
To avoid any issue set `supervisor.worker.timeout.secs`:

```
nr. user agents * timeout_thug < supervisor.worker.timeout.secs
```

The best value for `threshold` is 1.

### VirusTotal (optional)
It's possible add to results (for mail attachments and sender ip address) the VirusTotal report. You need a private API key.

Expand Down
24 changes: 21 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -126,19 +126,28 @@ Clone repository

::

git clone https://github.com/SpamScope/spamscope.git
$ git clone https://github.com/SpamScope/spamscope.git

then enter in SpamScope directory and install it:

::

python setup.py install
$ python setup.py install

or

::

pip install SpamScope
$ pip install SpamScope

If you want to install all optional packages:

::

$ git clone https://github.com/SpamScope/spamscope.git
$ pip install -r requirements_optional

Thug is not in requirements\_optional. To install it go in Thug section.

Faup
~~~~
Expand Down Expand Up @@ -183,6 +192,15 @@ What is Thug? From README project:
You can see a complete SpamScope report with Thug analysis
`here <https://goo.gl/Y4kWCv>`__.

Thug analysis can be very slow and you can have ``heartbeat timeout`` in
Apache Storm. To avoid any issue set ``supervisor.worker.timeout.secs``:

::

nr. user agents * timeout_thug < supervisor.worker.timeout.secs

The best value for ``threshold`` is 1.

VirusTotal (optional)
~~~~~~~~~~~~~~~~~~~~~

Expand Down
Loading

0 comments on commit 14588b4

Please sign in to comment.