Skip to content

Latest commit

 

History

History
62 lines (46 loc) · 1.99 KB

README.md

File metadata and controls

62 lines (46 loc) · 1.99 KB

Hopper scripts

Hopper Disassembler Python v3 scripts for macOS.

To install, copy or symlink the scripts to ~/Library/Application Support/Hopper/Scripts. If Hopper is already running, you'll have to run the Reload Script Folder Content command from the Scripts menu.

Open current procedure in configured code editor for you to enjoy syntax coloring, highlighting, find keyboard shortcuts, etc.. Default editor is Sublime Text.

Requirements

Any supported editor: Sublime Text, Visual Studio Code, TextMate, BBEdit, SubEthaEdit, etc..

How to

On first launch, the script creates a JSON configuration file at: ~/Library/Application Support/Hopper/Scripts/Decompile to Editor.json

Here you have the JSON configuration default contents:

{
  "editor": "Sublime Text",
  "editors": {
    "BBEdit": [
      "/usr/local/bin/bbedit"
    ],
    "MacVim": [
      "/Applications/MacVim.app/Contents/MacOS/Vim",
      "-g"
    ],
    "SubEthaEdit": [
      "/usr/local/bin/see"
    ],
    "Sublime Text": [
      "/usr/local/bin/subl"
    ],
    "TextMate": [
      "/usr/local/bin/mate"
    ],
    "Visual Studio Code": [
      "/usr/local/bin/code"
    ]
  }
}

Set the editor value to your favorite editor. Add editors commands to support even more editors. The temporary filepath is the last command parameter.

Demangle all labels with Swift mangled names.

Attempt to load libswiftDemangle.dylib or run swift-demangle command-line interface on library load error.

Requirements

Xcode or Command Line Tools.