Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a command that shows function's name that rizin defined. #4627

Open
dmknght opened this issue Sep 10, 2024 · 1 comment
Open

Create a command that shows function's name that rizin defined. #4627

dmknght opened this issue Sep 10, 2024 · 1 comment

Comments

@dmknght
Copy link
Contributor

dmknght commented Sep 10, 2024

Is your feature request related to a problem? Please describe.
When binary is analyzed by rizin, a function could have 2 names:

  1. Real name, for example strcpy
  2. The name defined by Rizin. like sym.strcpy

When researcher uses command ii, Rizin shows real name:

[<addr>]> ii
nth vaddr      bind   type   lib name                           
----------------------------------------------------------------
170 ---------- GLOBAL NOTYPE     __kfifo_out_peek
171 ---------- GLOBAL NOTYPE     strcpy

However, AFAIK, the other commands of rizin are using Rizin's name. For example: pdf @ sym.strcpy or axt @ sym.strcpy

The problems:

  1. When a binary is analyzed by rizin, researcher must memorized the way Rizin makes name. And it's not 100% sure that the name made by rizin follows that format
  2. In some big binary, the list of symbols could be very long. It's not very easy to use double tab to show suggest, especially for the axt command.

Describe the solution you'd like

  • Rizin has a command that shows the real name and rizin's name. For example <command that shows name> strcpy -> sym.xx.yy.strcpy, And <command> sym.xxx.yyy.strcpy -> strcpy.
  • Command ii and similar should show both real name and rzin's name
@dmknght
Copy link
Contributor Author

dmknght commented Sep 10, 2024

Command afll~ should do the job. For example:

[0x000098dc]> afll~setlocale
0x0000905c sym.imp.setlocale               12   3       4         0     1    0     1   6    false    0x0000905c 12    0x00009068 0      0    0     0

I personally think it'd be nice if command ii can show rizin's name too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant