mirror of
https://github.com/morluto/rea.git
synced 2026-12-02 19:57:58 +00:00
The banner pattern ^(\S+) (\d\S*) read any first line with a digit token as an identity, so `Warning: 123 …` became tool "Warning:", version 123. identifyRizinTool now accepts only the first-line form Rizin and radare2 print: a plain tool token, a version, any build tokens, then `@ <os>-<arch>-<bits>` and an optional `, <package>` suffix. The real banners on this Mac fix the form: Rizin 0.9.1 (Homebrew) prints `rizin 0.9.1 @ darwin-arm-64, package: 0.9.1_2 (Homebrew)`, and radare2 6.1.8 prints `radare2 6.1.8 +0 abi:110 @ darwin-arm_64`. Anything else is unrecognized, with the assumed identity and the probe's diagnostics; a well-formed radare2 banner keeps its non-Rizin limitation. The guide gives the form. Tests cover `Warning: 123 …`, a status line before the banner, a banner without the @ suffix, and the real Rizin and radare2 banners. Two fixtures that printed `@ test` as the platform now print a real form.