ida js w/dbg

Author: David Zimmer
Date: 10.18.15 - 3:56am

So I finally found some free time this weekend to integrate the duktape debugger activex control I created with the original IDA JScript interface.Only took about 5hrs to get it swapped out and working.

Select your Version of IDA:

The old version only works on 32bit disassemblies. The newer version now supports 32 and 64bit disassemblies.

Note: While IDAJscript can do many things on its own, If you do need access to the full IDA API, I often use this as an IDC or IDAPython script generator. Its actually pretty convenient and allows you to review massive script actions for bugs before applying them.

quick overview:
  • script ida using javascript
  • full syntax highlighting, brace matching, auto indent, tool tips
  • intellisense
  • full debugger support, step in/out/over, breakpoints, mouse over variable vals
  • debugger cmdline to query/set vals, run functions etc
  • small IDA plugin as an IPC server with main UI as running out of process to simplify development.
  • currently supports following (8.11.23):
    • crypt: crc32 toHexStr fromHexStr md5 md5File hexdump writeBin getBin sha1 sha256 sha1File sha256File
    • x64: toHex add subtract
    • fso: readFile writeFile appendFile fileExists deleteFile openFileDialog saveFileDialog expandPath loadToJS
    • ida: isUp is32Bit message makeStr makeUnk loadedFile patchString patchByte getAsm instSize xRefsTo xRefsFrom getName functionName hideBlock showBlock setname addComment getComment addCodeXRef addDataXRef delCodeXRef delDataXRef funcVAByName renameFunc find decompile jump jumpRVA refresh undefine showEA hideEA removeName makeCode funcIndexFromVA nextEA prevEA funcCount() numFuncs() functionStart functionEnd readByte originalByte imageBase screenEA() quickCall clearDecompilerCache() isCode isData readLong readShort readQWord dumpFunc dumpFuncBytes getopv add_enum get_enum add_enum_member importFile addSect sectExists delSect getSects getFunc readStr OffsetToVa VaToOffset getRes
    • list1: AddItem Clear ListCount Enabled
    • app: intToHex t clearLog caption alert getClipboard setClipboard benchMark askValue exec enableIDADebugMessages timeout do_events() hexDump hexstr toBytes confirm
    • remote: ip response ScanProcess ResolveExport
    • al: addAddr showList() hideList() clear() copyAll() setColHeaders
    • pb: max value clear() inc()
    • fn: index name start end size xrefs refqty argsize tailqty labelqty frsize


Comments: (2)

On 09.30.17 - 3:09am Dave wrote:
IDA Compare will need similar updates and might just get converted to use IDASRVR as well and move the IDB exporter to the out of process GUI part. In practice it may take a while not because its hard, but because I dont care. I still use IDA 6.7 despite having access to the newer versions for exactly these types of upgrade reasons.

On 08.09.23 - 11:16am Dave wrote:
Ida is now doing away with its 32bit version fir 32bit disassembly and will doing everything from one 64 bit exe. I will be able to make this transition with it but not sure when I update my personal license. Too expensive to do arbitrarily. The x64 side of ida Jscript may just work without hiccup on 32 but binaries someone let me know

Leave Comment:
Email: (not shown)
Message: (Required)
Math Question: 37 + 5 = ? followed by the letter: V 

About Me
More Blogs
Main Site
Posts: (year)
2024 (1)
     vbdec backstory
2023 (4)
     Yara Workbench Automation
     VS linker versions
     IDA decompiler comments
2022 (5)
     VB6 Implements
     VB6 Stubs BS
     VB6 TypeInfo
     VB6 VTable Layout
     Yara isPCode rule
2021 (2)
     VB6 Gosub
2020 (5)
     AutoIT versions
     IDA JScript 2
     Using VB6 Obj files from C
     Yara Corrupt Imports
     Yara Undefined values
2019 (6)
     Yara WorkBench
     vb6 API and call backs
     UConnect Disable Cell Modem
2017 (5)
     IDA python over IPC
     dns wildcard blocking
     64bit IDA Plugins
     anterior lines
     misc news/updates
2016 (4)
     KANAL Mod
     Decoders again
     CDO.Message Breakpoints
     SysAnalyzer Updates
2015 (5)
     SysAnalyzer and Site Updates
     crazy decoder
     ida js w/dbg
     flash patching #2
     JS Graphing
2014 (5)
     Delphi IDA Plugin
     scdbg IDA integration
     API Hash Database
     Winmerge plugin
     IDACompare Updates
2013 (9)
     Guest Post @ hexblog
     TCP Stream Reassembly
     SysAnalyzer Updates
     Apilogger Video
     Shellcode2Exe trainer
     scdbg updates
     IDA Javascript w/IDE
     Rop Analysis II
     scdbg vrs ROP
2012 (13)
     flash patching
     x64 Hooks
     micro hook
     jmp api+5 *2
     SysAnalyzer Updates
     InjDll runtime config
     C# Asm/Dsm Library
     Shellcode Hook Detection
     Updates II
     Java Hacking
     Windows 8
     Win7 x64
2011 (19)
     Graphing ideas
     .Net Hacking
     Old iDefense Releases
     hll shellcode
     ActionScript Tips
     -patch fu
     scdbg ordinal lookup
     scdbg -api mode
     Peb Module Lists
     scdbg vrs Process Injection
     GetProcAddress Scanner
     scdbg fopen mode
     scdbg findsc mode
     scdbg MemMonitor
     demo shellcodes
     scdbg download
     api hashs redux
     Api hash gen
2010 (11)
     Retro XSS Chat Codes
     Exe as DLL
     Olly Plugins
     Debugging Explorer
     Attach to hidden process
     JS Refactoring
     Asm and Shellcode in CSharp
     Fancy Return Address
     PDF Stream Dumper
     Malcode Call API by Hash
     WinDbg Cheat Sheet
2009 (1)
     GPG Automation