Skip to content

Commit

Permalink
Add foulwrapper thanks to @Lessica
Browse files Browse the repository at this point in the history
  • Loading branch information
NyaMisty authored Nov 10, 2023
2 parents 907f9cc + 8693782 commit c480edd
Show file tree
Hide file tree
Showing 11 changed files with 438 additions and 33 deletions.
34 changes: 34 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,37 @@
packages
other's proj
priv_include
CMakeLists.txt
compile_commands.json
/.idea/
/.cache/
/cmake-build-*/

### macOS ###
# General
.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon


# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk
19 changes: 14 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
TARGET := iphone:clang:latest:7.0
TARGET := iphone:clang:14.5:13.0
ARCHS = arm64 arm64e
export ADDITIONAL_CFLAGS = -DTHEOS_LEAN_AND_MEAN -fobjc-arc

include $(THEOS)/makefiles/common.mk

TOOL_NAME = fouldecrypt flexdecrypt2
TOOL_NAME = fouldecrypt flexdecrypt2 foulwrapper

# USE_TFP0 = 1
# USE_LIBKRW = 1
# USE_LIBKERNRW = 1
# export USE_TFP0 = 1
export USE_LIBKRW = 1
# export USE_LIBKERNRW = 1

fouldecrypt_FILES = main.cpp foulmain.cpp
fouldecrypt_CFLAGS = -fobjc-arc -Wno-unused-variable # -Ipriv_include
Expand All @@ -27,4 +28,12 @@ flexdecrypt2_SUBPROJECTS = kerninfra
flexdecrypt2_LDFLAGS += -Lkerninfra/libs
flexdecrypt2_CCFLAGS += -std=c++2a

foulwrapper_FILES = foulwrapper.m
foulwrapper_CFLAGS = -fobjc-arc -Wno-unused-variable -Iinclude
foulwrapper_CCFLAGS = $(foulwrapper_CFLAGS)
foulwrapper_CODESIGN_FLAGS = -Sentitlements.plist
foulwrapper_INSTALL_PATH = /usr/local/bin
foulwrapper_FRAMEWORKS = Foundation MobileCoreServices
foulwrapper_PRIVATE_FRAMEWORKS = MobileContainerManager

include $(THEOS_MAKE_PATH)/tool.mk
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ Install the correct version:

Run `fouldecrypt` on an encrypted binary.

## About `foulwrapper`

`foulwrapper` will find all Mach-Os in a specific application and decrypt them using `fouldecrypt`:

`usage: foulwrapper (application name or bundle identifier)`

## Credits
@meme: foulplay
@JohnCoates: flexdecrypt
2 changes: 1 addition & 1 deletion control.template
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Package: moe.misty.fouldecrypt
Name: fouldecrypt
Version: 0.0.4
Architecture: iphoneos-arm
Depends: {{.depends}}
Depends: zip, {{.depends}}
Description: Directly decrypt binaries like flexdecrypt, but also supports iOS 14
Maintainer: misty
Author: misty
Expand Down
58 changes: 32 additions & 26 deletions entitlements.plist
Original file line number Diff line number Diff line change
Expand Up @@ -2,31 +2,37 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>application-identifier</key>
<string>-</string>
<key>com.apple.developer.team-identifier</key>
<string>-</string>
<key>com.apple.diagnosticd.diagnostic</key>
<true/>
<key>com.apple.frontboard.debugapplications</key>
<true/>
<key>com.apple.multitasking.termination</key>
<true/>
<key>com.apple.private.cs.debugger</key>
<true/>
<key>com.apple.private.security.no-sandbox</key>
<true/>
<key>com.apple.private.skip-library-validation</key>
<true/>
<key>com.apple.springboard.launchapplications</key>
<true/>
<key>dynamic-codesigning</key>
<true/>
<key>get-task-allow</key>
<true/>
<key>platform-application</key>
<true/>
<key>task_for_pid-allow</key>
<true/>
<key>application-identifier</key>
<string>-</string>
<key>com.apple.developer.team-identifier</key>
<string>-</string>
<key>com.apple.diagnosticd.diagnostic</key>
<true/>
<key>com.apple.frontboard.debugapplications</key>
<true/>
<key>com.apple.multitasking.termination</key>
<true/>
<key>com.apple.private.cs.debugger</key>
<true/>
<key>com.apple.private.security.no-sandbox</key>
<true/>
<key>com.apple.private.skip-library-validation</key>
<true/>
<key>com.apple.private.MobileContainerManager.allowed</key>
<true/>
<key>com.apple.private.MobileContainerManager.lookup</key>
<true/>
<key>com.apple.private.MobileContainerManager.otherIdLookup</key>
<true/>
<key>com.apple.springboard.launchapplications</key>
<true/>
<key>dynamic-codesigning</key>
<true/>
<key>get-task-allow</key>
<true/>
<key>platform-application</key>
<true/>
<key>task_for_pid-allow</key>
<true/>
</dict>
</plist>
Loading

0 comments on commit c480edd

Please sign in to comment.