Skip to content

zig-yaml (cli4bofs dependency) does not support multiline strings ("|") #1

Description

@mzet-

Due to limitation of https://github.com/kubkon/zig-yaml we can't use yaml multiline syntax:

examples: |
 Scanning selected hosts and ports:

   tcpScanner str:192.168.0.1:80,22,443
   tcpScanner str:192.168.0.1:100-200
   tcpScanner str:102.168.1.1-128:445,81,8080-8089

Instead we need to use:

examples: '
 Scanning selected hosts and ports:

   tcpScanner str:192.168.0.1:80,22,443
   tcpScanner str:192.168.0.1:100-200
   tcpScanner str:102.168.1.1-128:445,81,8080-8089
'

That is inconsistent with a Python's YAML implementation (used in https://github.com/The-Z-Labs/bof-launcher/blob/main/examples/implant/z-beac0n-console.py) where using:

examples: '
 ...
'

syntax, does not preserves text's structure. Therefore we need to you different syntax for cli4bofs ( ' ...') and different for z-beac0n console (| ...).

Solution is to add multiline syntax support (|) to https://github.com/kubkon/zig-yaml.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions