-
Notifications
You must be signed in to change notification settings - Fork 91
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
Loading executable into qMedusa works but then nothing happens #72
Comments
Hi dnivra, I guess this is a issue with the way how modules are loaded. By default, medusa tries to load modules from the working directory, this is convenient for testing purpose but not adapted for a release version (see #62). Thanks for reporting. |
Hello wisk, Sorry for combining two bugs into a single report: the main issue I faced was after building the dev version and loading a binary in, I get a blank screen like in the screenshot I shared in the bug report. I'm not sure what is wrong - the binary loads fine in 0.4.3 and the disassembly, CFG etc do show up but in dev, nothing seems to be displayed after the executable to be analyzed is loaded. I'm not sure why this happens and am wondering if I missed something. How can I figure out what is wrong? Also regarding the library loading issue - Typically, most binaries do copy the libraries to a specific location(/lib, /lib64, /usr/lib etc) and they are automatically picked up from there. Alternatively, I think the environment variable |
Regarding the blank screen, could you make sure modules (ldr_, arch_, etc) are correctly loaded?
|
These are the modules which are loaded(as per arch_arm.so Also, these messages were also printed out by the binary. Perhaps that is the issue? QFontDatabase: Cannot find font directory /home/introssoc/.hunter/_Base/8c538a0/a1b471c/15fdb4a/Build/Qt/__qtbase/Install/lib/fonts - is Qt installed correctly? |
Also, regarding the modules not being detected correctly when qMedusa is installed and run globally. qMedusa uses the directory from which it was launched as the default Module directory. It does detect |
Regarding the lib name, this is an issue with hunter which set The error messages you posted are interesting. Could you try to change the font? To do that, you can either to the menu |
I built the release version instead of debug version and ran qMedusa as follows: $ LD_LIBRARY_PATH=/usr/local/lib:/usr/local/lib/medusa qMedusa In above, libmedusa.so is in /usr/local/lib and other SO files(including executable format loaders) are in /usr/local/lib/medusa. However, only former is found and not latter. After launching and opening a binary for analysis, I get the error that there is no supported loader. qMedusa displays that it is choosing the directory it was launched from as the module directory and I think that's why it's not finding the loaders of the executable formats. |
Hello dnivra, This issue should be fixed, thanks for your patience. It turns out to be a stupid typo in a variable name. Sorry about that. |
Sounds good! I will check this out with a clean build sometime. |
I launch qMedusa and selected a binary to analyze(a simple hello world program). qMedusa identifies the file parameters correct, asks for a database path and then nothing happens: an empty screen is displayed as shown in the image. Did I miss something?
PS: Are paths to libraries not setup correctly when qMedusa is invoked? I had to copy files from
lib
folder intobin
for any loaders to be detected.The text was updated successfully, but these errors were encountered: