mirror of
https://github.com/NohamR/pyzule-rw.git
synced 2026-10-11 02:49:40 +00:00
Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
740d3716dc | ||
|
|
5ce7a0cb43 | ||
|
|
04a40f2aa6 | ||
|
|
6845281446 | ||
|
|
54da4485a5 |
3
.gitignore
vendored
3
.gitignore
vendored
@@ -6,3 +6,6 @@ build/
|
|||||||
*.cyan
|
*.cyan
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
|
||||||
|
*.ipa
|
||||||
|
*.app/
|
||||||
|
|
||||||
|
|||||||
@@ -104,7 +104,7 @@ def main() -> None:
|
|||||||
)
|
)
|
||||||
|
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"--version", action="version", version="cyan v1.4.3"
|
"--version", action="version", version="cyan v1.4.4"
|
||||||
)
|
)
|
||||||
|
|
||||||
from cyan import logic
|
from cyan import logic
|
||||||
|
|||||||
BIN
cyan/extras/zero.requirements
Normal file
BIN
cyan/extras/zero.requirements
Normal file
Binary file not shown.
@@ -13,7 +13,10 @@ class Executable:
|
|||||||
otool = f"{specific}/otool"
|
otool = f"{specific}/otool"
|
||||||
idylib = f"{specific}/insert_dylib"
|
idylib = f"{specific}/insert_dylib"
|
||||||
|
|
||||||
starters = ("\t/Library/", "\t@rpath", "\t@executable_path")
|
# adding /usr/lib/ now, idk why i didnt before. lets hope nothing breaks
|
||||||
|
## LITERALLY 2 DAYS LATER. WHAT THE FUCK IS @LOADER_PATH HELP
|
||||||
|
## i will cry if only checking for '@' will break this.
|
||||||
|
starters = ("\t/Library/", "\t/usr/lib/", "\t@")
|
||||||
|
|
||||||
# substrate could show up as
|
# substrate could show up as
|
||||||
# CydiaSubstrate.framework, libsubstrate.dylib, EVEN CydiaSubstrate.dylib
|
# CydiaSubstrate.framework, libsubstrate.dylib, EVEN CydiaSubstrate.dylib
|
||||||
|
|||||||
@@ -137,9 +137,12 @@ class MainExecutable(Executable):
|
|||||||
print("[!] failed to merge new entitlements, are they valid?")
|
print("[!] failed to merge new entitlements, are they valid?")
|
||||||
|
|
||||||
def sign_with_entitlements(self, entitlements: str) -> bool:
|
def sign_with_entitlements(self, entitlements: str) -> bool:
|
||||||
return subprocess.run(
|
return subprocess.run([
|
||||||
[self.ldid, f"-S{entitlements}", "-M", "-Cadhoc", self.path]
|
self.ldid,
|
||||||
).returncode == 0
|
f"-S{entitlements}", "-M", "-Cadhoc",
|
||||||
|
f"-Q{self.install_dir}/extras/zero.requirements",
|
||||||
|
self.path
|
||||||
|
]).returncode == 0
|
||||||
|
|
||||||
def lief_inject(self, cmd: str) -> None:
|
def lief_inject(self, cmd: str) -> None:
|
||||||
if self.inj is None: # type: ignore
|
if self.inj is None: # type: ignore
|
||||||
|
|||||||
4
setup.py
4
setup.py
@@ -4,10 +4,10 @@ from setuptools import setup
|
|||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="cyan",
|
name="cyan",
|
||||||
version="1.4.3",
|
version="1.4.4",
|
||||||
description="finally, pyzule doesn't suck",
|
description="finally, pyzule doesn't suck",
|
||||||
author="zx",
|
author="zx",
|
||||||
author_email="zx@hrzn.email",
|
author_email="z@zxcvbn.fyi",
|
||||||
packages=["cyan", "cyan.tbhtypes", "cgen"],
|
packages=["cyan", "cyan.tbhtypes", "cgen"],
|
||||||
python_requires=">=3.9",
|
python_requires=">=3.9",
|
||||||
include_package_data=True,
|
include_package_data=True,
|
||||||
|
|||||||
Reference in New Issue
Block a user