Implemented chaining multiple encoding techniques for data transformation.
This commit is contained in:
@@ -80,8 +80,23 @@ suffix = ".######################################-####"
|
||||
|
||||

|
||||
|
||||
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.
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user