Skip to content

Bug report: Strange toTable behavior #85

@kingthorin

Description

@kingthorin

Describe the bug

  1. toTable in the live client implementation seems to work as expected:
Image
  1. I then tried to do the same via CyberChef-server swagger interface running in docker (per the clone, build, run instructions in the README)
Image
{
  "input": "mess with the best, die like the rest",
  "recipe": [
    {
      "op": "toTable"
    }
  ]
}
Image
  1. Note "rest" is missing in the output 😞

  2. Wondering WTF is going on I go back and insert another "rest" in the input (at this point thinking, is "rest" a reserved word or something weird like that). mess with the best, die rest like the rest which also results in a broken output:

Image
  1. It seems like each space R r is being treated as \r for some reason? But that's just my guess.

To Reproduce
As above

Expected behavior
The result should be the same as when using the live client version.

+--------------------+--------------------+
| mess with the best |  die like the rest |
+--------------------+--------------------+

or

+--------------------+-------------------------+
| mess with the best |  die rest like the rest |
+--------------------+-------------------------+

Node version:

Seems to be 17:

 docker run -it --rm --name=cyberchef-server -p 3000:3000 cyberchef-server

> cyberchef-server@1.1.0 prod
> NODE_ENV=production node index.mjs

(node:17) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
(node:17) Warning: Accessing non-existent property 'b2u' of module exports inside circular dependency
(node:17) Warning: Accessing non-existent property 'u2b' of module exports inside circular dependency
(node:17) Warning: Accessing non-existent property 'Pair' of module exports inside circular dependency
CyberChef Server listening on port 3000!

Additional context

On the off chance that it's relevant this is on macOS Tahoe 26.2.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions