Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
07-16-2024, 07:06 AM
|
#1
|
LQ Newbie
Registered: Nov 2020
Posts: 24
Rep:
|
find target function in raw MIPS32 binary (Ghidra)
I'm analyzing the raw MIPS32 binary (memory dump) code in Ghidra. After importing the file, I did search strings and found the target instructions of interest. For example, offset address "00734cb4": I don't see functions there, 'No Function' in Decompiler window. I definitely missing something. I've selected the part of code, but how to decompile it and find linked functions?
Last edited by kosmo333; 07-21-2024 at 07:51 AM.
|
|
|
07-17-2024, 02:16 AM
|
#2
|
Senior Member
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,923
|
You are examining a data segment: obviously there is no code in it. What is problem X, I mean where did this 00734cb address come?
|
|
2 members found this post helpful.
|
07-17-2024, 05:49 AM
|
#3
|
LQ Newbie
Registered: Nov 2020
Posts: 24
Original Poster
Rep:
|
My mistype - the correct offset is 00734cb4, not 00734cb. I find the address '00734cb4' using Search > For Strings, "validate a given passowrd against all three passwords (10 Alphanumeric characters)". There are no label starting with `FUN_007` in Symbol Tree window.
Last edited by kosmo333; 07-17-2024 at 06:58 AM.
|
|
|
07-17-2024, 06:03 AM
|
#4
|
Senior Member
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,923
|
As far as I know string literals don't carry information about the code that uses them.
|
|
|
07-17-2024, 06:58 AM
|
#5
|
LQ Newbie
Registered: Nov 2020
Posts: 24
Original Poster
Rep:
|
How I can find that function? By browsing FUN_ labels one by one from beginning to end?
Last edited by kosmo333; 07-17-2024 at 07:02 AM.
|
|
|
07-17-2024, 08:26 AM
|
#6
|
Senior Member
Registered: Nov 2005
Distribution: Debian, Arch
Posts: 3,793
|
The code itself should have a reference to that address. But it could be split in two (e.g., load upper 16 bits, then load lower 16 bits), so a bit tricky to search for. I'm not familiar with Ghidra, perhaps it has a some feature to help with this?
|
|
|
07-17-2024, 12:44 PM
|
#7
|
Senior Member
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,923
|
Well, helping users to avoid the password-verification is not necessarily a priority for the developers.
|
|
1 members found this post helpful.
|
07-17-2024, 03:49 PM
|
#8
|
LQ Newbie
Registered: Nov 2020
Posts: 24
Original Poster
Rep:
|
Quote:
Originally Posted by NevemTeve
Well, helping users to avoid the password-verification is not necessarily a priority for the developers.
|
It's not my case. I own the device.
|
|
|
07-26-2024, 06:07 AM
|
#9
|
LQ Guru
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,325
|
Quote:
Originally Posted by kosmo333
My mistype - the correct offset is 00734cb4, not 00734cb. I find the address '00734cb4' using Search > For Strings, "validate a given passowrd against all three passwords (10 Alphanumeric characters)". There are no label starting with `FUN_007` in Symbol Tree window.
|
mī best gess: if rejjistər rs = rejjistər rt; then, set u trap exxepshun.
|
|
|
All times are GMT -5. The time now is 02:11 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|