Created
December 4, 2014 11:42
-
-
Save zrzka/3f0bd36d095826449850 to your computer and use it in GitHub Desktop.
Bezpečnost - 2 - HTTPS - Hooknutí na naši metodu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@import com.saurik.substrate.MS | |
NSLog_ = dlsym(RTLD_DEFAULT, "NSLog") | |
NSLog = function() { var types = 'v', args = [], count = arguments.length; for (var i = 0; i != count; ++i) { types += '@'; args.push(arguments[i]); } new Functor(NSLog_, types).apply(null,$ | |
var oldm = {}; | |
MS.hookMessage( ViewController, @selector(signatureWithPlainText:key:), function( text, key ) { | |
NSLog( @"Text: ->%@<-", text ); | |
NSLog( @"Key: ->%@<-", key ); | |
return oldm->call( this, text, key ); | |
}, oldm ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment