paradiseduo / appdecrypt Goto Github PK
View Code? Open in Web Editor NEWappdecrypt is a tool to make decrypt application encrypted binaries on macOS when SIP-enabled (macOS 11.3 or below)
License: GNU General Public License v3.0
appdecrypt is a tool to make decrypt application encrypted binaries on macOS when SIP-enabled (macOS 11.3 or below)
License: GNU General Public License v3.0
~bug
./appdecrypt /Applications/test.app /Users/us/Downloads/
After this operation, an exception was found, and ctrl+c was used to abort. However, it was still found that more than half of the download directory files were lost.
谢谢
I just bought an M1 Mac air just to decrypt IPA apps. I installed Xcode on it (version 13.0, the latest available for macOS 11.3). When trying to run the build-macOS_arm.sh
script, I get the following error:
/Users/n/appdecrypt/Sources/appdecrypt/dump.swift:191:18: error: value of optional type 'UnsafeMutableRawPointer?' must be unwrapped to a value of type 'UnsafeMutableRawPointer'
free(base)
^
/Users/n/appdecrypt/Sources/appdecrypt/dump.swift:191:18: note: coalesce using '??' to provide a default when the optional value contains 'nil'
free(base)
^
?? <#default value#>
/Users/n/appdecrypt/Sources/appdecrypt/dump.swift:191:18: note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
free(base)
^
!
How can I fix this ? Thanks !
hey get this error msg..
success copy file.
cannot allocate memory
如题,时间过长指30分钟。
Mac信息:
MacBook Air (M1, 2020),macOS Big Sur 11.5.2;
IPA信息:
明日方舟,版本1.5.60,来源:借由 Apple Configurator 2 下载的适用于 iPhone 的 IPA 文件,MacO文件大小:159.6MB;
Appdecrypt 安装方式:
通过 Release 界面下载,解压后置于/usr/local/bin
终端界面如下:
Last login: Sat Aug 28 21:15:40 on ttys000
yy@YYdeMacBook-Air ~ % appdecrypt /Users/yy/Desktop/Arknights/Payload/arknights.app /Users/yy/Downloads
When I run ./build-macOS_arm.sh I get the following error:
error: terminated(1): /usr/bin/xcrun --sdk macosx --show-sdk-platform-path output:
xcrun: error: unable to lookup item 'PlatformPath' from command line tools installation
xcrun: error: unable to lookup item 'PlatformPath' in SDK '/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk'
I was able to successfully use appdecrypt on my m1 mac but the output binaries are still encrypted anyway!
I used otool to check and cryptid is still 1.
Dump /var/containers/Bundle/Application/AA24AA4E-DF06-4D35-B314-0B120A7DE876/XXX.app/XXX fail, because of mmap fail with Invalid argument
other framework Success.
Why? How to do?
Sorry for creating an issue, I just wanted to let you know that this actually works fully on iOS. Unlike flexdecrypt, it doesn't require spawning the executable, and after a couple of tests to confirm this works, I've been able to decrypt + install the final ipa's with no issues.
I created a repo with my build configuration and a pre-compiled binary under releases if you wan't to try this out and maybe integrate iOS support into the main repo. https://github.com/dlevi309/appdecrypt-ios
error: 'appdecrypt': Invalid manifest
/Users/user/appdecrypt/Package.swift:3:8: error: no such module 'PackageDescription'
import PackageDescription
^
I used precompiled binary from https://github.com/paradiseduo/appdecrypt/releases/download/2.1/appdecrypt_arm64_iOS.zip
iphone567:/tmp root# ./appdecrypt /private/var/containers/Bundle/Application/90F191CD-4192-45A0-9B53-BF1E15098F3E/ /tmp
Success to copy file.
Dump /private/var/containers/Bundle/Application/90F191CD-4192-45A0-9B53-BF1E15098F3E/neighborhood.app/neighborhood fail, because of mmap fail with Invalid argument
Dump /private/var/containers/Bundle/Application/90F191CD-4192-45A0-9B53-BF1E15098F3E/neighborhood.app/PlugIns/NotificationService.appex/NotificationService fail, because of mmap fail with Invalid argument
too many app decrypt failed!
What does this mean?
When fed with a universal binary like this:
% file Shadowrocket
Shadowrocket: Mach-O universal binary with 2 architectures: [arm_v7:
- Mach-O executable arm_v7] [arm64]
Shadowrocket (for architecture armv7): Mach-O executable arm_v7
Shadowrocket (for architecture arm64): Mach-O 64-bit executable arm64
The release version will get a segmentation fault:
zsh: segmentation fault ./appdecrypt "/.../Shadowrocket.app"
The debug version trips over an assertion:
appdecrypt/dump.swift:112: Assertion failed
zsh: trace trap .build/debug/appdecrypt "/.../Shadowrocket.app"
where the code at line 112 is:
assert(header.pointee.magic == MH_MAGIC_64)
This is likely to be the reason of #18, too.
I don't know the exact mechanism of encryption with a universal binary. I guess there should be some implementation to automatically extract the matching architecture only, or just throws an error message warning user about the existence of universal binaries.
iPhone:~ root# appdecrypt /var/containers/Bundle/Application/6EAF497A-E921-4BB7-9006-F7FB6D813003/ ./
Success to copy file.
Dump /var/containers/Bundle/Application/6EAF497A-E921-4BB7-9006-F7FB6D813003/QQNews.app/QQNews fail, because of encrypted fail with Operation not permitted
This is how I have done it.
appdecrypt % ./appdecrypt /Users/madstsk/.myWirdFiles/sideload/HCR2/Payload/hcrwc-iOS.app /Users/madstsk/.myWirdFiles/sideload/HCR2-decrypted.app
zsh: segmentation fault ./appdecrypt /Users/madstsk/.myWirdFiles/sideload/HCR2/Payload/hcrwc-iOS.app
2.0版本是可用的,main分支自己编译的版本也是可用的,2.1版本无法运行😅
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.