Closed kolad85 closed 6 years ago
I was able to partially fix the first issue by removing the shell=True (line 55), in the extract_til_constant_info.py file and the second issue by changing the import from beautifulsoup3 to beautifulsoup4
from bs4 import BeautifulSoup
inside the msdn_crawler.py file and explicitly defining the html.parser as it was complaining
parsed_html = BeautifulSoup(descriptions[i], 'html.parser')
The problem I'm facing now is that the generated XML database file does not contain any <value>
entries which ultimately leads to no constants being renamed in the IDB file when run with the plugin. Is that because I'm using beautifulsoup4 or any of my modifications?
The script hasn't been tested on Linux and there are other existent issues you've already discovered. Can you please check if the following file works for you after unzipping it? https://github.com/mr-tz/flare-ida/blob/master/MSDN_data/msdn_data.zip
Thanks for getting back to me so quickly. I tried with your database file but had only a few constant values resolved to their names. At the same time there's no error reported in IDA's python console (except the missing information for few insignificant functions) so I'm not sure where the glitch is.
Great, it sounds like the plugin is running successfully now. It's likely that it won't rename all constants automatically. For some it might miss the MSDN information (which you can provide in additional data files in the data directory) and for some it might fail to track the arguments correctly.
Unfortunately this is not the case. It was able to resolve just a few constant names but the vast majority of constants remained unchanged. I have manually checked the xml database file and all values were in there. If it had to do with handling the arguments incorrectly then the argument comments shouldn't be there I suppose.
If the arguments are annotated correctly it does not necessarily mean that the constants can be renamed successfully. Do you have a sample you can share?
I can share an xtremerat idb file which I downloaded from the Internet. Please let me know how to transfer it to you.
I can try to test it if you can provide a hash.
Here's the hash of the malicious file itself: 9E6B9D375DC5998E63F7376FEDF5CDF0
Thanks, what constants (offsets) are you expecting to be renamed? One issue might be that functions are called via function thunks and not directly.
Potentially same issue as in #62. Please reopen this issue otherwise.
Hello,
I have tried generating the the XML database file using the msdn_crawler.py on a Linux machine (Ubuntu 16.04 x64) and it seems to have failed with the following errors (for both tilib and tilib64)
I have also tried with the Windows version of IDA and failed like others have pointed out in other issue threads.
I tried obtaining the modified version of the crawler and already generated database but it's no longer there.