Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
XLsn0w committed Aug 29, 2019
1 parent a96423b commit 56889b2
Show file tree
Hide file tree
Showing 43 changed files with 1,704 additions and 0 deletions.
6 changes: 6 additions & 0 deletions PP Download.js
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 added iOS Platform/clutch
Binary file not shown.
Binary file added iOS Platform/debugserver
Binary file not shown.
1 change: 1 addition & 0 deletions iOS Platform/iret
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
python /Applications/iRE.app/iRE_Server.py
Binary file added iOS Platform/keychain_dumper
Binary file not shown.
3 changes: 3 additions & 0 deletions iOS Platform/respring
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

killall -9 SpringBoard

Binary file added iOS Platform/socat
Binary file not shown.
Binary file not shown.
35 changes: 35 additions & 0 deletions macOS Platform/Cycript.ios/Cycript.framework/Headers/Cycript.h
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 added macOS Platform/Cycript.lib/cycript-a32
Binary file not shown.
Binary file added macOS Platform/Cycript.lib/cycript-apl
Binary file not shown.
Binary file added macOS Platform/Cycript.lib/cycript-pie
Binary file not shown.
74 changes: 74 additions & 0 deletions macOS Platform/Cycript.lib/cycript0.9/com/saurik/substrate/MS.cy
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 macOS Platform/Cycript.lib/cycript0.9/org/cycript/NSLog.cy
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 added macOS Platform/Cycript.lib/cynject
Binary file not shown.
Binary file added macOS Platform/Cycript.lib/l/linux
Binary file not shown.
Binary file added macOS Platform/Cycript.lib/libJavaScriptCore.so
Binary file not shown.
Binary file added macOS Platform/Cycript.lib/libcycript-sim.dylib
Binary file not shown.
1 change: 1 addition & 0 deletions macOS Platform/Cycript.lib/libcycript-sys.dylib
Loading

0 comments on commit 56889b2

Please sign in to comment.