How to write custom payloads
masterCustom payloads are defined in JSON files and placed in the /payload/ directory (or a subdirectory within it). You can target specific parts of an HTTP request using 'zones'.
Supported Zones
URL: Request pathARGS: Query parametersBODY: Request bodyCOOKIE: CookiesUSER-AGENT: User-Agent headerREFERER: Referer headerHEADER: Custom headersMETHOD: HTTP method
Special Features
- Randomization: Use the
%RND%suffix to generate a random 6-character alphanumeric string (e.g.,param=%RND%). - Encoding: For
ARGS,BODY,COOKIE, andHEADERzones, you can specify encoding types likeBase64,HTML-ENTITY, orUTF-16. Multiple values are space-separated (e.g.,Base64 UTF-16). - JSON Body: Use the
JSONkey to specify the request body should be in JSON format. - Blocking Logic: Use the
BLOCKEDkey to specify if the request should be blocked (for False Negative testing) or not (for False Positive testing).
Directory-Specific Rules
- API Directory: Payloads here automatically include the
Content-Type: application/jsonheader. - MFD (multipart/form-data) Directory: Requires a
BODY(required) and an optionalBOUNDARY. IfBOUNDARYis provided, theBODYmust follow RFC formatting to allow multiple payloads separated by the boundary.