jailbreak

Reading Serial Port iOS

让人想犯罪 __ 提交于 2019-12-10 01:42:06
问题 I have the following code to read and write to serial ports on iOS 10.3.3 Jailbroken iPhone 6S (I used h3lix to jailbreak): Serial.h: // // Serial.h // iOUSB // // Created by Brandon on 2018-05-21. // Copyright © 2018 XIO. All rights reserved. // #if !defined(__cplusplus) //-fmodules -fcxx-modules @import Foundation; #else #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wauto-import" #import <Foundation/Foundation.h> #pragma clang diagnostic pop #endif #define BAUD_RATE 9600

How to hook NSURLSession methods with theos?

左心房为你撑大大i 提交于 2019-12-09 23:49:42
问题 I created a tweak project using rpetrich's theos and wanted to hook NSURLSession methods but the hooks don't seem to get invoked? Why? This is my Tweak.xm code: %hook NSURLSession - (NSURLSessionDataTask *)dataTaskWithRequest:(NSURLRequest *)request completionHandler:(void (^)(NSData *data, NSURLResponse *response, NSError *error))completionHandler { NSLog(@"testhook dataTaskWithRequest:completionHandler:"); return %orig(request, completionHandler); } - (NSURLSessionDataTask *

How to directly make a phone call with private API CTCallDial()?

こ雲淡風輕ζ 提交于 2019-12-09 23:20:32
问题 in Iphone,How to directly make a phone call with private API CTCallDial()? Mainly because I don't know the specific parameters of CTCallDial. 回答1: 1) Link against CoreTelephony.framework 2) Define like extern "C" id CTCallDial(NSString * number); and use like: CTCallDial(@"0123456789"); (returns the CTCallRef created, can be safely casted to id (CTCall *)) 来源: https://stackoverflow.com/questions/10207042/how-to-directly-make-a-phone-call-with-private-api-ctcalldial

How to detect “LocallAPStore" - new iap cracker

柔情痞子 提交于 2019-12-09 07:33:28
问题 I detect IAP Cracker like this: if ([[NSFileManager defaultManager] fileExistsAtPath:@"/Library/MobileSubstrate/DynamicLibraries/iap.dylib"]){ NSLog(@"IAP Cracker detected"); } How can I detect LocallAPStore? 回答1: After extracting the Debian package of this hack, you can see that it has almost exactly the same structure as IAP cracker. So, you can write: if ([[NSFileManager defaultManager] fileExistsAtPath:@"/Library/MobileSubstrate/DynamicLibraries/LocalIAPStore.dylib"]) { NSLog(@"Local IAP

delete message on sqlite. jailbreak iphone

本小妞迷上赌 提交于 2019-12-09 06:55:23
In my application, i want auto delete SMS messages. for example, when i click a button to trigger a method to execute SQL in sqlite. the SQL is like this: drop trigger if exists delete_message; delete from message; delete from madrid_chat; CREATE TRIGGER if not exists delete_message AFTER DELETE ON message WHEN NOT read(old.flags) BEGIN UPDATE msg_group SET unread_count = (SELECT unread_count FROM msg_group WHERE ROWID = old.group_id) - 1 WHERE ROWID = old.group_id; END it can execute successfully(the file is in /private/var/mobile/Library/SMS/sms.db ). but in the SMS message application, the

App with jailbreak detection rejected by Apple

荒凉一梦 提交于 2019-12-09 05:56:51
问题 the App we are working on was rejected because the Device in the Review Process was detected as jailbroken ^^ To detect a jailbroken Device, several Tests were performed: NSString* bundlePath = [[NSBundle mainBundle] bundlePath]; // scan for itunes metadata BOOL isDirectory = NO; NSString* directoryPath = [bundlePath stringByAppendingPathComponent:@"SC_Info/"]; BOOL directoryIsAvailable = [[NSFileManager defaultManager] fileExistsAtPath:directoryPath isDirectory:&isDirectory]; BOOL

Send sms using core telophony?

别说谁变了你拦得住时间么 提交于 2019-12-09 01:26:24
问题 I want to develop an application like biteSMS (for jailbroken iPhone). I have tried to compile an open source application iPhone-Delivery-Report but unable to compile it. Does some one knows anything related to core-telephony sms sending for jailbroken iPhone? A sample code would be very helpful. UPDATE Thanks to joshua Son for the great help. Here is the screenshot of the warnings. 回答1: try this code; [[CTMessageCenter sharedMessageCenter] sendSMSWithText:@"Your Message here" serviceCenter

Taking Screenshots from iOS app - emulating Display recorder (query on the internals)

纵然是瞬间 提交于 2019-12-08 22:22:31
问题 I need to create an iOS app which can take screenshots of other apps, videos etc. as a part of an experiment. I am open to using Private API's since I won't be publishing the app to the app store. I could successfully use the method GetUIScreenImage() to take snapshots of the current screen (app screen). However, due to sandbox restrictions I am not able to take screenshots while in the background. I get the error - "Cannot call CreateUIScreenImage() while the app is in background". I

SMS Interception in Jailbreak iOS 7

故事扮演 提交于 2019-12-08 13:41:37
问题 I have followed this answer Blocking incomming sms in ios 7. The problem is it blocks every message and its notification. Secondly it continuously call _processReceivedMessage_hooked method when I send message other then this number +923139303006. I'm using OpenDev with Xcode 5, iOS 7.x. #include <logos/logos.h> #import <substrate.h> #import <UIKit/UIKit.h> #import <Foundation/Foundation.h> #import <libkern/OSAtomic.h> #import "CoreTelephony.h" id(*_processReceivedMessage_orig)(id, SEL,

iOS PreferenceBundle

筅森魡賤 提交于 2019-12-08 12:02:33
问题 i'm developing a iPhone tweak, with the Preferences i created a PreferenceBundle and in the bundle i need to call a SpringBoard method, but the results is always nothing. Is there a way i can call a SBApplication method? i am using objc_getClass to get the class SBApplication *app =[[objc_getClass("SBApplicationController") sharedInstance] applicationWithDisplayIdentifier:identifier]; when i use that to call the method the result is null. Is it possible, or some hack i can do. i need to get