Python API

Hakku Framework does have a simple python API, that can be used to run commands. The module must support API if you want some data back from the module when you execute it.

Here is an example:

from hakku import api # Import api

hakku = api.Hakkuapi(False) # Create hakku object (agurment: enable stdout)
hakku.loadModule("zip_cracker") # Load modulke zip_cracker
hakku.setVariable("file", "hakku/core/tmp/test.zip") # Set target zip file
print(hakku.runModule()) # Print results

API reference

Exceptions