Skip to content

rahash2 JSON output prints a hex digest of an ssdeep hash instead of the correct hash #23937

@mattunleashed

Description

@mattunleashed

Environment

Thu Jan 30 12:11:24 CST 2025
radare2 5.9.9 33457 @ darwin-arm-32
birth: git.5.9.8-323-gc2c06d1228 2025-01-30__12:09:52
commit: c2c06d12281742effcd0087df5335e0346b701d4
options: gpl -O2 cs:5 cl:2 make
Darwin arm64

Description

As noted at the end of #23930, the rahash2 JSON output includes the wrong ssdeep hash value. I'm splitting this bug into its own issue as the two bugs are technically separate yet similar in nature.

Test

> rahash2 -a ssdeep /bin/ls
/bin/ls: 0x00000000-0x00025bff ssdeep: 1536:H8pLK/4eqcKc38iKDLyc3++TQbrIRKo5:cCvqcMLyvYGURKo

> rahash2 -a ssdeep -j /bin/ls
[{"name":"ssdeep","hash":"313533363a4838704c4b2f346571634b633338694b444c7963332b2b5451627249524b6f353a63437671634d4c7976594755524b6f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"}]

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