summaryrefslogtreecommitdiff
path: root/data/uikittools
diff options
context:
space:
mode:
Diffstat (limited to 'data/uikittools')
l---------data/uikittools/_metadata/coreutils-bin.dep1
-rw-r--r--data/uikittools/_metadata/depiction1
-rw-r--r--data/uikittools/_metadata/description1
-rw-r--r--data/uikittools/_metadata/homepage1
l---------data/uikittools/_metadata/license1
l---------data/uikittools/_metadata/maintainer1
-rw-r--r--data/uikittools/_metadata/name1
-rw-r--r--data/uikittools/_metadata/priority1
-rw-r--r--data/uikittools/_metadata/role1
-rw-r--r--data/uikittools/_metadata/section1
-rw-r--r--data/uikittools/_metadata/tags1
-rw-r--r--data/uikittools/_metadata/version1
-rw-r--r--data/uikittools/_metadata/zlib1
-rw-r--r--data/uikittools/ents.diff42
-rw-r--r--data/uikittools/ldrestart-jbd.diff26
-rw-r--r--data/uikittools/make.sh3
-rw-r--r--data/uikittools/platformize.diff77
-rw-r--r--data/uikittools/telesphoreo.diff67
-rw-r--r--data/uikittools/uikittools-1.1.12.tgzbin0 -> 215040 bytes
19 files changed, 228 insertions, 0 deletions
diff --git a/data/uikittools/_metadata/coreutils-bin.dep b/data/uikittools/_metadata/coreutils-bin.dep
new file mode 120000
index 000000000..c8195236d
--- /dev/null
+++ b/data/uikittools/_metadata/coreutils-bin.dep
@@ -0,0 +1 @@
+../../coreutils-bin \ No newline at end of file
diff --git a/data/uikittools/_metadata/depiction b/data/uikittools/_metadata/depiction
new file mode 100644
index 000000000..d174e9a8e
--- /dev/null
+++ b/data/uikittools/_metadata/depiction
@@ -0,0 +1 @@
+http://cydia.saurik.com/info/uikittools/
diff --git a/data/uikittools/_metadata/description b/data/uikittools/_metadata/description
new file mode 100644
index 000000000..e9a5ce307
--- /dev/null
+++ b/data/uikittools/_metadata/description
@@ -0,0 +1 @@
+UIKit/GraphicsServices command line access
diff --git a/data/uikittools/_metadata/homepage b/data/uikittools/_metadata/homepage
new file mode 100644
index 000000000..57f36586c
--- /dev/null
+++ b/data/uikittools/_metadata/homepage
@@ -0,0 +1 @@
+http://tukaani.org/lzma/
diff --git a/data/uikittools/_metadata/license b/data/uikittools/_metadata/license
new file mode 120000
index 000000000..af4224931
--- /dev/null
+++ b/data/uikittools/_metadata/license
@@ -0,0 +1 @@
+../../../licenses/gpl-3 \ No newline at end of file
diff --git a/data/uikittools/_metadata/maintainer b/data/uikittools/_metadata/maintainer
new file mode 120000
index 000000000..573d7ebef
--- /dev/null
+++ b/data/uikittools/_metadata/maintainer
@@ -0,0 +1 @@
+../../../people/sbingner \ No newline at end of file
diff --git a/data/uikittools/_metadata/name b/data/uikittools/_metadata/name
new file mode 100644
index 000000000..f3aed2b0c
--- /dev/null
+++ b/data/uikittools/_metadata/name
@@ -0,0 +1 @@
+UIKit Tools
diff --git a/data/uikittools/_metadata/priority b/data/uikittools/_metadata/priority
new file mode 100644
index 000000000..134d9bc32
--- /dev/null
+++ b/data/uikittools/_metadata/priority
@@ -0,0 +1 @@
+optional
diff --git a/data/uikittools/_metadata/role b/data/uikittools/_metadata/role
new file mode 100644
index 000000000..52b4d7301
--- /dev/null
+++ b/data/uikittools/_metadata/role
@@ -0,0 +1 @@
+hacker
diff --git a/data/uikittools/_metadata/section b/data/uikittools/_metadata/section
new file mode 100644
index 000000000..19814b684
--- /dev/null
+++ b/data/uikittools/_metadata/section
@@ -0,0 +1 @@
+Utilities
diff --git a/data/uikittools/_metadata/tags b/data/uikittools/_metadata/tags
new file mode 100644
index 000000000..ad5d50831
--- /dev/null
+++ b/data/uikittools/_metadata/tags
@@ -0,0 +1 @@
+purpose::console
diff --git a/data/uikittools/_metadata/version b/data/uikittools/_metadata/version
new file mode 100644
index 000000000..ccad953ac
--- /dev/null
+++ b/data/uikittools/_metadata/version
@@ -0,0 +1 @@
+1.1.12
diff --git a/data/uikittools/_metadata/zlib b/data/uikittools/_metadata/zlib
new file mode 100644
index 000000000..7a4571271
--- /dev/null
+++ b/data/uikittools/_metadata/zlib
@@ -0,0 +1 @@
+bzip2
diff --git a/data/uikittools/ents.diff b/data/uikittools/ents.diff
new file mode 100644
index 000000000..ccc8fc4df
--- /dev/null
+++ b/data/uikittools/ents.diff
@@ -0,0 +1,42 @@
+diff -ur uikittools/extrainst_.xml uikittools+telesphoreo/extrainst_.xml
+--- uikittools/extrainst_.xml 2018-07-31 14:40:26.000000000 -1000
++++ uikittools+telesphoreo/extrainst_.xml 2018-07-31 15:26:49.000000000 -1000
+@@ -6,5 +6,9 @@
+ <array>
+ <string>RebuildMaps</string>
+ </array>
++ <key>platform-application</key>
++ <true/>
++ <key>com.apple.private.skip-library-validation</key>
++ <true/>
+ </dict>
+ </plist>
+Only in uikittools+telesphoreo/: makefile.orig
+diff -ur uikittools/uicache.xml uikittools+telesphoreo/uicache.xml
+--- uikittools/uicache.xml 2018-07-31 14:40:26.000000000 -1000
++++ uikittools+telesphoreo/uicache.xml 2018-07-31 15:26:56.000000000 -1000
+@@ -17,5 +17,11 @@
+
+ <key>com.apple.vpn.installer_events</key>
+ <true/>
++
++ <key>platform-application</key>
++ <true/>
++
++ <key>com.apple.private.skip-library-validation</key>
++ <true/>
+ </dict>
+ </plist>
+diff -ur uikittools/uiopen.xml uikittools+telesphoreo/uiopen.xml
+--- uikittools/uiopen.xml 2018-07-31 14:40:26.000000000 -1000
++++ uikittools+telesphoreo/uiopen.xml 2018-07-31 15:27:00.000000000 -1000
+@@ -3,5 +3,9 @@
+ <dict>
+ <key>com.apple.springboard.opensensitiveurl</key>
+ <true/>
++ <key>platform-application</key>
++ <true/>
++ <key>com.apple.private.skip-library-validation</key>
++ <true/>
+ </dict>
+ </plist>
diff --git a/data/uikittools/ldrestart-jbd.diff b/data/uikittools/ldrestart-jbd.diff
new file mode 100644
index 000000000..245d13eef
--- /dev/null
+++ b/data/uikittools/ldrestart-jbd.diff
@@ -0,0 +1,26 @@
+--- uikittools+iPhone/ldrestart.cpp 2018-08-03 12:16:31.000000000 -1000
++++ ldrestart.cpp 2018-08-03 11:54:52.000000000 -1000
+@@ -58,15 +58,18 @@
+ auto integer(launch_data_dict_lookup(value, LAUNCH_JOBKEY_PID));
+ if (integer == NULL || launch_data_get_type(integer) != LAUNCH_DATA_INTEGER)
+ return;
+-
+- auto pid(launch_data_get_integer(integer));
+- if (kill(pid, 0) == -1)
+- return;
+-
++
+ auto string(launch_data_dict_lookup(value, LAUNCH_JOBKEY_LABEL));
+ if (string == NULL || launch_data_get_type(string) != LAUNCH_DATA_STRING)
+ return;
+ auto label(launch_data_get_string(string));
++
++ if (strcmp(label, "jailbreakd") == 0 || strcmp(label, "com.apple.MobileFileIntegrity") == 0)
++ return;
++
++ auto pid(launch_data_get_integer(integer));
++ if (kill(pid, 0) == -1)
++ return;
+
+ auto stop(launch_data_alloc(LAUNCH_DATA_DICTIONARY));
+ launch_data_dict_insert(stop, string, LAUNCH_KEY_STOPJOB);
diff --git a/data/uikittools/make.sh b/data/uikittools/make.sh
new file mode 100644
index 000000000..8fd692df4
--- /dev/null
+++ b/data/uikittools/make.sh
@@ -0,0 +1,3 @@
+pkg:setup
+make
+pkg:install
diff --git a/data/uikittools/platformize.diff b/data/uikittools/platformize.diff
new file mode 100644
index 000000000..3365511ea
--- /dev/null
+++ b/data/uikittools/platformize.diff
@@ -0,0 +1,77 @@
+diff -ur uikittools/ldrestart.cpp uikittools+iPhone/ldrestart.cpp
+--- uikittools/ldrestart.cpp 2018-07-31 14:40:26.000000000 -1000
++++ uikittools+iPhone/ldrestart.cpp 2018-08-03 12:16:31.000000000 -1000
+@@ -30,6 +30,26 @@
+ #include <launch.h>
+
+ #include <sys/stat.h>
++/* Set platform binary flag */
++#define FLAG_PLATFORMIZE (1 << 1)
++#include <dlfcn.h>
++
++void platformizeme() {
++ void* handle = dlopen("/usr/lib/libjailbreak.dylib", RTLD_LAZY);
++ if (!handle) return;
++
++ // Reset errors
++ dlerror();
++ typedef void (*fix_entitle_prt_t)(pid_t pid, uint32_t what);
++ fix_entitle_prt_t ptr = (fix_entitle_prt_t)dlsym(handle, "jb_oneshot_entitle_now");
++
++ const char *dlsym_error = dlerror();
++ if (dlsym_error) {
++ return;
++ }
++
++ ptr(getpid(), FLAG_PLATFORMIZE);
++}
+
+ void process(launch_data_t value, const char *name, void *baton) {
+ if (launch_data_get_type(value) != LAUNCH_DATA_DICTIONARY)
+@@ -65,6 +85,7 @@
+ }
+
+ int main(int argc, char *argv[]) {
++ platformizeme();
+ auto request(launch_data_new_string(LAUNCH_KEY_GETJOBS));
+ auto response(launch_msg(request));
+ launch_data_free(request);
+diff -ur uikittools/sbreload.c uikittools+iPhone/sbreload.c
+--- uikittools/sbreload.c 2018-07-31 14:40:26.000000000 -1000
++++ uikittools+iPhone/sbreload.c 2018-08-03 12:16:13.000000000 -1000
+@@ -45,6 +45,27 @@
+
+ #include <CoreFoundation/CoreFoundation.h>
+
++/* Set platform binary flag */
++#define FLAG_PLATFORMIZE (1 << 1)
++#include <dlfcn.h>
++
++void platformizeme() {
++ void* handle = dlopen("/usr/lib/libjailbreak.dylib", RTLD_LAZY);
++ if (!handle) return;
++
++ // Reset errors
++ dlerror();
++ typedef void (*fix_entitle_prt_t)(pid_t pid, uint32_t what);
++ fix_entitle_prt_t ptr = (fix_entitle_prt_t)dlsym(handle, "jb_oneshot_entitle_now");
++
++ const char *dlsym_error = dlerror();
++ if (dlsym_error) {
++ return;
++ }
++
++ ptr(getpid(), FLAG_PLATFORMIZE);
++}
++
+ launch_data_t
+ CF2launch_data(CFTypeRef cfr);
+
+@@ -163,6 +184,7 @@
+ #define SpringBoard_plist "/System/Library/LaunchDaemons/com.apple.SpringBoard.plist"
+
+ int main(int argc, const char *argv[]) {
++ platformizeme();
+ _assert(argc == 1, "usage: sbreload");
+
+ CFDictionaryRef plist = CreateMyPropertyListFromFile(SpringBoard_plist);
diff --git a/data/uikittools/telesphoreo.diff b/data/uikittools/telesphoreo.diff
new file mode 100644
index 000000000..965ebe42b
--- /dev/null
+++ b/data/uikittools/telesphoreo.diff
@@ -0,0 +1,67 @@
+diff -ur uikittools/makefile uikittools+telesphoreo/makefile
+--- uikittools/makefile 2018-07-31 14:40:26.000000000 -1000
++++ uikittools+telesphoreo/makefile 2018-07-31 15:23:32.000000000 -1000
+@@ -1,4 +1,6 @@
+ uikittools = uiduid uicache uiopen gssc sbdidlaunch sbreload cfversion iomfsetgamma ldrestart
++CC = $(PKG_TARG)-gcc
++CPP = $(PKG_TARG)-g++
+
+ all: $(uikittools)
+
+@@ -9,11 +11,9 @@
+
+ private := -F/System/Library/PrivateFrameworks
+
+-flags := -Os -Werror
++flags := -Os -Werror -Wno-deprecated-declarations
+ flags += -framework CoreFoundation
+ flags += -framework Foundation
+-flags += -miphoneos-version-min=2.0
+-flags += -arch armv6
+
+ ldrestart := -std=c++11
+ gssc := -lobjc
+@@ -28,27 +28,23 @@
+ extrainst_: csstore.cpp
+
+ %: %.mm
+- cycc -- -o $@ $^ $(flags) $($@)
+- ldid -S$(wildcard $@.xml) $@
++ $(CPP) -o $@ $^ $(flags) $($@)
++ @if [ ! -z "$(wildcard $@.xml)" ]; then \
++ ldid -S$(wildcard $@.xml) $@; \
++ fi
+
+ %: %.cpp
+- cycc -- -o $@ $^ $(flags) $($@)
+- ldid -S$(wildcard $@.xml) $@
++ $(CPP) -o $@ $^ $(flags) $($@)
++ @if [ ! -z "$(wildcard $@.xml)" ]; then \
++ ldid -S$(wildcard $@.xml) $@; \
++ fi
+
+ %: %.c
+- cycc -- -o $@ -x c $^ $(flags) $($@)
+- ldid -S$(wildcard $@.xml) $@
+-
+-package: all extrainst_
+- sudo rm -rf _
+- mkdir -p _/usr/bin
+- cp -a $(filter-out %.dylib,$(uikittools)) _/usr/bin
+- mkdir -p _/DEBIAN
+- ./control.sh _ >_/DEBIAN/control
+- cp -a extrainst_ _/DEBIAN/
+- mkdir -p debs
+- ln -sf debs/uikittools_$$(./version.sh)_iphoneos-arm.deb uikittools.deb
+- sudo chown -R 0 _
+- sudo chgrp -R 0 _
+- dpkg-deb -b _ uikittools.deb
+- readlink uikittools.deb
++ $(CC) -o $@ -x c $^ $(flags) $($@)
++ @if [ ! -z "$(wildcard $@.xml)" ]; then \
++ ldid -S$(wildcard $@.xml) $@; \
++ fi
++
++install: all
++ mkdir -p $(DESTDIR)/usr/bin
++ cp -a $(filter-out %.dylib,$(uikittools)) $(DESTDIR)/usr/bin
diff --git a/data/uikittools/uikittools-1.1.12.tgz b/data/uikittools/uikittools-1.1.12.tgz
new file mode 100644
index 000000000..543143eb4
--- /dev/null
+++ b/data/uikittools/uikittools-1.1.12.tgz
Binary files differ