Skip to content

Instantly share code, notes, and snippets.

@zrzka
Created December 4, 2014 11:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zrzka/3f0bd36d095826449850 to your computer and use it in GitHub Desktop.
Save zrzka/3f0bd36d095826449850 to your computer and use it in GitHub Desktop.
Bezpečnost - 2 - HTTPS - Hooknutí na naši metodu
@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