Implemented chaining multiple encoding techniques for data transformation.

This commit is contained in:
Jakob Friedl
2025-11-21 20:14:21 +01:00
parent 6a20c25085
commit fb78ae16cc
5 changed files with 65 additions and 25 deletions

View File

@@ -80,8 +80,23 @@ suffix = ".######################################-####"
![Heartbeat in Authorization Header](../assets/profile-1.png)
Multiple encodings can be applied to a packet by defining them in an array of inline-tables, as seen in the example below. The encodings are applied in the order they are defined in the profile. During the decoding of the data transformation, this order is reversed. Hence, the example below first applies the ROT encoding with the key 5 on the data and later base64-encodes it. The reversal starts with the base64-decoding and a rotation in the opposite direction.
```toml
placement = { type = "body" }
encoding = [
{ type = "rot", key = 5 },
{ type = "base64" }
]
```
Check the [default profile](../data/profile.toml) for more examples.
Other example profiles:
- [youtube.profile](../data/youtube.toml): Traffic that resembles watching and interacting with Youtube videos.
### Request options
The profile language makes is further possible to add parameters and headers. When arrays are passed to these settings instead of strings, a random member of the array is chosen. Again, character randomization can be used to break up repeating patterns.