Commit Graph

240 Commits

Author SHA1 Message Date
elias.bachaalany
e056f5670f bugfix: string conversion routine was returning size+1
this was true when only VT_STR existed
2010-02-12 12:56:14 +00:00
elias.bachaalany
bbabb3d6fa creating opaque types to be used with extlang may crash sometimes:
it is bad to keep a reference to add_idc_class() better use find_idc_class() instead
2010-02-12 12:45:10 +00:00
gergely.erdelyi
dd5273fee9 init.py: modules loaded by user scripts are now unloaded when the script finishes. No more reload() needed. Thanks to cbwhiz for the idea. 2010-02-04 20:58:38 +00:00
gergely.erdelyi
e1298031ac Alt-7 uses runscript() to run scripts 2010-02-04 20:44:37 +00:00
gergely.erdelyi
5ec97ef3aa idautils.py: Functions() will return the correct list of functions even in large binaries 2010-02-04 20:29:50 +00:00
elias.bachaalany
ea4cd26a6a MakeArray and GetStringType: were using an old type name
GetLongPrm and SetLongPrm were not working with INF_PROCNAME
2010-01-27 09:52:22 +00:00
elias.bachaalany
a39ada9fb6 idapython menus would duplicate each time a database is opened 2010-01-18 10:56:36 +00:00
elias.bachaalany
d7c6f94f08 bugfix: SetRegEx and GetReg were only working with x86 segment registers 2010-01-18 10:55:33 +00:00
elias.bachaalany
277facf240 IDAPython 1.3.0 / IDA Pro 5.6
(For older versions please use the 1.2.90 branch)
2010-01-05 18:24:04 +00:00
elias.bachaalany
ab7a03431e idc.py: RefreshDebuggerMemory() was broken 2009-11-13 12:24:06 +00:00
elias.bachaalany
0e9f53eaad bytes.i: wrapped nextthat/prevthat() 2009-10-30 14:18:28 +00:00
elias.bachaalany
01601d7eea idapython: it is possible to load IdaPython at an early stage and keep it loaded as long as IDA is running.
(One needs to pass the "--early-load" switch to build.py)
2009-10-29 11:37:24 +00:00
elias.bachaalany
7970f9696d added from_cobject method to both loader_input_t and qfile_t python classes 2009-10-29 11:31:53 +00:00
elias.bachaalany
b9465ab7f6 diskio.i: wrapped enumerate_files and enumerate_system_files 2009-10-21 11:51:31 +00:00
elias.bachaalany
06e3f4f80f minor changes 2009-10-21 11:50:51 +00:00
elias.bachaalany
62b9382ee8 diskio.i: wrapped linput_t* related functions into loader_input_t python class 2009-10-21 11:49:41 +00:00
elias.bachaalany
608c8f0eb8 wrapped qfile related functions in a qfile_t class 2009-10-21 11:44:43 +00:00
elias.bachaalany
dac4a0629e minor changes 2009-10-21 08:49:53 +00:00
elias.bachaalany
a4627a6d36 ida.i: fixed %ignore so we ignore functions from the idainfo class 2009-10-21 08:49:38 +00:00
elias.bachaalany
3862f05f3f build.py: slightly modified the build.py script so that it can be imported and used from other build scripts 2009-10-19 07:21:22 +00:00
elias.bachaalany
99c60a82de idautils.py: added procregs to identify registers and modified DecodeInstruction().
It is now possible to identify the registers of a decoded instruction with:

cmd = DecodeInstruction(here())
if cmd[0].is_reg(proc_regs.eax): print "EAX is used"

or something like:

