Comments (8)
headless-ida should already support loading IDB files. You can load them the same way you would load a normal binary. Please let me know if you encounter any issues or if it doesn't work as expected.
from headless-ida.
when i try to load i64 database file, it says
Exception: IDA failed to start: return code 4
Command: "D:\Program Files\IDA_Pro_7.7_Portable\ida64.exe" -A -S"D:\capstone_test2\venv\Lib\site-packages\headless_ida\ida_script.py 57816" -P+ "J:\temp\tmpn5sduy89.i64"
from headless-ida.
@weituotian I've tried running it locally with an i64 file of /bin/ls, and it works for me. Could you send over the i64 file you have if possible? Alternatively, could you run the command returned by headless-ida but remove the -A flag, and paste the error output here?
"D:\Program Files\IDA_Pro_7.7_Portable\ida64.exe" -S"D:\capstone_test2\venv\Lib\site-packages\headless_ida\ida_script.py 57816" -P+ "/path/to/i64/file"
from headless-ida.
yes, here is the example bin and i64 file:
example.zip
from headless-ida.
but i check the file is exists J:\\temp\\tmpor738i2h.i64
from headless-ida.
@weituotian I tried to load the i64 file you provided, and it works perfectly for me on Linux. Based on what you've shown, I believe the issue is more likely related to the temporary file. If the file exists, can you try loading the temp file directly using ida64 and see if that works? If it doesn't, you'll probably want to debug the issue by checking file permissions and other potential causes.
from headless-ida.
when i drag the tmp file from file explorer, it also get the "could not open" tips
when i move the tmp file to other dir, and drag it to ida, it works!
may be a behavior in ida in win10.
and I try comment binary_path = tempidb.name
it works also.
it seem -A flag will cause IDA failed to start: return code 4
in windows, and tmp file not work with ida7.7 in windows
from headless-ida.
It appears that the issue is related to your system setup and is not directly caused by IDA or headless-ida. When loading an IDB/I64 file, headless-ida creates a temporary copy of the file and loads it from there to prevent accidentally overwriting the original IDB file. It uses tempfile.NamedTemporaryFile(suffix=".i64")
to achieve this.
The fact that it defaults to J:\temp
instead of C:\temp
and that J:\temp
doesn't work in your case suggests that there might be an issue with the temporary file creation or permissions on your system.
As this seems to be specific to your system configuration, you will need to investigate and resolve the issue on your end.
from headless-ida.
Related Issues (9)
- Cannot load a file with HeadlessIda() after the first HOT 2
- IDA-Headless .. Windows ? HOT 13
- HEADLESS_IDA Windows Server HOT 5
- OPs, My bad
- Decompilation failed: ffffffffffffffff HOT 2
- Support for pre-existing databases HOT 10
- read .pdb file beside exe file HOT 4
- Has some way to load python3 plugin in headless-ida? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from headless-ida.