px[?][owq] [len] hexdump of N bytes (o=octal, w=32bit, q=64bit)

Usage: px[0afoswqWqQ][f] # Print heXadecimal

Tips

  • Use px to print memory. Example: px 8 @ esp+4


  • px ⭐ show hexdump
  • Screenshot

  • px/ same as x/ in gdb (help x)

  • px0 8bit hexpair list of bytes until zero byte
  • pxa show annotated hexdump
  • Screenshot

  • pxA show op analysis color map

  • pxb dump bits in hexdump form
  • pxc show hexdump with comments
  • pxd[124] signed integer dump (1 byte, 2 and 4)
  • pxe 🚀 emoji hexdump! :) asciinema
  • pxf show hexdump of current function
  • pxh show hexadecimal half-words dump (16bit)
  • pxH same as above, but one per line
  • pxi HexII compact binary representation
  • pxl display N lines (rows) of hexdump
  • pxo show octal dump
  • pxq show hexadecimal quad-words dump (64bit)
  • pxQ same as above, but one per line
  • pxr[j] show words with references to flags and code
  • Alternatively, consider using afvd

  • pxr @ esp stack analysis. This is also memory telescoping

  • Screenshot

    Green/Blue is executable, Red is data White is value?

  • pxs show hexadecimal in sparse mode

  • pxt[*.] [origin] show delta pointer table in r2 commands
  • pxw show hexadecimal words dump (32bit)
    • The colors in pxw are: yellow: printable chars, red: pointer to executable are, blue: data

  • Screenshot

  • pxW same as above, but one per line

  • Screenshot

  • pxx show N bytes of hex-less hexdump

  • pxX show N words of hex-less hexdump