Skip to main content

TBA

Project description

Module ida-is

Shortcut functions for quickly checking or manipulating an address or function's flags.

Flag checks

Usage:

from ida_is import *

if HasAnyName(0x140000000) or HasAnyName('__ImageBase') or \
        HasAnyName(ida_funcs.get_func(0x140000000)):
    # ...

# Effectively identical to:
#     return idc.get_full_flags(_get_ea_by_any(ea)) & idc.FF_ANYNAME != 0

Functions

 def HasAnyName(ea)
 def HasLabel(ea)
 def HasName(ea)
 def HasUserName(ea)
 def IsAlign(ea)
 def IsBin0(ea)
 def IsBin1(ea)
 def IsByte(ea)
 def IsChar0(ea)
 def IsChar1(ea)
 def IsChunkHead(ea)
 def IsChunkStart(ea)
 def IsCode_(ea)
 def IsData(ea)
 def IsDec0(ea)
 def IsDec1(ea)
 def IsDefarg0(ea)
 def IsDefarg1(ea)
 def IsDouble(ea)
 def IsDword(ea)
 def IsEnum0(ea)
 def IsEnum1(ea)
 def IsExtern(ea)
 def IsExtra(ea)
 def IsFloat(ea)
 def IsFlow(ea)
 
 def IsFunc_(ea)
 def IsHead(ea)
 def IsHex0(ea)
 def IsHex1(ea)
 def IsManual0(ea)
 def IsManual1(ea)
 def IsOct0(ea)
 def IsOct1(ea)
 def IsOff0(ea)
 def IsOff1(ea)
 def IsOword(ea)
 def IsPackReal(ea)
 def IsQword(ea)
 def IsRef(ea)
 def IsSeg0(ea)
 def IsSeg1(ea)
 def IsStkvar0(ea)
 def IsStkvar1(ea)
 def IsStrlit(ea)
 def IsStroff0(ea)
 def IsStroff1(ea)
 def IsStruct(ea)
 def IsTail(ea)
 def IsTbyte(ea)
 def IsUnknown(ea)
 def IsWord(ea)

Function Flag Checking

 def IsFuncBottomBP(ea)
 def IsFuncEntry(ea)
 def IsFuncFar(ea)
 def IsFuncFrame(ea)
 def IsFuncFuzzySp(ea)
 def IsFuncHead(ea)
 def IsFuncHidden(ea)
 def IsFuncLib(ea)
 def IsFuncLumina(ea)
 def IsFuncNoRet(ea)
 def IsFuncNoRetPending(ea)
 def IsFuncPrologOk(ea)
 def IsFuncPurgedOk(ea)
 def IsFuncSpReady(ea)
 def IsFuncStart(ea)
 def IsFuncStaticDef(ea)
 def IsFuncTail(ea)
 def IsFuncThunk(ea)
 def IsFuncUserFar(ea)

Function Flags Setting

Usage:

from ida_is import *

SetFuncFar(0x140000000, true), SetFuncFar('__ImageBase', true), \
        SetFuncFar(ida_funcs.get_func(0x140000000), true)

# Effectively:
#     def SetFuncFar(ea, v):
#         if v:
#             _SetFuncFlags(_get_ea_by_any(ea), lambda x: x | ida_funcs.FUNC_FAR)
#         else:
#             _SetFuncFlags(_get_ea_by_any(ea), lambda x: x & ida_funcs.FUNC_FAR)

Functions

 def SetFuncBottomBP(ea, v)
 def SetFuncFar(ea, v)
 def SetFuncFrame(ea, v)
 def SetFuncFuzzySp(ea, v)
 def SetFuncHidden(ea, v)
 def SetFuncLib(ea, v)
 def SetFuncLumina(ea, v)
 def SetFuncNoRet(ea, v)
 def SetFuncNoRetPending(ea, v)
 def SetFuncPrologOk(ea, v)
 def SetFuncPurgedOk(ea, v)
 def SetFuncSpReady(ea, v)
 def SetFuncStaticDef(ea, v)
 def SetFuncTail(ea, v)
 def SetFuncThunk(ea, v)
 def SetFuncUserFar(ea, v)

Generated by pdoc 0.10.0 (https://pdoc3.github.io).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ida-is-0.0.6.tar.gz (4.8 kB view details)

Uploaded Source

File details

Details for the file ida-is-0.0.6.tar.gz.

File metadata

  • Download URL: ida-is-0.0.6.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.7.9

File hashes

Hashes for ida-is-0.0.6.tar.gz
Algorithm Hash digest
SHA256 a72b9d21cef256349d9fe5feeb26194e78a76900b51295ac311b93f71c5bf840
MD5 a0bf0c87614f3541173ce40cf0809182
BLAKE2b-256 ef564f7c49d1d39468d23ea3c0a0f2fcb2317a7c328bda85be7764216464750f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page