enochecker-async-0.5.0
توضیحات
Library to build async checker scripts for the EnoEngine A/D CTF Framework in Python
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | enochecker-async-0.5.0 |
| نام | enochecker-async |
| نسخه کتابخانه | 0.5.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Trolldemorted |
| ایمیل نویسنده | benediktradtke@gmail.com |
| آدرس صفحه اصلی | https://github.com/enowars/enochecker_async |
| آدرس اینترنتی | https://pypi.org/project/enochecker-async/ |
| مجوز | - |
# EnoChecker Async [](https://dev.azure.com/ENOFLAG/ENOWARS/_build) 
This is the asynchronous python variant of the ENOWARS checkerlib.
### Implementing an asynchronous checker
Consumers must extend the BaseChecker class:
```python
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](https://github.com/enowars/service-wasp/blob/master/checker/checker.py).
### Testing your checker
[enochecker_cli](https://github.com/enowars/enochecker_cli) is a nice cli tool that you can use to send tasks to your checker.
نیازمندی
| مقدار | نام |
|---|---|
| ==0.9.0 | enochecker-core |
| ==1.4.2 | jsons |
| ==2.4.0 | motor |
| ==3.11.3 | pymongo |
| ==6.1 | tornado |
| ==1.9.2 | typish |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7 | Python |
نحوه نصب
نصب پکیج whl enochecker-async-0.5.0:
pip install enochecker-async-0.5.0.whl
نصب پکیج tar.gz enochecker-async-0.5.0:
pip install enochecker-async-0.5.0.tar.gz