Skip to content

Instantly share code, notes, and snippets.

#import <UIKit/UIKit.h>
@interface _TtC4Toss11AppDelegate
- (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<UIApplicationOpenURLOptionsKey, id> *)options;
@end
@interface _TtC9KakaoTalk17TalkSceneDelegate
- (void)scene:(UIScene *)scene openURLContexts:(NSSet<UIOpenURLContext *> *)URLContexts;
@end
@Mabdelwanis
Mabdelwanis / main.x
Created November 30, 2023 22:19 — forked from danpashin/main.x
VK for iOS SSL pinning bypass
#import <Foundation/Foundation.h>
#import <Security/Security.h>
typedef NS_ENUM(NSInteger, TSKTrustDecision) {
TSKTrustDecisionShouldAllowConnection,
TSKTrustDecisionShouldBlockConnection,
TSKTrustDecisionDomainNotPinned,
};
%hook TSKPinningValidator
@Mabdelwanis
Mabdelwanis / Tweak.x
Created November 30, 2023 22:17 — forked from level3tjg/Tweak.x
Disable app thinning
// Inject into appstored and itunesstored
#import <MobileGestalt/MobileGestalt.h>
NSString *deviceClass;
%hook XDCDevice
- (NSString *)productType {
return deviceClass;
}
@Mabdelwanis
Mabdelwanis / hosted.md
Last active November 30, 2023 22:16 — forked from MTACS/hosted.md
Hosted Preference bundle

Hosted Preference Bundles

Create a "hosted" view of a preference bundle outside of Preferences.app, and in a dedicated application.

For application

  • Create new tweak using "iphone/application_modern" template
  • In the app's delegate file add the following to the -(void)applicationDidFinishLaunching:(UIApplication *)application; method:
@Mabdelwanis
Mabdelwanis / fixYouTubeLogin.m
Created November 30, 2023 22:13 — forked from BandarHL/fixYouTubeLogin.m
Fix YouTube keychain
static NSString *accessGroupID() {
NSDictionary *query = [NSDictionary dictionaryWithObjectsAndKeys:
(__bridge NSString *)kSecClassGenericPassword, (__bridge NSString *)kSecClass,
@"bundleSeedID", kSecAttrAccount,
@"", kSecAttrService,
(id)kCFBooleanTrue, kSecReturnAttributes,
nil];
CFDictionaryRef result = nil;
OSStatus status = SecItemCopyMatching((__bridge CFDictionaryRef)query, (CFTypeRef *)&result);
if (status == errSecItemNotFound)
@Mabdelwanis
Mabdelwanis / SimpleRespring.xm
Created November 30, 2023 22:12 — forked from hetelek/SimpleRespring.xm
A tweak (for iOS 7) that allows you to respring your device by swiping the homescreen card up in the app switcher.
#import <substrate.h>
%hook SBAppSliderController
- (BOOL)sliderScroller:(id)scrollingViewController isIndexRemovable:(unsigned int)index
{
return YES;
}
- (void)sliderScroller:(id)scrollingViewController itemWantsToBeRemoved:(unsigned int)index
@Mabdelwanis
Mabdelwanis / safemode.xm
Created November 30, 2023 22:11 — forked from coord-e/safemode.xm
auto safemode
#define time 3600 //一時間
%hook SpringBoard
-(void)applicationDidFinishLaunching: (id)application {
%orig;
[[NSOperationQueue new] addOperationWithBlock:^{
[[NSRunLoop currentRunLoop] runUntilDate:[NSDate dateWithTimeIntervalSinceNow:time]];
NSString* string = @[@"Crash"][2];
}];
@Mabdelwanis
Mabdelwanis / Tweak.xm
Created November 30, 2023 22:09 — forked from Li-blog/Tweak.xm
#import <UIKit/UIKit.h>
%hook SpringBoard
- (void)applicationDidFinishLaunching: (id)application {
%orig;
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Hello World." message:nil delegate:self cancelButtonTitle:@"OK" otherButtonTitles:nil];
[alert show];
[alert release];
}
%hook SpringBoard
-(BOOL)homeScreenSupportsRotation {
return YES;
}
-(BOOL)homeScreenRotationStyleWantsUIKitRotation {
return YES;
}
@Mabdelwanis
Mabdelwanis / Tweak.x
Created November 30, 2023 22:07 — forked from Danesz/Tweak.x
AVCaptureSession Jailbreak hook
#import <UIKit/UIKit.h>
%hook SpringBoard
-(void) applicationDidFinishLaunching:(id)arg {
%orig(arg);
UIAlertView *lookWhatWorks = [[UIAlertView alloc] initWithTitle:@"PrivacyGuard Tweak"
message:@"Your privacy guard is running 😎"
delegate:self
cancelButtonTitle:@"OK"
otherButtonTitles:nil];