Commit Graph

507 Commits

Author SHA1 Message Date
Arnaud Diederen dcca75f50e Backport fixes; add bookmarks sample 2023-05-23 12:21:29 +02:00
Elias Bachaalany b281924149 idautils: don't use cvar, use the helper functions (#52) 2023-05-20 13:33:04 -07:00
Elias Bachaalany 718f810302 Merge pull request #51 from Harding-Stardust/fix-hardcoded-value
Fix: replaced a magic constant with a named constant
2023-05-19 14:40:51 -07:00
Harding 11cff555b8 Fix: replaced a magic constant with a constant 2023-05-19 22:50:43 +02:00
Elias Bachaalany caeafef297 Merge pull request #47 from lallouslab/ren_peutils
bugfix: idautils.peutils_t had dup definitions of the same function
2023-05-13 19:56:46 -07:00
Elias Bachaalany bb73c36f12 + added async/await and nonlocal keywords 2023-05-13 19:47:39 -07:00
Elias Bachaalany ca804a478b - simplified idautils.Modules() to return the modinfo_t object as is 2023-05-09 20:53:51 -07:00
Elias Bachaalany 99bc2ae815 Merge pull request #22 from disconnect3d/patch-1
Simplifies _print_hex method
2023-05-05 22:30:34 -07:00
Elias Bachaalany 6e3899391a Update py_idaapi.py
IDA 8 no longer supports Python 2. Therefore, in Python 3, no "L" suffix is generated.
2023-05-05 22:26:46 -07:00
Elias Bachaalany 584f1139f7 Merge pull request #26 from remijullian1/fix/idp-hook-example
Fix assemble idp hook example
2023-05-05 21:47:59 -07:00
Elias Bachaalany e2f5d10a5b Merge branch 'master' into fix/idp-hook-example 2023-05-05 21:47:01 -07:00
Elias Bachaalany 7fab5f94b4 Merge pull request #48 from lallouslab/py310kwd
+ added highlighting for Python 3.10 keywords
2023-05-05 19:25:12 -07:00
Elias Bachaalany 70e5c24046 minor mods 2023-05-05 08:01:11 -07:00
Elias Bachaalany ced3e36d46 + added highlighting for Python 3.10 keywords 2023-05-04 22:14:04 -07:00
Elias Bachaalany 8e3a5f55b3 bugfix: idautils.peutils_t had duplicate definitions of the same function
- renamed the `header` property to its proper name: `header_offset`
- added more docstrings
- minor mods
2023-05-04 21:01:55 -07:00
Elias Bachaalany 0bd9d5db5c Update .gitignore
Ignore .vscode editor work folder
2023-05-04 20:40:17 -07:00
Elias Bachaalany df6fcffcac Merge pull request #45 from lallouslab/idc_get_proc_name
+ idc.py: added missing get_processor_name()
2023-04-22 20:28:21 -07:00
Elias Bachaalany f9b664ac9c + idc.py: added missing get_processor_name() 2023-04-22 12:38:18 -07:00
Arnaud Diederen 44a54d212e Merge pull request #43 from lallouslab/modern-plg
+ added default run/term for modern plugins
2023-04-07 16:31:21 +02:00
Elias Bachaalany d34bb4b45a + added default run/term for modern plugins
No longer need to implement dummy/empty run/term callbacks in plugin_t.
2023-04-06 19:52:18 -07:00
Elias Bachaalany ab9597c49b fixed typo in custom_graph_with_actions.py
minor typo
2023-03-31 09:47:48 -07:00
Elias Bachaalany 44d7546da9 Update py_kernwin_choose.py
minor mods
2023-03-21 21:50:24 -07:00
Elias Bachaalany 81d6c37933 Update init.py
minor typo
2023-03-17 11:45:05 -07:00
Arnaud Diederen bb426c33ee Backport fixes 2023-02-27 09:37:36 +01:00
Arnaud Diederen d108d21ed3 Backport fixes 2023-02-20 09:44:21 +01:00
Arnaud Diederen 8ce2ea7146 Backport fixes
* non-modal Python forms (using class Form) could cause crashes on the ARM macOS build of IDA
* marked certain `newref_t` & `borref_t` constructors `delete` (we're not supposed to copy `newref_t`'s and `borref_t`'s, as it would mess up the refcount)
2023-02-07 12:26:08 +01:00
Elias Bachaalany eaf190072b Merge pull request #42 from 0xeb/hr
minor mods: use the bool operator on ref_t and co.
2023-02-06 23:47:39 -08:00
Arnaud Diederen e06d4d0986 Added missing support for ida_kernwin.Chooser.OnGetEA 2023-01-30 10:50:06 +01:00
Elias Bachaalany 50faf9466c fixed bugs introduced in the previous refactoring 2023-01-26 22:46:35 -08:00
Elias Bachaalany 67748fc426 Merge remote-tracking branch 'origin/master' into hr 2023-01-26 22:29:17 -08:00
Arnaud Diederen bdc46aaaa0 IDAPython: added a mechanism to use the freshly-built modules to perform the pydoc injections check, in case of an out-of-tree build 2023-01-26 12:14:15 +01:00
Arnaud Diederen 27fa71c5ac IDAPython for IDA 8.2SP1 2023-01-26 10:56:52 +01:00
Elias Bachaalany 477a02f444 minor mods: use the bool operator on ref_t and co. 2023-01-25 20:57:20 -08:00
Arnaud Diederen 4d3da678c0 Merge pull request #40 from 0xeb/choose_ongetattr
+ bugfix: IDAPython: Choose.OnGetLineAttr was broken
2023-01-18 10:09:31 +01:00
Elias Bachaalany 000531ae46 Merge pull request #41 from ramikg/fix-extlang-paragraph-in-readme
Updated/fixed the `load_and_run_plugin` paragraph in `README.md`

PR #37 was prematurely merged introducing this incorrect documentation. This PR fixes this issue.
2023-01-17 09:05:59 -08:00
Rami 34b756d554 Fix load_and_run_plugin paragraph in README.md 2023-01-17 18:52:16 +02:00
Elias Bachaalany 1284df5188 added bool operator for ref_t and simplified the fix 2023-01-17 08:20:02 -08:00
Elias Bachaalany 02c95291c3 + bugfix: IDAPython: Choose.OnGetLineAttr was broken
- It was only accepting lists (it should accept both tuples and lists)
2023-01-17 08:19:41 -08:00
Arnaud Diederen 751a988c7c Merge pull request #37 from ramikg/patch-1
Update links in `README.md`
2023-01-16 11:51:03 +01:00
Arnaud Diederen f6c76a6e88 Merge pull request #39 from 0xeb/minor-mods-bld-lnx
Added minor clarification for building the patched SWIG on Linux
2023-01-16 11:49:21 +01:00
Arnaud Diederen a2a75975f2 Backported fixes - mostly issues discovered with Python 3.11+ 2023-01-16 11:14:55 +01:00
Arnaud Diederen 201a874e81 BUGFIX: IDAPython: upon failure, ida_hexrays.decompile() now always returns None (instead of either throw a ida_hexrays.DecompilationFailure or return None.)
The type `ida_hexrays.DecompilationFailure` is still present (but is a dummy) because otherwise scripts might break. It is never thrown anymore.

Note that `vds_xrefs.py` still need the `str(cfunc))` kludge, because of a caveat in when/how the decompiler actually updates the global xrefs cache. This will be fixed in the next IDA minor release

In addition, this commit introduces the notion of a typemap to convert form an `ea_t` to a `func_t *` for the `decompile()` call, but doesn't generalize its use.
Since this is a relatively far-ranging change, this will only be introduced in the next IDA minor release as well.
2023-01-16 10:50:06 +01:00
Elias Bachaalany a3960ed2f9 fixed another typo 2023-01-11 23:52:46 -08:00
Elias Bachaalany f61a071204 Added minor clarification for building the patched SWIG on Linux 2023-01-11 19:57:51 -08:00
ramikg 6f0b50bba5 Update out-of-date information in README.md 2023-01-08 06:53:11 +02:00
Elias Bachaalany ca0fb1a4c2 Merge pull request #38 from ramikg/patch-2
Delete `readme.md` and keep README.md.
2023-01-07 19:16:39 -08:00
ramikg e1c946123e Delete readme.md 2023-01-08 00:12:44 +02:00
ramikg 0db1983de8 Update links in README.md 2023-01-08 00:11:27 +02:00
Elias Bachaalany 901762a8fb Merge pull request #35 from 0xeb/vds_xrefs
fixed decompile() calls.

See PR #32
2023-01-07 13:51:50 -08:00
Elias Bachaalany b79faaaf6a Merge pull request #34 from 0xeb/chooser-show
Show the chooser when the script is launched
2023-01-07 13:48:08 -08:00