covertutils package



covertutils.exceptions module

All exception of covertutils package are provided centrically in this module.

exception covertutils.exceptions.InvalidChunkException[source]

Bases: exceptions.Exception

Exception thrown when the chunks are invalid

exception covertutils.exceptions.NoFunctionAvailableException[source]

Bases: exceptions.Exception

This Exception is raised when the received stream does not have a corresponding function.

exception covertutils.exceptions.StegoDataExtractionException[source]

Bases: exceptions.Exception

This Exception is thrown whenever data extraction from a Data is not possible

exception covertutils.exceptions.StegoDataInjectionException[source]

Bases: exceptions.Exception

This Exception is thrown whenever given data cannot be properly injected in Data

exception covertutils.exceptions.StegoSchemeParseException[source]

Bases: exceptions.Exception

This Exception is thrown whenever the StegoScheme syntax gets violated

exception covertutils.exceptions.StreamAdditionException[source]

Bases: exceptions.Exception

This Exception is thrown if any issue happens in stream addition.

exception covertutils.exceptions.StreamAlreadyExistsException[source]

Bases: covertutils.exceptions.StreamAdditionException

This Exception is thrown if an existing stream is tried to be re-added.

exception covertutils.exceptions.StreamDeletionException[source]

Bases: exceptions.Exception

This Exception is thrown if the deletion of a stream is not possible.

exception covertutils.exceptions.TemplateNotFoundException[source]

Bases: exceptions.Exception

This Exception is thrown when the template passed as argument is not available in the covertutils.datamanipulation.stegoinjector.StegoInjector configuration string

covertutils.helpers module

exception covertutils.helpers.CovertUtilsException[source]

Bases: exceptions.Exception

General Exception for raising in helper functions

covertutils.helpers.copydoc(fromfunc, sep='\n')[source]

Decorator: Copy the docstring of fromfunc

covertutils.helpers.defaultArgMerging(defaults, kwargs)[source]
covertutils.helpers.permutate(list_, number_set)[source]
covertutils.helpers.str_similar(a, b)[source]
covertutils.helpers.sxor(s1, s2)[source]
covertutils.helpers.xor_str(s1, s2)[source]

Module contents

The covertutils module provides ready plug-n-play tools for Remote Code Execution Agent programming. Features like chunking, encryption, data identification are all handled transparently by its classes. The SimpleOrchestrator handles all data manipulation, and the Handlers.BaseHandler derivative classes handle the agent’s and handler’s actions and responses.

The module does not provide networking functionalities. All networking has to be wrapped by two functions (a sender and a receiver functions) and Handlers will use those for raw_data.