mirror of
https://github.com/gchq/CyberChef.git
synced 2024-11-16 17:08:31 +01:00
Added Fork and Conditional Jump test
This commit is contained in:
parent
d91bdd7f8f
commit
3ad4291258
1 changed files with 12 additions and 0 deletions
|
@ -52,4 +52,16 @@ TestRegister.addTests([
|
|||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
name: "Fork, Conditional Jump, Encodings",
|
||||
input: "Some data with a 1 in it\nSome data with a 2 in it",
|
||||
expectedOutput: "U29tZSBkYXRhIHdpdGggYSAxIGluIGl0\n53 6f 6d 65 20 64 61 74 61 20 77 69 74 68 20 61 20 32 20 69 6e 20 69 74\n",
|
||||
recipeConfig: [
|
||||
{"op":"Fork", "args":["\\n", "\\n", false]},
|
||||
{"op":"Conditional Jump", "args":["1", "2", "10"]},
|
||||
{"op":"To Hex", "args":["Space"]},
|
||||
{"op":"Return", "args":[]},
|
||||
{"op":"To Base64", "args":["A-Za-z0-9+/="]}
|
||||
]
|
||||
},
|
||||
]);
|
||||
|
|
Loading…
Reference in a new issue