mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-21 15:26:16 -04:00
add Protobuf Stream Decode operation
This commit is contained in:
parent
2f89130f41
commit
eda9a40aa2
4 changed files with 100 additions and 0 deletions
|
@ -303,4 +303,31 @@ TestRegister.addTests([
|
|||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
name: "Protobuf Stream Decode: no schema",
|
||||
input: "0d081c1203596f751a024d65202b0c0a0a0a066162633132331200",
|
||||
expectedOutput: JSON.stringify([{
|
||||
"1": 28,
|
||||
"2": "You",
|
||||
"3": "Me",
|
||||
"4": 43
|
||||
},
|
||||
{
|
||||
"1": {
|
||||
"1": "abc123",
|
||||
"2": {}
|
||||
}
|
||||
}], null, 4),
|
||||
recipeConfig: [
|
||||
{
|
||||
"op": "From Hex",
|
||||
"args": ["Auto"]
|
||||
},
|
||||
{
|
||||
"op": "Protobuf Stream Decode",
|
||||
"args": ["", false, false]
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue