cy# @import com.saurik.substrate.MS cy# var oldf = {} cy# var log = []cy# MS.hookFunction(fopen, function(path, mode) { var file = (*oldf)(path, mode); log.push([path.toString(), mode.toString(), file]); return file; }, oldf) @import com.saurik.substrate.MS var oldm = {}; var log = [] MS.hookMessage(ClassName, @selector(MethodOneParameter:), function(arg0) { var d = [NSDate date] log.push([d.toString()]); return oldm->call(this, arg0); }, oldm)