- Carnivore - Predator
- Formerly known as THC HackSuite, Carnivore - Predator stands at the forefront of cutting-edge cybersecurity tools, redefining the landscape of penetration testing with unparalleled innovation. Designed to empower ethical hackers, security professionals, and enthusiasts alike, Carnivore - Predator is the ultimate Pentest CMS that puts you in command.
Carnivore Module Creation Part 6
In this final part we will be discussing how to collect ModGlue variables for your modules in Carnivore.
This is the easiest step and even though not mandatory, it will definitely help when using your module in ModGlue because you will be able to see which ModGlue variables are set without browsing the code.
Previously we already discussed that screen files require a switch statement so ModGlue will have basic understanding of how to interact with the module. ModGlue variables always have the following structure:
$_CONTEXT['current_module_folder_here']['some_variable'] = "some value";
These variables can have multiple dimensions so arrays are also allowed.
In order to index the ModGlue variables, we need to add a ModGlue variable first:
This creates a variable that holds the current time, as you can see when you click on the submit button it will show the current time and date:
Now that we have created a ModGlue variable, begin the process by clicking on the 'List All Projects' link in the Development tab, as shown below:
Locate the module we have created earlier and click on the ModGlue variables link:
This will bring up the screen below, click on the button and this tool will look for ModGlue variables in the screen file:
After clicking the button Carnivore, as a result, will add the ModGlue documentation to the screen file as you can see below:
This concludes the module creation documentation.