idapro 0.0.3.dev1__tar.gz → 0.0.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {idapro-0.0.3.dev1 → idapro-0.0.4}/PKG-INFO +10 -14
- {idapro-0.0.3.dev1 → idapro-0.0.4}/idapro/__init__.py +1 -1
- idapro-0.0.4/idapro/py.typed +0 -0
- idapro-0.0.4/idapro/stubs/ida_allins.pyi +21491 -0
- idapro-0.0.4/idapro/stubs/ida_api.pyi +34096 -0
- idapro-0.0.4/idapro/stubs/ida_auto.pyi +311 -0
- idapro-0.0.4/idapro/stubs/ida_bitrange.pyi +158 -0
- idapro-0.0.4/idapro/stubs/ida_bytes.pyi +2637 -0
- idapro-0.0.4/idapro/stubs/ida_dbg.pyi +2398 -0
- idapro-0.0.4/idapro/stubs/ida_dirtree.pyi +952 -0
- idapro-0.0.4/idapro/stubs/ida_diskio.pyi +409 -0
- idapro-0.0.4/idapro/stubs/ida_entry.pyi +124 -0
- idapro-0.0.4/idapro/stubs/ida_expr.pyi +697 -0
- idapro-0.0.4/idapro/stubs/ida_fixup.pyi +355 -0
- idapro-0.0.4/idapro/stubs/ida_fpro.pyi +192 -0
- idapro-0.0.4/idapro/stubs/ida_frame.pyi +772 -0
- idapro-0.0.4/idapro/stubs/ida_funcs.pyi +1472 -0
- idapro-0.0.4/idapro/stubs/ida_gdl.pyi +878 -0
- idapro-0.0.4/idapro/stubs/ida_graph.pyi +2856 -0
- idapro-0.0.4/idapro/stubs/ida_hexrays.pyi +17971 -0
- idapro-0.0.4/idapro/stubs/ida_ida.pyi +1707 -0
- idapro-0.0.4/idapro/stubs/ida_idaapi.pyi +1573 -0
- idapro-0.0.4/idapro/stubs/ida_idc.pyi +53 -0
- idapro-0.0.4/idapro/stubs/ida_idd.pyi +2562 -0
- idapro-0.0.4/idapro/stubs/ida_idp.pyi +3570 -0
- idapro-0.0.4/idapro/stubs/ida_ieee.pyi +278 -0
- idapro-0.0.4/idapro/stubs/ida_kernwin.pyi +8279 -0
- idapro-0.0.4/idapro/stubs/ida_libfuncs.pyi +171 -0
- idapro-0.0.4/idapro/stubs/ida_lines.pyi +355 -0
- idapro-0.0.4/idapro/stubs/ida_loader.pyi +760 -0
- idapro-0.0.4/idapro/stubs/ida_merge.pyi +776 -0
- idapro-0.0.4/idapro/stubs/ida_mergemod.pyi +87 -0
- idapro-0.0.4/idapro/stubs/ida_moves.pyi +685 -0
- idapro-0.0.4/idapro/stubs/ida_nalt.pyi +1590 -0
- idapro-0.0.4/idapro/stubs/ida_name.pyi +719 -0
- idapro-0.0.4/idapro/stubs/ida_netnode.pyi +287 -0
- idapro-0.0.4/idapro/stubs/ida_offset.pyi +194 -0
- idapro-0.0.4/idapro/stubs/ida_pro.pyi +3507 -0
- idapro-0.0.4/idapro/stubs/ida_problems.pyi +117 -0
- idapro-0.0.4/idapro/stubs/ida_range.pyi +621 -0
- idapro-0.0.4/idapro/stubs/ida_regfinder.pyi +552 -0
- idapro-0.0.4/idapro/stubs/ida_registry.pyi +202 -0
- idapro-0.0.4/idapro/stubs/ida_search.pyi +92 -0
- idapro-0.0.4/idapro/stubs/ida_segment.pyi +903 -0
- idapro-0.0.4/idapro/stubs/ida_segregs.pyi +263 -0
- idapro-0.0.4/idapro/stubs/ida_srclang.pyi +100 -0
- idapro-0.0.4/idapro/stubs/ida_strlist.pyi +204 -0
- idapro-0.0.4/idapro/stubs/ida_tryblks.pyi +634 -0
- idapro-0.0.4/idapro/stubs/ida_typeinf.pyi +7441 -0
- idapro-0.0.4/idapro/stubs/ida_ua.pyi +1257 -0
- idapro-0.0.4/idapro/stubs/ida_undo.pyi +79 -0
- idapro-0.0.4/idapro/stubs/ida_xref.pyi +486 -0
- idapro-0.0.4/idapro/stubs/idaapi.pyi +90764 -0
- idapro-0.0.4/idapro/stubs/idadex.pyi +756 -0
- idapro-0.0.4/idapro/stubs/idautils.pyi +486 -0
- idapro-0.0.4/idapro/stubs/idc.pyi +5159 -0
- {idapro-0.0.3.dev1 → idapro-0.0.4}/idapro.egg-info/PKG-INFO +10 -14
- idapro-0.0.4/idapro.egg-info/SOURCES.txt +64 -0
- {idapro-0.0.3.dev1 → idapro-0.0.4}/setup.py +93 -18
- idapro-0.0.3.dev1/idapro.egg-info/SOURCES.txt +0 -10
- {idapro-0.0.3.dev1 → idapro-0.0.4}/LICENSE +0 -0
- {idapro-0.0.3.dev1 → idapro-0.0.4}/README.md +0 -0
- {idapro-0.0.3.dev1 → idapro-0.0.4}/idapro/config.py +0 -0
- {idapro-0.0.3.dev1 → idapro-0.0.4}/idapro.egg-info/dependency_links.txt +0 -0
- {idapro-0.0.3.dev1 → idapro-0.0.4}/idapro.egg-info/not-zip-safe +0 -0
- {idapro-0.0.3.dev1 → idapro-0.0.4}/idapro.egg-info/top_level.txt +0 -0
- {idapro-0.0.3.dev1 → idapro-0.0.4}/setup.cfg +0 -0
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: idapro
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.4
|
|
4
4
|
Summary: IDA Library Python module
|
|
5
5
|
Author: Hex-Rays SA
|
|
6
6
|
Author-email: support@hex-rays.com
|
|
7
7
|
License: MIT
|
|
8
|
-
Classifier: Development Status :: 2 - Pre-Alpha
|
|
9
8
|
Classifier: License :: OSI Approved :: MIT License
|
|
10
9
|
Classifier: Programming Language :: Python :: 3
|
|
11
10
|
Classifier: Operating System :: OS Independent
|
|
@@ -25,17 +24,10 @@ Dynamic: summary
|
|
|
25
24
|
|
|
26
25
|
|
|
27
26
|
# IDA Library Python Module
|
|
28
|
-
|
|
29
|
-
**⚠️ This is a dev pre-release version. APIs may change without notice and pre-release versions may be deleted at any time.**
|
|
30
|
-
|
|
31
|
-
|
|
32
27
|
The IDA Library Python module enables running IDA Pro as an independent Python package outside the IDA UI environment, allowing for programmatic binary analysis and reverse engineering tasks.
|
|
33
28
|
|
|
34
|
-
|
|
35
29
|
## Prerequisites
|
|
36
|
-
|
|
37
30
|
### Environment Setup
|
|
38
|
-
|
|
39
31
|
Set the `IDADIR` environment variable to point to your IDA installation directory:
|
|
40
32
|
|
|
41
33
|
**Linux/macOS:**
|
|
@@ -56,7 +48,6 @@ set IDADIR="C:\Program Files\IDA Pro 9.1"
|
|
|
56
48
|
> **Note:** If you have already installed and configured the `idapro` Python package in the past using script provided with IDA installation package, setting `IDADIR` is not required.
|
|
57
49
|
|
|
58
50
|
## Usage example:
|
|
59
|
-
|
|
60
51
|
```python
|
|
61
52
|
#!/usr/bin/env python3
|
|
62
53
|
"""
|
|
@@ -192,10 +183,13 @@ if idapro.open_database(args.input_file, True) == 0:
|
|
|
192
183
|
idapro.close_database(False)
|
|
193
184
|
```
|
|
194
185
|
|
|
195
|
-
##
|
|
186
|
+
## Type Hints
|
|
187
|
+
This package automatically installs type stubs for all IDA Python modules, providing IDE support with autocompletion and type checking for IDA Python modules
|
|
196
188
|
|
|
197
|
-
|
|
189
|
+
Type hints are installed automatically during package installation!
|
|
198
190
|
|
|
191
|
+
## Troubleshooting
|
|
192
|
+
### Common Issues
|
|
199
193
|
**ModuleNotFoundError: No module named 'idapro'**
|
|
200
194
|
- Ensure `IDADIR` is set correctly
|
|
201
195
|
- Verify IDA Pro is properly installed
|
|
@@ -204,10 +198,12 @@ if idapro.open_database(args.input_file, True) == 0:
|
|
|
204
198
|
- Ensure you have a valid IDA Pro license
|
|
205
199
|
- Check that IDA can run normally in GUI mode first
|
|
206
200
|
|
|
207
|
-
|
|
201
|
+
**Type hints not working**
|
|
202
|
+
- Restart your IDE after installation
|
|
203
|
+
- Check that .pyi files exist in your site-packages directory
|
|
208
204
|
|
|
205
|
+
## API Reference
|
|
209
206
|
For detailed API documentation, refer to:
|
|
210
207
|
- IDA Python documentation at https://python.docs.hex-rays.com/
|
|
211
208
|
- Built-in help: `help(idapro)` after importing
|
|
212
209
|
- IDA Pro SDK documentation https://docs.hex-rays.com/developer-guide/c++-sdk
|
|
213
|
-
|
|
@@ -50,7 +50,7 @@ if platform_str == "Windows":
|
|
|
50
50
|
|
|
51
51
|
idalib_path = find_file(name=name, path=root_dir)
|
|
52
52
|
if idalib_path is None:
|
|
53
|
-
raise ImportError(f"Could not find {name} in {root_dir}. Please make sure you
|
|
53
|
+
raise ImportError(f"Could not find {name} in {root_dir}. Please make sure you are using IDA version 9.0 or newer and the IDADIR environment variable is set and points to the active IDA installation.")
|
|
54
54
|
|
|
55
55
|
if "IDA_IS_INTERACTIVE" in os.environ:
|
|
56
56
|
if os.environ["IDA_IS_INTERACTIVE"] == "1":
|
|
File without changes
|