forked from XLsn0w/Cydiapps
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
XLsn0w
committed
Aug 29, 2019
1 parent
a96423b
commit 56889b2
Showing
43 changed files
with
1,704 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
javascript:(function(){ | ||
html = document.body.innerHTML; | ||
url = html.match(/appdownurl=".*?"/); | ||
url = url.toString().replace(/\"|appdownurl=/g, ""); | ||
window.open(atob(url),'_self'); | ||
})() |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
python /Applications/iRE.app/iRE_Server.py |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
|
||
killall -9 SpringBoard | ||
|
Binary file not shown.
Binary file not shown.
35 changes: 35 additions & 0 deletions
35
macOS Platform/Cycript.ios/Cycript.framework/Headers/Cycript.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/* Cycript - The Truly Universal Scripting Language | ||
* Copyright (C) 2009-2016 Jay Freeman (saurik) | ||
*/ | ||
|
||
/* GNU Affero General Public License, Version 3 {{{ */ | ||
/* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Affero General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU Affero General Public License for more details. | ||
* You should have received a copy of the GNU Affero General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
**/ | ||
/* }}} */ | ||
|
||
#ifndef CYCRIPT_CYCRIPT_H | ||
#define CYCRIPT_CYCRIPT_H | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
void CYListenServer(short port); | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#endif/*CYCRIPT_CYCRIPT_H*/ |
Binary file not shown.
Binary file not shown.
Binary file not shown.
74 changes: 74 additions & 0 deletions
74
macOS Platform/Cycript.lib/cycript0.9/com/saurik/substrate/MS.cy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
/* Cydia Substrate - Powerful Code Insertion Platform | ||
* Copyright (C) 2008-2015 Jay Freeman (saurik) | ||
*/ | ||
|
||
(function(exports) { | ||
|
||
var libcycript = dlopen("/usr/lib/libcycript.dylib", RTLD_NOLOAD); | ||
if (libcycript == null) { | ||
exports.error = dlerror(); | ||
return; | ||
} | ||
|
||
var CYHandleServer = dlsym(libcycript, "CYHandleServer"); | ||
if (CYHandleServer == null) { | ||
exports.error = dlerror(); | ||
return; | ||
} | ||
|
||
var info = new Dl_info; | ||
if (dladdr(CYHandleServer, info) == 0) { | ||
exports.error = dlerror(); | ||
return; | ||
} | ||
|
||
var path = info->dli_fname; | ||
var slash = path.lastIndexOf('/'); | ||
if (slash == -1) | ||
return; | ||
|
||
var libsubstrate = dlopen(path.substr(0, slash) + "/libsubstrate.dylib", RTLD_GLOBAL | RTLD_LAZY); | ||
if (libsubstrate == null) { | ||
exports.error = dlerror(); | ||
return; | ||
} | ||
|
||
extern "C" void *MSGetImageByName(const char *); | ||
extern "C" void *MSFindSymbol(void *, const char *); | ||
extern "C" void MSHookFunction(void *, void *, void **); | ||
extern "C" void MSHookMessageEx(Class, SEL, void *, void **); | ||
|
||
var slice = Array.prototype.slice; | ||
|
||
exports.getImageByName = MSGetImageByName; | ||
exports.findSymbol = MSFindSymbol; | ||
|
||
exports.hookFunction = function(func, hook, old) { | ||
var type = typeid(func); | ||
|
||
var pointer; | ||
if (old == null || typeof old === "undefined") | ||
pointer = null; | ||
else { | ||
pointer = new (typedef void **); | ||
*old = function() { return type(*pointer).apply(null, arguments); }; | ||
} | ||
|
||
MSHookFunction(func.valueOf(), type(hook), pointer); | ||
}; | ||
|
||
exports.hookMessage = function(isa, sel, imp, old) { | ||
var type = sel.type(isa); | ||
|
||
var pointer; | ||
if (old == null || typeof old === "undefined") | ||
pointer = null; | ||
else { | ||
pointer = new (typedef void **); | ||
*old = function() { return type(*pointer).apply(null, [this, sel].concat(slice.call(arguments))); }; | ||
} | ||
|
||
MSHookMessageEx(isa, sel, type(function(self, sel) { return imp.apply(self, slice.call(arguments, 2)); }), pointer); | ||
}; | ||
|
||
})(exports); |
28 changes: 28 additions & 0 deletions
28
macOS Platform/Cycript.lib/cycript0.9/org/cycript/NSLog.cy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* Cycript - The Truly Universal Scripting Language | ||
* Copyright (C) 2009-2016 Jay Freeman (saurik) | ||
*/ | ||
|
||
/* GNU Lesser General Public License, Version 3 {{{ */ | ||
/* | ||
* Cycript is free software: you can redistribute it and/or modify it under | ||
* the terms of the GNU Lesser General Public License as published by the | ||
* Free Software Foundation, either version 3 of the License, or (at your | ||
* option) any later version. | ||
* | ||
* Cycript is distributed in the hope that it will be useful, but WITHOUT | ||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public | ||
* License for more details. | ||
* | ||
* You should have received a copy of the GNU Lesser General Public License | ||
* along with Cycript. If not, see <http://www.gnu.org/licenses/>. | ||
**/ | ||
/* }}} */ | ||
|
||
var NSLog = dlsym(RTLD_DEFAULT, "NSLog"); | ||
var slice = [].slice; | ||
|
||
module.exports = function(format) { | ||
var args = slice.call(arguments); | ||
new Functor(NSLog, "v" + ["@" for (x in args)].join("")).apply(null, args); | ||
}; |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
libcycript.dylib |
Oops, something went wrong.