diff --git a/src/core/config/Categories.json b/src/core/config/Categories.json index 09be8cc508..f19f0a7d0a 100644 --- a/src/core/config/Categories.json +++ b/src/core/config/Categories.json @@ -235,7 +235,7 @@ "Parse IPv6 address", "Parse IPv4 header", "Parse TCP", - "Strip TCP Header", + "Strip TCP header", "Parse UDP", "Parse SSH Host Key", "Parse URI", diff --git a/src/core/operations/StripTCPHeader.mjs b/src/core/operations/StripTCPHeader.mjs index ed6cd928eb..747744b213 100644 --- a/src/core/operations/StripTCPHeader.mjs +++ b/src/core/operations/StripTCPHeader.mjs @@ -9,7 +9,7 @@ import OperationError from "../errors/OperationError.mjs"; import Stream from "../lib/Stream.mjs"; /** - * Strip TCP Header operation + * Strip TCP header operation */ class StripTCPHeader extends Operation { @@ -19,7 +19,7 @@ class StripTCPHeader extends Operation { constructor() { super(); - this.name = "Strip TCP Header"; + this.name = "Strip TCP header"; this.module = "Default"; this.description = "Strips the TCP header from a TCP segment, outputting the payload."; this.infoURL = "https://wikipedia.org/wiki/Transmission_Control_Protocol"; diff --git a/tests/operations/tests/StripTCPHeader.mjs b/tests/operations/tests/StripTCPHeader.mjs index f54ec677ec..1d98d41163 100644 --- a/tests/operations/tests/StripTCPHeader.mjs +++ b/tests/operations/tests/StripTCPHeader.mjs @@ -1,5 +1,5 @@ /** - * Strip TCP Header tests. + * Strip TCP header tests. * * @author c65722 [] * @copyright Crown Copyright 2024 @@ -10,7 +10,7 @@ import TestRegister from "../../lib/TestRegister.mjs"; TestRegister.addTests([ { - name: "Strip TCP Header: No options, No payload", + name: "Strip TCP header: No options, No payload", input: "7f900050000fa4b2000cb2a45010bff100000000", expectedOutput: "", recipeConfig: [ @@ -19,7 +19,7 @@ TestRegister.addTests([ args: ["None"] }, { - op: "Strip TCP Header", + op: "Strip TCP header", args: [], }, { @@ -29,7 +29,7 @@ TestRegister.addTests([ ] }, { - name: "Strip TCP Header: No options, Payload", + name: "Strip TCP header: No options, Payload", input: "7f900050000fa4b2000cb2a45010bff100000000ffffffffffffffff", expectedOutput: "ffffffffffffffff", recipeConfig: [ @@ -38,7 +38,7 @@ TestRegister.addTests([ args: ["None"] }, { - op: "Strip TCP Header", + op: "Strip TCP header", args: [], }, { @@ -48,7 +48,7 @@ TestRegister.addTests([ ] }, { - name: "Strip TCP Header: Options, No payload", + name: "Strip TCP header: Options, No payload", input: "7f900050000fa4b2000cb2a47010bff100000000020405b404020000", expectedOutput: "", recipeConfig: [ @@ -57,7 +57,7 @@ TestRegister.addTests([ args: ["None"] }, { - op: "Strip TCP Header", + op: "Strip TCP header", args: [], }, { @@ -67,7 +67,7 @@ TestRegister.addTests([ ] }, { - name: "Strip TCP Header: Options, Payload", + name: "Strip TCP header: Options, Payload", input: "7f900050000fa4b2000cb2a47010bff100000000020405b404020000ffffffffffffffff", expectedOutput: "ffffffffffffffff", recipeConfig: [ @@ -76,7 +76,7 @@ TestRegister.addTests([ args: ["None"] }, { - op: "Strip TCP Header", + op: "Strip TCP header", args: [], }, { @@ -86,7 +86,7 @@ TestRegister.addTests([ ] }, { - name: "Strip TCP Header: Input length less than minimum header length", + name: "Strip TCP header: Input length less than minimum header length", input: "7f900050000fa4b2000cb2a45010bff1000000", expectedOutput: "Need at least 20 bytes for a TCP Header", recipeConfig: [ @@ -95,7 +95,7 @@ TestRegister.addTests([ args: ["None"] }, { - op: "Strip TCP Header", + op: "Strip TCP header", args: [], }, { @@ -105,7 +105,7 @@ TestRegister.addTests([ ] }, { - name: "Strip TCP Header: Input length less than data offset", + name: "Strip TCP header: Input length less than data offset", input: "7f900050000fa4b2000cb2a47010bff100000000", expectedOutput: "Input length is less than data offset", recipeConfig: [ @@ -114,7 +114,7 @@ TestRegister.addTests([ args: ["None"] }, { - op: "Strip TCP Header", + op: "Strip TCP header", args: [], }, {