mirror of
https://github.com/gchq/CyberChef
synced 2025-12-05 23:53:27 +00:00
Added important tests that need to pass before merge.
This commit is contained in:
@@ -19,6 +19,28 @@ TestRegister.addTests([
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: "ExtractIPAddress All 10s",
|
||||||
|
input: "10.10.10.10",
|
||||||
|
expectedOutput: "10.10.10.10",
|
||||||
|
recipeConfig: [
|
||||||
|
{
|
||||||
|
"op": "Extract IP addresses",
|
||||||
|
"args": [true, true, false, false, false, false]
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "ExtractIPAddress All 10s",
|
||||||
|
input: "100.100.100.100",
|
||||||
|
expectedOutput: "100.100.100.100",
|
||||||
|
recipeConfig: [
|
||||||
|
{
|
||||||
|
"op": "Extract IP addresses",
|
||||||
|
"args": [true, true, false, false, false, false]
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: "ExtractIPAddress 255s",
|
name: "ExtractIPAddress 255s",
|
||||||
input: "255.255.255.255",
|
input: "255.255.255.255",
|
||||||
@@ -52,6 +74,17 @@ TestRegister.addTests([
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: "ExtractIPAddress 256 at each end",
|
||||||
|
input: "256.255.255.255 255.255.255.256",
|
||||||
|
expectedOutput: "",
|
||||||
|
recipeConfig: [
|
||||||
|
{
|
||||||
|
"op": "Extract IP addresses",
|
||||||
|
"args": [true, true, false, false, false, false]
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: "ExtractIPAddress octal valid",
|
name: "ExtractIPAddress octal valid",
|
||||||
input: "01.01.01.01 0123.0123.0123.0123 0377.0377.0377.0377",
|
input: "01.01.01.01 0123.0123.0123.0123 0377.0377.0377.0377",
|
||||||
|
|||||||
Reference in New Issue
Block a user