repositories

daemon-sec-cheatsheet

The cheatsheet vault for operators: AD, enumeration, exploitation, priv-esc, web, DFIR

clonegit clone https://git.daemon-sec.xyz/daemon-sec-cheatsheet.git
ios-hooking-with-objection.mdMarkdown275 lines13.2 KiBsource raw download

title: "iOS Hooking with Objection" section: "Mobile" sectionSlug: "mobile-pentesting" sourcePath: "src/mobile-pentesting/ios-pentesting/ios-hooking-with-objection.md" sourceUrl: "https://github.com/HackTricks-wiki/hacktricks/blob/188de82beb54e70956b2952367a0af91d26758b8/src/mobile-pentesting/ios-pentesting/ios-hooking-with-objection.md" sha: "188de82beb54e70956b2952367a0af91d26758b8" isIndex: false modified: true license: "CC-BY-NC-4.0"#

iOS Hooking with Objection#

For this section the tool Objection is going to be used.[1]
Start by getting an objection's session executing something like:

objection -d --gadget "iGoat-Swift" explore
objection -d --gadget "OWASP.iGoat-Swift" explore

You can execute also frida-ps -Uia to check the running processes of the phone.

Basic Enumeration of the app#

Local App Paths#

List Bundles, frameworks and libraries#

List classes of an APP#

List class methods#

Basic Hooking#

Now that you have enumerated the classes and modules used by the application you may have found some interesting class and method names.

Hook all methods of a class#

Hook a single method#

Change Boolean Return#

Generate hooking template#

References#