Library to build async checker scripts for the EnoEngine A/D CTF Framework in Python
Project description
EnoChecker Async
This is the asynchronous python variant of the ENOWARS checkerlib.
Implementing an asynchronous checker
Consumers must extend the BaseChecker class:
class DemoChecker(BaseChecker):
port = 8000
def __init__(self):
super(DemoChecker, self).__init__("Demo", 8080, 2, 0, 0) # 2 flags, 0 noises, 0 havocs
async def putflag(self, logger: LoggerAdapter, task: CheckerTaskMessage, collection: MotorCollection) -> None:
pass
async def getflag(self, logger: LoggerAdapter, task: CheckerTaskMessage, collection: MotorCollection) -> None:
pass
async def putnoise(self, logger: LoggerAdapter, task: CheckerTaskMessage, collection: MotorCollection) -> None:
pass
async def getnoise(self, logger: LoggerAdapter, task: CheckerTaskMessage, collection: MotorCollection) -> None:
pass
async def havoc(self, logger: LoggerAdapter, task: CheckerTaskMessage, collection: MotorCollection) -> None:
pass
For a full example, check out the WASP checker.
Testing your checker
enochecker_cli is a nice cli tool that you can use to send tasks to your checker.
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
enochecker_async-0.4.0.tar.gz
(3.5 kB
view hashes)
Built Distribution
Close
Hashes for enochecker_async-0.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ecfc5444cefca7b576466a24a40461074fe3bed8bc258a59a2584a2c41cad9b1 |
|
MD5 | ca29d82fd5156500178b2147ecd7c01e |
|
BLAKE2b-256 | f5a596d96d6e4c5c369e39391ca1be7918a648ce9dba83398eb9b37dcf8bad7a |