if cmd[1].is_reg(proc_regs.al): print "al is used"
2009-10-19 07:17:22 +00:00
gergely.erdelyi
c21a932cec idc.py: Whitespace and indentation fixes 2009-10-17 21:12:15 +00:00
gergely.erdelyi
cb57938dcc idc.py: Fixed RunTo() and GetExceptionQty() 2009-10-17 21:08:36 +00:00
gergely.erdelyi
9d3fb35f87 has_key() is slowly getting deprecated. Might make sense to stop using it. 2009-10-17 20:54:08 +00:00
gergely.erdelyi
bbf6b2e547 idautils.py: Rearranged function order to be more logical 2009-10-17 20:46:51 +00:00
gergely.erdelyi
2edeeae88b idautils.py: Classes are all newskool. Fixed a pylint warning. 2009-10-17 20:43:09 +00:00
gergely.erdelyi
8e66e14588 idautils.py: Small whitespace and indentation fixes 2009-10-17 20:38:40 +00:00
gergely.erdelyi
9c80378afe idautils.py: Added missing self 2009-10-17 20:33:09 +00:00
elias.bachaalany
2f31ce656b build.py: now build.py will use the "IDA" environment variable (if it exists) to tell where the SDK is.
(for example if IDA=$HOME/idasdk, then build will use $IDA/include and $IDA/libXXXXX)
2009-10-16 12:07:18 +00:00
elias.bachaalany
b09eea4de8 idapython was not compiling since r239 (it was using an unpublished API) 2009-10-12 11:13:25 +00:00
elias.bachaalany
9917459559 idautils.py: Added Threads() iterator to enum threads 2009-10-05 10:35:27 +00:00
elias.bachaalany
4191b186d9 kernwin.i: added code markers to choose2 wrapper code (for easier maintenance) 2009-10-05 10:34:29 +00:00
elias.bachaalany
5fe579530a dbg.i/idd.i: wrapped some functions from the dbg/debugger_t class: get_manual_regions/dbg_get_memory_info/dbg_get_registers/dbg_get_thread_sreg_base/dbg_read_memory/dbg_write_memory/dbg_can_query 2009-10-05 10:30:50 +00:00
elias.bachaalany
e2a0ee8204 graph.i: fixed a small bug with gettext / background color
- removed some whitespaces
- added some code markers
2009-10-05 10:28:01 +00:00
elias.bachaalany
7ea3709021 graph.i: added graph support (works only with the GUI version) 2009-10-02 17:40:26 +00:00
elias.bachaalany
d278419064 added Choose2() support 2009-09-24 14:20:29 +00:00
elias.bachaalany
56f6dc02be kernwin.i: fixed a reference leak 2009-09-24 10:43:25 +00:00
elias.bachaalany
9f4df6991f idautils.py: GetDataList() was not working with 64bit addresses 2009-09-24 10:42:09 +00:00
elias.bachaalany
45099f4ad4 idautils.py: added qword support for GetDataList() 2009-09-23 07:03:16 +00:00
elias.bachaalany
5e0deab556 typeinf.i: fixed %rename directive for load_til_header() 2009-09-22 15:39:50 +00:00
elias.bachaalany
8bf3e2054d kernwin.i: added add_menu_item to ignore list (it was being wrapped twice (as overloaded function)) 2009-09-22 15:38:57 +00:00
elias.bachaalany
4e02442b9a idp.i: added AssembleLine() which is similar to assemble() but assembles into a buffer instead
idautils.py: added Assemble() utility function
2009-09-22 14:36:55 +00:00
elias.bachaalany
910f88f6b7 - added NearestName class 2009-09-17 11:48:18 +00:00
elias.bachaalany
3ea31d70c7 - wrapped get_debug_names() (check ex_debug_names.py) 2009-09-17 11:46:35 +00:00
gergely.erdelyi
38b7c484f3 gdl.i: Small typo and whitespace fixes 2009-09-16 19:01:45 +00:00
elias.bachaalany
e27524cca5 idautils: added Strings class to enumerate strings (check ex_strings.py)
gdl.i: added FlowChart and BasicBlock classes (check examples / ex_gdl_qflow_chart)
idc.py : fixed MakeName() and AnalyseArea() (they were not returning return values)
2009-09-16 14:00:31 +00:00
gergely.erdelyi
e51eb69e3a idautils.py: Small docstring formatting fixes. 2009-09-13 17:37:43 +00:00
gergely.erdelyi
5e93f49c97 python.cpp: More places allow breaking of long-running scripts. Thanks Elias for the patch! 2009-09-13 17:37:04 +00:00
gergely.erdelyi
08ea62d8fa kernwin.i: Copying strings with strcpy is baad. Thanks Elias for the patch! 2009-09-13 17:36:05 +00:00
gergely.erdelyi
39d692c258 idc.py: Removed redundant definition of OpFloat() 2009-09-07 17:16:06 +00:00