/HopperScripts-v5

Hopper Disassembler v5 scripts, focus on iOS/macOS

Primary LanguagePythonMIT LicenseMIT

HopperScripts

**HopperScripts V5** ===

The script stash for Hopper Disassembler v5. Focus on Apple platforms and personal use cases.

Install

  1. Clone the repo for scripts
  2. cd ~/Library/Application\ Support/Hopper/Scripts/ (or open Hopper and type Command + Shift + P and open scripts folder)
  3. Copy the scripts into scripts folder
  4. Reload scripts and run from

Objective-C XRef Helper.py

When deployment target on iOS 14+/tvOS 14+/watchOS 7+/macOS 11+, Objective-C runtime will use the relative method list to optimize memory usage. Learn WWDC 2020 - Advancements in the Objective-C runtime

However Hopper (v5.5.3) seems could not parse the selector and calls. So this scripts fix this and add the XRef between calls.

You can teach ld64 to force enable relative method list via -objc_relative_method_lists as well.

  • Demo
- (void)viewDidLoad {
    [super viewDidLoad];
    self.username = [Utils currentUserName];
    [Utils storeContents:@"Teststring"];
}
  • Before Script

  • After Script

Related Links