This file contains hidden or 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
| #!/usr/bin/env iojs --harmony_arrow_functions | |
| 'use strict'; | |
| const co = require('co'); | |
| const frida = require('frida'); | |
| co(function *() { | |
| const session = yield frida.attach('cat'); | |
| const script = yield session.createScript('(' + | |
| agent.toString() + ').call(this);'); |
This file contains hidden or 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
| BKAccelerometer_server | |
| BKAccelerometer_server_routine | |
| SBAcquireApplicationTerminationAssertion | |
| SBActivateAssistantWithContext | |
| SBAddAlertItemsSuppressionAssertion | |
| SBAddBiometricUnlockSuppressionAssertion | |
| SBAddDownloadingIconForDisplayIdentifier | |
| SBAddDownloadingIconForDisplayIdentifierWithSoftwareType | |
| SBAddThermalWarningSuppressionAssertion | |
| SBAddWallpaperAnimationSuspensionAssertion |
This file contains hidden or 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
| 'use strict'; | |
| Module.enumerateExports('libssl.so', { | |
| onMatch(e) { | |
| if (e.type === 'function') | |
| Interceptor.attach(e.address, createHook(e.name, e.address)); | |
| }, | |
| onComplete() { | |
| } | |
| }); |
This file contains hidden or 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
| diff --git a/glib/Makefile.am b/glib/Makefile.am | |
| index e022c30..8a1f942 100644 | |
| --- a/glib/Makefile.am | |
| +++ b/glib/Makefile.am | |
| @@ -209,6 +209,8 @@ libglib_2_0_la_SOURCES = \ | |
| gwakeup.c \ | |
| gprintf.c \ | |
| gprintfint.h \ | |
| + frida-log.c \ | |
| + frida-log.h \ |
This file contains hidden or 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
| const NSObject = ObjC.classes.NSObject; | |
| const NSURLConnectionDataDelegate = ObjC.protocols.NSURLConnectionDataDelegate; | |
| const MyConnectionDelegateProxy = ObjC.registerClass({ | |
| name: 'MyConnectionDelegateProxy', | |
| super: NSObject, | |
| protocols: [NSURLConnectionDataDelegate], | |
| methods: { | |
| '- init': function () { | |
| console.log('- init'); | |
| const self = this.super.init(); |
This file contains hidden or 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
| const NSAutoreleasePool = ObjC.classes.NSAutoreleasePool; | |
| const pool = NSAutoreleasePool.alloc().init(); | |
| const NSObject = ObjC.classes.NSObject; | |
| const NSURLConnectionDataDelegate = ObjC.protocols.NSURLConnectionDataDelegate; | |
| const MyConnectionDelegateProxy = ObjC.registerClass({ | |
| name: 'MyConnectionDelegateProxy', | |
| parent: NSObject, | |
| protocols: [NSURLConnectionDataDelegate], | |
| overrides: { |
This file contains hidden or 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
| const NSAutoreleasePool = ObjC.classes.NSAutoreleasePool; | |
| const pool = NSAutoreleasePool.alloc().init(); | |
| const MyConnectionDelegateProxy = ObjC.registerClass({ | |
| name: 'MyConnectionDelegateProxy', | |
| protocols: [ObjC.protocols.NSURLConnectionDelegate, ObjC.protocols.NSURLConnectionDataDelegate], | |
| methods: { | |
| '- connection:didReceiveResponse:': { | |
| retType: 'void', | |
| argTypes: ['object', 'object'], | |
| implementation: function (connection, response) { |
This file contains hidden or 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
| #include <stdint.h> | |
| #include <stdio.h> | |
| #include <string.h> | |
| #include <sys/syspage.h> | |
| int | |
| main(int argc, char *argv[]) | |
| { | |
| struct asinfo_entry *entries = SYSPAGE_ENTRY(asinfo); | |
| size_t count = SYSPAGE_ENTRY_SIZE(asinfo) / sizeof(struct asinfo_entry); |
This file contains hidden or 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
| var frida = require('frida'); | |
| frida.attach('cat') | |
| .then(function (session) { | |
| console.log('attached:', session); | |
| return session.createScript( | |
| 'function onMessage(message) {' + | |
| 'send({ name: "pong", payload: message });' + | |
| 'recv(onMessage);' + | |
| '}' + |
This file contains hidden or 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
| [CCode (cheader_filename = "frida-core.h", cprefix = "Frida", lower_case_cprefix = "frida_")] | |
| namespace Frida { | |
| public static void init (); | |
| public static void shutdown (); | |
| public static void deinit (); | |
| public static unowned GLib.MainContext get_main_context (); | |
| public enum DeviceType { | |
| LOCAL, | |
| TETHER, |