Skip to content

Draft: limehook: hook for sublime text / sublime merge

Ζέφυρος Λύκος requested to merge sublime into trunk
  • should be generic across versions
  • (hopefully) works on linux, needs initial infrastructure for linux support to replace sublime-launcher
  • implement a cache system if scanning xref takes too long

steps:

  • search for " Build %s\n" and offset by -5 to find product name
    • "Sublime[ Text] Build %s\n"
    • "Sublime [Merge] Build %s\n"
  • search for "0123456789ABCDEF" in .rdata and find xref in .text for license check
    need a reliable way to find function start (idea: iter backwards until int 3/call/ret?)
  • patch two delay check threads
    • mov ???, 0x1388; call;
    • mov ???, 0x3a98; call;
  • disable online license check:
    • hook dns on windows
    • hook libcurl plt on linux

Merge request reports