I was doing a CTF challenge and I need to see the value of RAX register in radare2. I first dumped all of printable ascii characters as input, one of the function encoded the input and spit out the result into RAX registers.

enter image description here

Each integer separated by space represents one character. The problem is it cut shorts at the 52th character (... 1248 1264 12) where is my input has 94 characters. In GDB you can do set print elements 0 to remove the output limit. Is there such thing in radare? How can I print the entire register value in string?

1 Answer 1


change block size to what you want by default block size is 255 or 0x100

[0x7ff7d0644570]> cls
[0x7ff7d0644570]> b 10
[0x7ff7d0644570]> ps @r8
[0x7ff7d0644570]> b 20
[0x7ff7d0644570]> ps @r8
[0x7ff7d0644570]> b 300
[0x7ff7d0644570]> ps @r8
  • It still doesn't work. Even if I limit the block size to 10 or expand it to 1000 the pf s @rax command would still show the same output. Aug 4, 2021 at 10:22
  • pf s seems to take a 32 bit register s 32bit pointer to string (4 bytes) | S 64bit pointer to string (8 bytes)
    – blabb
    Aug 4, 2021 at 17:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.