Skip to content

protoscope: syntax error: unrecognized symbol "\xff\xfe1\x00:\x00" #27

@hatrd

Description

@hatrd

I encountered an issue while testing protoscope with my binary dumps.

The unpack operation was successful, but the repack operation failed without any changes made to the data.

Steps to Reproduce:

PS > protoscope.exe .\person.bin
1: {"John Doe"}
2: 1234
3: {"[email protected]"}
PS > protoscope.exe .\person.bin > person.txt
PS > protoscope.exe -s .\person.txt
protoscope: syntax error: unrecognized symbol "\xff\xfe1\x00:\x00"
PS >  protoscope.exe -s .\person.txt > edit.bin
protoscope: syntax error: unrecognized symbol "\xff\xfe1\x00:\x00"

here's the binary

$ xxd person.bin
00000000: 0a08 4a6f 686e 2044 6f65 10d2 091a 136a  ..John Doe.....j
00000010: 6f68 6e64 6f65 4065 7861 6d70 6c65 2e63  [email protected]
00000020: 6f6d                                     om
$ xxd -ps person.bin
0a084a6f686e20446f6510d2091a136a6f686e646f65406578616d706c65
2e636f6d

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions