Skip to content
This repository has been archived by the owner on Nov 22, 2022. It is now read-only.

Commit

Permalink
Fix Building on post-iOS9 SDKs
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhang committed May 20, 2019
1 parent 9b5dbc1 commit 6e26057
Show file tree
Hide file tree
Showing 29 changed files with 13,368 additions and 1,980 deletions.
4 changes: 2 additions & 2 deletions BuildConfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
ManualList=["GlobalInit","getBoolFromPreferences","RandomString"]
ExtraFramework=["UIKit","CoreGraphics","CoreFoundation","QuartzCore","CFNetwork","JavaScriptCore"]
ExtraLibrary=[]
LDFLAGS=["-lz","-L.","-v","-force_load ./ExtraFWs/libcapstone.a","-force_load ./ExtraFWs/libLiberation.a","-F./ExtraFWs/","-Wno-unused-function"]
ExtraCFlags=["-I"+os.getcwd()+"/Hooks/"]
LDFLAGS=["-lz","-L.","-v","-force_load ./ExtraFWs/libcapstone.a","-F./ExtraFWs/","-Wno-unused-function"]
ExtraCFlags=["-I"+os.getcwd()+"/Hooks/","-I"+os.getcwd()+"/capstone/include/"]
ExtraOBJFiles=[]
ExtraCCFlags=["-std=c++11"]
CreateExtraSegs={"FLEX":"./ExtraFWs/FLEX.framework/FLEX","Reveal2":"./Reveal2Server","Frida":"./ExtraFWs/frida-gadget.dylib"}
4 changes: 2 additions & 2 deletions Hooks/API/libC.xm
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,6 @@ char* replaced_getenv(char *command){
extern void init_libC_hook(){
WTHookFunction((void *)random, (void *)replaced_random, (void **) &original_random);
WTHookFunction((void *)rand, (void *)replaced_rand, (void **) &original_rand);
WTHookFunction((void *)system, (void *)replaced_system, (void **) &original_system);
WTHookFunction((void *)system, (void *)replaced_getenv, (void **) &original_getenv);
WTHookFunction((void*)WTFindSymbol(NULL, "_system"), (void *)replaced_system, (void **) &original_system);
WTHookFunction((void *)getenv, (void *)replaced_getenv, (void **) &original_getenv);
}
26 changes: 12 additions & 14 deletions Hooks/Global.h
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
#import "./Utils/CallStackInspector.h"
#import "./Utils/CallTracer.h"
#import "./Utils/PlistObjectConverter.h"
#import "./Utils/RuntimeUtils.h"
#import "./Utils/SQLiteStorage.h"
#import "./Utils/Utils.h"
#import "./Utils/DelegateProxies.h"
#import "./Utils/NSURLConnectionDelegateProx.h"
#import "Utils/CallStackInspector.h"
#import "Utils/CallTracer.h"
#import "Utils/PlistObjectConverter.h"
#import "Utils/RuntimeUtils.h"
#import "Utils/SQLiteStorage.h"
#import "Utils/Utils.h"
#import "Utils/DelegateProxies.h"
#import "Utils/NSURLConnectionDelegateProx.h"

#import <substrate.h>

#import "./Misc/WTSubstrate.h"
#import "Misc/WTSubstrate.h"
#import <objc/runtime.h>
#import <mach-o/getsect.h>
#import <mach-o/dyld.h>
#import <dlfcn.h>
#import "./Misc/fishhook.h"
#import "./Obfuscation.h"
#import "./capstone/capstone.h"
#import "Misc/fishhook.h"
#import "Obfuscation.h"
#import "capstone/capstone.h"

#define objectTypeNotSupported @"objectTypeNotSupported"
#define traceStorage [SQLiteStorage sharedManager]
Expand Down Expand Up @@ -60,5 +60,3 @@
#define RMASLRCenter @"com.naville.wtfjh.rmaslr"

#define CyPort 2588


197 changes: 0 additions & 197 deletions Hooks/Liberation.h

This file was deleted.

Loading

0 comments on commit 6e26057

Please sign in to comment.