Modlishk Script Functionality Enhancement
Budget: $15 – $25 USD
Please indicate the timing and cost of the final result
The task is to implement functionality for modifying requests in the Modlishka script using a plugin and extend the -rules parameter for more flexible control over HTTP requests and responses. Currently, the -rules parameter in the Modlishka script only replaces the content of the HTTP response body. It is necessary to expand this functionality to be able to modify not only the response body but also the request parameters.
The input parameters for the HTTP request processing function (s.HTTPRequest): req *http.Request - a request object that can be modified. context HTTPContext - the request context containing necessary information. // Example function for processing HTTP requests s.HTTPRequest = func(req *http.Request, context HTTPContext) { // Your code for modifying request parameters or response body // ... }
Acceptance criteria:
Ability to modify request parameters using the new functionality.
The plugin works correctly and integrates into the Modlishka script without errors.
Adherence to Go (Golang) coding and security standards.
Testing for the correct execution of the task of modifying requests and responses.
https://github.com/drk1wi/Modlishka/
The task is to implement functionality for modifying requests in the Modlishka script using a plugin and extend the -rules parameter for more flexible control over HTTP requests and responses. Currently, the -rules parameter in the Modlishka script only replaces the content of the HTTP response body. It is necessary to expand this functionality to be able to modify not only the response body but also the request parameters.
The input parameters for the HTTP request processing function (s.HTTPRequest): req *http.Request - a request object that can be modified. context HTTPContext - the request context containing necessary information. // Example function for processing HTTP requests s.HTTPRequest = func(req *http.Request, context HTTPContext) { // Your code for modifying request parameters or response body // ... }
Acceptance criteria:
Ability to modify request parameters using the new functionality.
The plugin works correctly and integrates into the Modlishka script without errors.
Adherence to Go (Golang) coding and security standards.
Testing for the correct execution of the task of modifying requests and responses.
https://github.com/drk1wi/Modlishka/