Skip to main content

Low-interaction honeyclient Thug

Project description

version badge travis badge Code Health codefactor badge codecov badge

The number of client-side attacks has grown significantly in the past few years shifting focus on poorly protected vulnerable clients. Just as the most known honeypot technologies enable research into server-side attacks, honeyclients allow the study of client-side attacks.

A complement to honeypots, a honeyclient is a tool designed to mimic the behavior of a user-driven network client application, such as a web browser, and be exploited by an attacker’s content.

Thug is a Python low-interaction honeyclient aimed at mimicing the behavior of a web browser in order to detect and emulate malicious contents.

Documentation

docs badge

Documentation about Thug installation and usage can be found at http://thug-honeyclient.readthedocs.io/.

Contributions

donate badge

Thug is open source and we welcome contributions in all forms!

Thug is free to use for any purpose (even commercial ones). If you use and appreciate Thug, please consider supporting the project with a donation using Paypal.

Development Setup

To setup a development environment, follow the steps:

git clone https://github.com/buffer/thug.git
cd thug
./dev/dev.sh

The dev script will create a virtualenv environment in a directory called “venv” and install all the mandatory and optional dependencies into it. Thug is installed as a permanent package and the package needs to be installed again executing pip install . in order to compile all the changes.

If you want to install Thug as an “editable”, please replace line 11 in dev.sh by the following line and re-run dev.sh

pip2 install -e .

Installing Thug as an “editable” allows changes to the source in the repository to be reflected in the virtualenv.

Make sure that you successfully installed Thug by running the following commands:

. venv/bin/activate
thug --version

Testing

To run the full test suite using tox, run the command:

tox

Since tox builds and installs dependencies from scratch, using pytest for faster testing is recommended:

pytest --cov thug

Support

Thanks to JetBrains for free PyCharm licenses!

License information

Copyright (C) 2011-2019 Angelo Dell’Aera <angelo.dellaera@honeynet.org>

License: GNU General Public License, version 2

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

thug-0.10.1.tar.gz (670.3 kB view details)

Uploaded Source

File details

Details for the file thug-0.10.1.tar.gz.

File metadata

  • Download URL: thug-0.10.1.tar.gz
  • Upload date:
  • Size: 670.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8

File hashes

Hashes for thug-0.10.1.tar.gz
Algorithm Hash digest
SHA256 54acd0faaab033b79d829ac323500dc728bfb4fe74eb69cce644e68dfa6e5261
MD5 d980ce2d8edc4f44bb324dbd41f6d5d5
BLAKE2b-256 36de9baeb6dcb4fdd274ba790e2f45da0c2f53b24f840ac280bedc25c6319f05

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page