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
from objc_util import * | |
from inspect import getargspec | |
c.method_setImplementation.restype = c_void_p | |
c.method_setImplementation.argtypes = [c_void_p, c_void_p] | |
c.method_getImplementation.restype = c_void_p | |
c.method_getImplementation.argtypes = [c_void_p] | |
''' Make `swizzledFunc` run instead of `method` ''' |
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
# coding: utf-8 | |
from objc_util import * | |
import time | |
def authenticate(reason = ' '): | |
ObjCClass('NSBundle').bundleWithPath_('/System/Library/Frameworks/LocalAuthentication.framework').load() | |
context = ObjCClass('LAContext').alloc().init() | |
global result | |
result = None |