- gistでmarkdown書いたらbookmarkletでプレゼンになるよ。
- ↓これをBookmarkに登録してこのページで実行してみよー!
| #!/bin/bash | |
| export THEOS=/opt/theos | |
| # clone theos.git | |
| cd /opt | |
| git clone git://github.com/DHowett/theos.git | |
| # clone iphoneheaders.git | |
| cd $THEOS | |
| mv include include.bak |
| #!/bin/bash | |
| export THEOS=/opt/theos | |
| if ! [ -d $THEOS ]; then | |
| mkdir -p $THEOS | |
| fi | |
| # clone theos.git | |
| cd /opt | |
| git clone git://github.com/DHowett/theos.git |
| #import <UIKit/UIKit.h> | |
| static BOOL isActivatingFromLongPress; | |
| %hook BrowserToolbar | |
| - (void)_installGestureRecognizers | |
| { | |
| %orig; | |
| id bookmarkButton = MSHookIvar<id>(self, "_bookmarksItem"); | |
| UILongPressGestureRecognizer *longGesture = [[UILongPressGestureRecognizer alloc] initWithTarget:self action:@selector(longPressBookmarkButton:)]; |
| #import <SystemConfiguration/CaptiveNetwork.h> | |
| NSString *currentSSID = @""; | |
| CFArrayRef myArray = CNCopySupportedInterfaces(); | |
| if (myArray != nil){ | |
| NSDictionary* myDict = (NSDictionary *) CNCopyCurrentNetworkInfo(CFArrayGetValueAtIndex(myArray, 0)); | |
| if (myDict!=nil){ | |
| currentSSID=[myDict valueForKey:@"SSID"]; | |
| } else { | |
| currentSSID=@"<<NONE>>"; |
| static BOOL tweakEnBOOL; | |
| #define SETTINGSFILENEW "com.imokhles.Prefs" | |
| #define PREFERENCES_CHANGED_NOTIFICATION "com.imokhles.Prefs.preferences-changed" | |
| // non ARC | |
| static void iMoLoadPreferences() { | |
| CFPreferencesAppSynchronize(CFSTR(SETTINGSFILENEW)); | |
| tweakEnBOOL = !CFPreferencesCopyAppValue(CFSTR("Enabled"), CFSTR(SETTINGSFILENEW)) ? YES : [(id)CFBridgingRelease(CFPreferencesCopyAppValue(CFSTR("Enabled"), CFSTR(SETTINGSFILENEW))) boolValue]; | |
| } |
| /* | |
| * sshtool | |
| * | |
| * Copyright (c) 2015 xerub | |
| * Copyright (c) 1998 Pavel Machek | |
| * | |
| * This program is free software; you can redistribute it and/or modify | |
| * it under the terms of the GNU General Public License as published by | |
| * the Free Software Foundation; either version 2 of the License, or | |
| * (at your option) any later version. |
| include $(THEOS)/makefiles/common.mk | |
| export ARCHS = arm64 | |
| TOOL_NAME = patch_cfversion_checks | |
| patch_cfversion_checks_FILES = $(wildcard *.c) $(wildcard *.m) | |
| CFLAGS += -Wno-macro-redefined | |
| include $(THEOS_MAKE_PATH)/tool.mk |
| struct SBIconImageInfo { | |
| struct CGSize size; | |
| double scale; | |
| double continuousCornerRadius; | |
| }; | |
| - (UIImage *)iconImageForIdentifier:(NSString *)identifier { | |
| SBIconController *iconController = [NSClassFromString(@"SBIconController") sharedInstance]; | |
| SBIcon *icon = [iconController.model expectedIconForDisplayIdentifier:identifier]; |
| /* | |
| Written By Pan ZhenPeng(@peterpan980927) of Alibaba Security Pandora Lab | |
| use it on macOS: cc poc.c -o poc while True; do ./poc ; done | |
| */ | |
| #include <errno.h> | |
| #include <signal.h> | |
| #include <fcntl.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> |