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.3.tar.gz
(4.0 kB
view hashes)
Built Distribution
Close
Hashes for enochecker_async-0.4.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c3fd446c108a320de616887f8085c3d11a61048534f669e5eebe820b0889ea64 |
|
MD5 | ee334b0c05e41494086406a47bb841d3 |
|
BLAKE2b-256 | 143e5ce8394b5de18ac5b05e1c97d0e858dd238e0554094bcb387f60193f40a1 |