themis.attack

Themis Finals attack helper library


License
MIT
Install
pip install themis.attack==1.0.0

Documentation

themis-attack-py

Latest Version License Dependencies status Code Climate
Themis Finals attack helper library.

Installation

$ pip install themis.attack

Usage

Command line mode

$ THEMIS_HOST=10.0.0.2 themis-attack 035585b41e6bbd70834a05690d2575ad=

Note: 10.0.0.2 stands for and IP address of contest checking system.

You can pass several flags at once. Please be aware of flag submitting restrictions (see Themis Attack Protocol for additional information).

Library mode

from themis.attack import Carrier

carrier = Carrier('10.0.0.2')
flags = [
    '035585b41e6bbd70834a05690d2575ad=',
    'cdfdc8cbdcbe4c1e2e7378c52e1f35a5='
]

results = carrier.attack(*flags)  # [0, 0] - stands for two successful attacks

To get information about all available result codes, please check out Themis Attack Protocol.
Note: themis.attack.Carrier.attack method can throw exceptions. These exceptions are subclasses of themis.attack.AttackBaseError class.

See also

License

MIT @ Alexander Pyatkin