With the -zr option, this information is represented as a radare2 commands list. It can be used in a radare2 session to automatically create a flag space called “strings” pre-populated with flags for all strings found by rabin2. Furthermore, this script will mark corresponding byte ranges as strings instead of code.

    1. $ rabin2 -zr /bin/ls | head
    2. fs stringsf str.dev_ino_pop 12 @ 0x000160f8
    3. Cs 11 @ 0x00016188
    4. f str.posix 7 @ 0x00016193
    5. Cs 5 @ 0x0001619a
    6. f str.pcdb_lswd 11 @ 0x00016250