WithSecureLabs / needle

The iOS Security Testing Framework
https://mobiletools.mwrinfosecurity.com/
Other
1.33k stars 283 forks source link

Fix syntax issues in the module "script_hook-method-of-class" #233

Closed Yogehi closed 6 years ago

Yogehi commented 6 years ago

fixed three issues.

1) on line 21, fixed the same issue that was outlined in pull request https://github.com/mwrlabs/needle/pull/227. Credit to Kamil Wilk of MWR for coming up with this fix.

2) on line 27, 'funcName' was used instead of 'methodName'. Should have been 'methodName' to begin with.

3) lines 33-39 was supposed to return the result of the hooked method, but the frida script did not properly return the result. the proposed changes to lines 33 and 34 addresses this issue.