Library to build async checker scripts for the EnoEngine A/D CTF Framework in Python
Project description
EnoChecker Async
![](https://pypi-camo.freetls.fastly.net/457440f564c1e884256307aa9998a9565f6efa0f/68747470733a2f2f746f6b65692e72732f62312f6769746875622f656e6f776172732f656e6f636865636b65725f6173796e63)
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.1.tar.gz
(3.9 kB
view hashes)
Built Distribution
Close
Hashes for enochecker_async-0.4.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f6a86955c44a30e63a8c10202daa746468fe6f036d5c9a189062cbb7b75da74 |
|
MD5 | 49ec862292aac7a59b4883cf8d8c4d29 |
|
BLAKE2b-256 | f05634cb93160f58fa553e023fe45e1ca3d50865755bbea215cf7b77895552f1 |