Meduza.Agent.ModuleBase is a NuGet package designed to simplify the creation of custom modules for the Meduza project.
To install the Meduza.Agent.ModuleBase NuGet package, use one of the following methods:
dotnet add package Meduza.Agent.ModuleBase --version <latest_version>Install-Package Meduza.Agent.ModuleBase -Version <latest_version>Follow the steps below to start developing a custom module:
The IModule interface serves as the foundation for all modules. Create a new class that implements this interface.
using Meduza.Agent.ModuleBase;
public class MyCustomModule : IModule
{
public string Name => "MyCustomModule";
public List<ICommand> Commands { get; set; } = new List<ICommand>();
}Commands are at the core of the module's functionality. Each command should implement the ICommand interface.
using Meduza.Agent.ModuleBase;
public class HelloWorldCommand : ICommand
{
public string Name => "HelloWorld";
public string Execute(string[] parameters)
{
return "Hello, World!";
}
}For a usage example, check out the Meduza.ListDirectory repository.
Any contributions are welcome! If you encounter issues or have ideas for improvement, feel free to submit a pull request or open an issue on the GitHub repository.
This package is licensed under the MIT License.