Skip to content

Instantly share code, notes, and snippets.

@angelovAlex
angelovAlex / aliens
Last active July 28, 2017 15:42
Linux Helpful Aliases
alias myip='dig -4 @ns1-1.akamaitech.net -t a whoami.akamai.net +short'
@angelovAlex
angelovAlex / gist:1f4359f4e9a0a161fa5259f4fe69fb82
Created April 19, 2016 17:41 — forked from lyonanderson/gist:5b8cc605be1c56b88978
Cycript to listen to XPC Messages being created
@import com.saurik.substrate.MS
var log = []
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, args); }
_CFXPCCreateXPCMessageWithCFObject = dlsym(RTLD_DEFAULT, "_CFXPCCreateXPCMessageWithCFObject");
_CFXPCCreateXPCMessageWithCFObject = @encode(void *(NSDictionary * object))(_CFXPCCreateXPCMessageWithCFObject)
_CFXPCCreateXPCMessageWithCFObject_Old ={}
MS.hookFunction(_CFXPCCreateXPCMessageWithCFObject, function(object) {var result = (*_CFXPCCreateXPCMessageWithCFObject_Old )(object); log.push(object); NSLog("Object>>: " + object); return result}, _CFXPCCreateXPCMessageWithCFObject_Old)