covertutils.payloads.generic package¶
Submodules¶
covertutils.payloads.generic.control module¶
covertutils.payloads.generic.echo module¶
covertutils.payloads.generic.example module¶
This code isn’t really useful and it is meant to be a guide for making custom stages using the covertutils
API
-
covertutils.payloads.generic.example.
init
(storage)[source]¶ Parameters: storage (dict) – The storage object is the only persistent object between runs of both init() and work(). It is treated as a “Local Storage” for the stage. Returns: This function must always return True if the initialization is succesfull. If False values are returned the stage doesn’t start and work() is never called.
-
covertutils.payloads.generic.example.
work
(storage, message)[source]¶ Parameters: - storage (dict) – The storage object is the only persistent object between runs of both init() and work(). It is treated as a “Local Storage” for the stage.
- message (str) – The data sent from the Handler to that stage.
Return type: str
Returns: The response to message that arrived. This exact response will reach the Handler in the other side.