-
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
Questions about the code #6
Comments
These structures are used when medusa emulates code (not fully implemented). At this time, it's just a placeholder to support simple access like SEH installation (fs:[0]). I'd like to fully implement it to support SEH, LastError, and so on. |
1)How to get the path to the file analyzed by medusa from ldr_pe? |
This info is not available since you may want to analyze a data from memory or, if you save a database, don't want to keep the original file (since it's already contained in the db file). The object BinaryStream offers an abstraction to avoid to keep this information. |
I need the file path for the analysis of the pdb file(pdb files is located next to the exe) 2)How load external files?(pdb files,and other) should I use https://github.com/wisk/medusa/blob/master/inc/medusa/binary_stream.hpp#L236 and analyse them? |
|
I do parser pdb files and microsoft symbols loader for linux too ;) |
Which is really awesome! I can't wait to see the result. :) |
Does it make sense to write tests for medusa?(e.g., Tests architecture) |
Yes, and that's a good idea. |
Yes,but CTest only run tests.Will you use https://code.google.com/p/googlemock/ and google tests for tests?(How to write tests for core and modules?e.g. ldr/x86.) |
Shame on me, I've never used one of these libraries before. What do you think about boost test (http://www.boost.org/doc/libs/1_56_0/libs/test/doc/html/index.html>)? Tell me which one is the best for medusa. :) About the test itself, it's hard to tell: I guess we can test how loader modules parse some executable stored in the repository (corkami is a good source of windows for instance), and test architectures modules by disassembling raw instruction (e.g. Disasm("\x33\xc0") == "xor eax, eax"). We should discuss about it on IRC, what do you think? |
Hi .I experimented with the code in my fork. ivan-kulikov-dev/disasm_tool@gunmetal313:dev...addpluginsupport e.x. I want add new module,but core: Module: "./libplg_hello.so" is unknown (ignored) (The module is not even recognized) |
Hi, It seems medusa fails to find the exported function GetPlugin. Please, try to run objdump and make sure this function is exported: objdump -T libplg_hello.so | grep GetPlugin |
your generator architecture of yaml files very cool :) 👍 But why do not you use "encoding" for x86 architecture?And how to use "encoding" for other architectures? ) |
Thanks :) |
What difference between 0 and (0)? |
According to the official documentation of ARM:
So I guess it means if (0) does not match with 0 (in the encoding) the instruction is unpredictable. |
Medusa is not supported Ms dos exe files? |
Not at this time, but I guess DOS file format won't be hard to handle. |
I want try write dos support.This is normal? |
Well, you could extend ldr_pe to handle DOS format (they rely on the same structure |
How are you use emulator? |
Basically, you should rely on object |
https://github.com/wisk/medusa/blob/dev/src/os/windows/windows.cpp#L51
why you need to add _TEB/_PEB structures?How the medusa should use them?(When it analyzing pe file)?
The text was updated successfully, but these errors were encountered: