Integrating C2s
The elements of Zuthaka are instances over implemented abstract classes that define the general behavior of a C2.
Class Handlers
Implementing C2 Type Class handler connections:
Attributes and Options Descriptions
from ..c2 import C2, Listener, ListenerType, Launcher, LauncherType, Options, OptionDesc
class TemplateC2Type(C2):
# all this information is given to the user when using the interface
name = 'template_c2'
description = 'this is an example C2'
documentation = 'https://super.awesome.c2/docs/'
registered_options = [
OptionDesc(
name='url',
description='Url of the corresponding API',
example='https://127.0.0.1:31337',
field_type='string',
required=True
),
OptionDesc(
name='username',
description='user owner of the API',
example='pucara',
field_type='string',
required=True
),
OptionDesc(
name='password',
description='Url of the corresponding API',
example='p4ssw0rd',
field_type='string',
required=True
),
]
...

Behavior Abstract Methods
Implementing Listener Type Class
Attributes and Options Descriptions
Behavior Abstract Methods
Implementing Launcher Type Class
Attributes and Options Descriptions
Behavior Abstract Methods
Implementing Agent Type Class
Behavior Abstract Methods
Last updated
Was this helpful?