Skip to content

Commit f14b963

Browse files
committed
combine Cycript & Reveal
1 parent a5dc274 commit f14b963

File tree

22 files changed

+740
-0
lines changed

22 files changed

+740
-0
lines changed

Cycript-Reveal/Cycript-Reveal.xcodeproj/project.pbxproj

Lines changed: 391 additions & 0 deletions
Large diffs are not rendered by default.

Cycript-Reveal/Cycript-Reveal.xcodeproj/project.xcworkspace/contents.xcworkspacedata

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "0800"
4+
version = "1.3">
5+
<BuildAction
6+
parallelizeBuildables = "YES"
7+
buildImplicitDependencies = "YES">
8+
<BuildActionEntries>
9+
<BuildActionEntry
10+
buildForTesting = "YES"
11+
buildForRunning = "YES"
12+
buildForProfiling = "YES"
13+
buildForArchiving = "YES"
14+
buildForAnalyzing = "YES">
15+
<BuildableReference
16+
BuildableIdentifier = "primary"
17+
BlueprintIdentifier = "BBDBFFF41D2EF8B60096EB26"
18+
BuildableName = "Cycript-Reveal.dylib"
19+
BlueprintName = "Cycript-Reveal"
20+
ReferencedContainer = "container:Cycript-Reveal.xcodeproj">
21+
</BuildableReference>
22+
</BuildActionEntry>
23+
</BuildActionEntries>
24+
</BuildAction>
25+
<TestAction
26+
buildConfiguration = "Debug"
27+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
28+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29+
shouldUseLaunchSchemeArgsEnv = "YES">
30+
<Testables>
31+
</Testables>
32+
<AdditionalOptions>
33+
</AdditionalOptions>
34+
</TestAction>
35+
<LaunchAction
36+
buildConfiguration = "Debug"
37+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
38+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
39+
launchStyle = "0"
40+
useCustomWorkingDirectory = "NO"
41+
ignoresPersistentStateOnLaunch = "NO"
42+
debugDocumentVersioning = "YES"
43+
debugServiceExtension = "internal"
44+
allowLocationSimulation = "YES">
45+
<MacroExpansion>
46+
<BuildableReference
47+
BuildableIdentifier = "primary"
48+
BlueprintIdentifier = "BBDBFFF41D2EF8B60096EB26"
49+
BuildableName = "Cycript-Reveal.dylib"
50+
BlueprintName = "Cycript-Reveal"
51+
ReferencedContainer = "container:Cycript-Reveal.xcodeproj">
52+
</BuildableReference>
53+
</MacroExpansion>
54+
<AdditionalOptions>
55+
</AdditionalOptions>
56+
</LaunchAction>
57+
<ProfileAction
58+
buildConfiguration = "Release"
59+
shouldUseLaunchSchemeArgsEnv = "YES"
60+
savedToolIdentifier = ""
61+
useCustomWorkingDirectory = "NO"
62+
debugDocumentVersioning = "YES">
63+
<MacroExpansion>
64+
<BuildableReference
65+
BuildableIdentifier = "primary"
66+
BlueprintIdentifier = "BBDBFFF41D2EF8B60096EB26"
67+
BuildableName = "Cycript-Reveal.dylib"
68+
BlueprintName = "Cycript-Reveal"
69+
ReferencedContainer = "container:Cycript-Reveal.xcodeproj">
70+
</BuildableReference>
71+
</MacroExpansion>
72+
</ProfileAction>
73+
<AnalyzeAction
74+
buildConfiguration = "Debug">
75+
</AnalyzeAction>
76+
<ArchiveAction
77+
buildConfiguration = "Release"
78+
revealArchiveInOrganizer = "YES">
79+
</ArchiveAction>
80+
</Scheme>
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>SchemeUserState</key>
6+
<dict>
7+
<key>Cycript-Reveal.xcscheme</key>
8+
<dict>
9+
<key>orderHint</key>
10+
<integer>0</integer>
11+
</dict>
12+
</dict>
13+
<key>SuppressBuildableAutocreation</key>
14+
<dict>
15+
<key>BBDBFFF41D2EF8B60096EB26</key>
16+
<dict>
17+
<key>primary</key>
18+
<true/>
19+
</dict>
20+
</dict>
21+
</dict>
22+
</plist>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
//
2+
// Prefix header for all source files of the 'Cycript-Reveal' target in the 'Cycript-Reveal' project
3+
//
4+
5+
#ifdef __OBJC__
6+
#import <Foundation/Foundation.h>
7+
#endif
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
//
2+
// Cycript_Reveal.mm
3+
// Cycript-Reveal
4+
//
5+
// Created by Eular on 7/8/16.
6+
// Copyright (c) 2016 __MyCompanyName__. All rights reserved.
7+
//
8+
9+
#import <Cycript/Cycript.h>
10+
#import <CaptainHook/CaptainHook.h>
11+
12+
#define CYCRIPT_PORT 8888
13+
14+
CHDeclareClass(UIApplication);
15+
CHDeclareClass(MicroMessengerAppDelegate);
16+
17+
CHOptimizedMethod2(self, void, MicroMessengerAppDelegate, application, UIApplication *, application, didFinishLaunchingWithOptions, NSDictionary *, options)
18+
{
19+
CHSuper2(MicroMessengerAppDelegate, application, application, didFinishLaunchingWithOptions, options);
20+
21+
NSLog(@"## Start Cycript ##");
22+
CYListenServer(CYCRIPT_PORT);
23+
}
24+
25+
26+
CHConstructor {
27+
@autoreleasepool {
28+
NSLog(@"## Start Reveal ##");
29+
30+
CHLoadLateClass(MicroMessengerAppDelegate);
31+
CHHook2(MicroMessengerAppDelegate, application, didFinishLaunchingWithOptions);
32+
}
33+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
Package: com.eular.Cycript-Reveal
2+
Name: Cycript-Reveal
3+
Version: 0.1-1
4+
Description:
5+
Section: Tweaks
6+
Depends: firmware (>= 5.0), mobilesubstrate
7+
Conflicts:
8+
Replaces:
9+
Priority: optional
10+
Architecture: iphoneos-arm
11+
Author: Eular
12+
dev:
13+
Homepage:
14+
Depiction:
15+
Maintainer:
16+
Icon:
17+
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
2+
The control file in the same directory as this file is the Debian control file that is needed
3+
to build the project's Debian package that's used by APT repositories like Cydia.
4+
5+
For more on...
6+
Debian packages, see http://www.debian.org/doc/manuals/debian-faq/ch-pkg_basics.en.html.
7+
Debian control files, see http://www.debian.org/doc/debian-policy/ch-controlfields.html.
8+
Cydia packages, see http://www.saurik.com/id/7.
9+
10+
Note: This file (control.txt) was created only to provide an explaination about the Debian control file. This file can now be deleted.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>Filter</key>
6+
<dict>
7+
<key>Classes</key>
8+
<array/>
9+
<key>CoreFoundationVersion</key>
10+
<array/>
11+
<key>Executables</key>
12+
<array/>
13+
<key>Bundles</key>
14+
<array/>
15+
</dict>
16+
</dict>
17+
</plist>

0 commit comments

Comments
 (0)