ida js w/dbg


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



This will be getting its own page soon.

IDA JScript v3 is now available: IDA 7/8/9 Installer (source) (js4vb 2026)

    Extras included:
  • IdaCompare - basic IDA diffing util with name porting
  • xSync - remote control of x64Dbg/olly over network with UI sync to IDA (beta)
  • IdaSvr2 - IPC plugin to control IDA from external programs
  • GleeGraph - qwingraph replacement with node click capability and renaming
  • Note: some newer functions have not been back ported to the older IDA 7/8 plugin stubs yet. See object browser for notes.


Older versions:
  • IDA 7/8/9 Installer (source) (duktape 2015-2025)
  • IDA <= 6.9 Installer (source) (MSScriptControl 2011-2015)
  • IDA 4.8 Installer (2006 for laughs only..)





    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 (11.25):
      • 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
      • dbg:getRegisters remoteIP remotePort connect disconnect readMem readString writeMem setbp delbp setCmt getCmt setLabel getReg setReg stepInto run pause getModules getMod notify notifyRange unnotify unnotifyRange optRva status disasm eval







    Credits:




    Comments: (8)

    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

    On 01.11.25 - 7:04am Dave wrote:

    Note: this has been fixed in v3 with the new js engine.

    The first versions of this project started when windows was 32bit only. VB has no support for x64 numbers natively. Keep in mind JS has a MAX_SAFE_INTEGER of:

    0x001FFFFFFFFFFFFF vrs full x64 range
    0xFFFFFFFFFFFFFFFF

    This is why I handle x64 values as strings by default and have the x64 class to safely handle add/subtract/tohex for any condition.

    I have tried to make this as invisible as possible, but do keep this in mind if you are using large JS native numbers in your scripts.

    In x64 Disasm I did have a few places where you might get an 0x[decimal] number back. I think I have fixed them all now.

    I am almost considering ditching the JS engine and switching over to python. Check this control out

    https://sandsprite.com/blogs/index.php?uid=11&pid=534&year=2023

    On 01.31.25 - 6:59am Dave wrote:
    IDA scripting languages timeline in comments here:

    https://sandsprite.com//blogs/index.php?uid=7&pid=492&year=2020

    On 02.06.25 - 9:36pm dave wrote:
    after like a decade, ida compare is back in business. api changes after 6.9 drove me to drop it but i always missed it. now it uses the same idasvr plugin ida jscript uses and i switched it over to sqllite as the db provider (manual odbc driver install required). glad i finally bit the bullet. probably only took another 5 hrs.

    In other news, I am thinking about writing an IPC plugin for binary ninja that supports the same outward api. It would be pretty cool if same IDA script worked in binary ninja too.

    basically write as little as possible as a plugin, give yourself a standardized intermediate api, and do main development out of process. Just cant afford to keep having all your complicated hard to debug work broken over and over again. And at least have a shot of your same main code supporting multiple host processes.

    On 09.05.25 - 4:00pm Dave wrote:
    if you paste in the top basic style prototypes from /COM/ida.js or even just the list from above in this post without args and descript to chatgpt what you want your script to do, it does an amazingly good at figuring out how to wield this api and write complex scripts for you. blowing me away!

    On 12.14.25 - 8:53am dave wrote:
    btw is you feed idasvr.cpp into claude and tell it you want a compatiable interface for binary ninja im pretty sure he can just spit out pretty quickly ! you could even rig it with ghidra.

    On 12.19.25 - 10:12am Dave wrote:
    Ive actually just started leaving ida jscript open and using it as a command line interface to ida as I work.

    This way i can pull a graph from the current function with graph(), or copy the current va while in the decompiler view with print(h(ida.ScreenEA())) or app.setClipboard(h(ida.ScreenEA())), or run ida.CloseDecompilerWindows() whenever.

     
    Leave Comment:
    Name:
    Email: (not shown)
    Message: (Required)
    Math Question: 41 + 14 = ? followed by the letter: X 



About Me
More Blogs
Main Site
Posts: (year)
2025 (14)
     Close IDA decompiler windows
     IDA Xrefs From/To
     Youtube AI Slop
     IDA Jscript 3 Beta
     IDA JScript Updates
     IdaCompare StringDiff
     Sensationalization
     Claude AI Personality Emergence
     iPhone to PC Dictation
     pediff and chatgpt
     Py Magic Numbers
     upside down pyramid
     IDA Compare Updates
     Bindiff Niceity
2024 (1)
     MAP Update
2023 (4)
     Yara Workbench Automation
     VS linker versions
     IDA decompiler comments
     DispCallFunc
2022 (5)
     VB6 Implements
     VB6 Stubs BS
     VB6 TypeInfo
     VB6 VTable Layout
     Yara isPCode rule
2021 (2)
     rtcTypeName
     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
     SafeArrayGetVartype
     vb6 API and call backs
     PrintFile
     ImpAdCallNonVirt
     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
     findDll
     Java Hacking
     Windows 8
     Win7 x64
2011 (19)
     Graphing ideas
     .Net Hacking
     Old iDefense Releases
     BootLoaders
     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