Skip to content
Open

test #16

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
156 commits
Select commit Hold shift + click to select a range
3ace736
Add foulwrapper
Lessica Jun 11, 2021
6ec006c
Add foulwrapper
Lessica Jun 11, 2021
f8fca4e
Add foulwrapper
Lessica Jun 11, 2021
254b1d9
Merge branch 'master' of github.com:NyaMisty/fouldecrypt
Lessica Nov 15, 2021
4c5dee7
Fix compile errors for noobs
Lessica Nov 18, 2021
dc3639b
Fix `make package` command by creating layout directory
Lessica Nov 18, 2021
e8494e1
Fix `make package` command by creating layout directory
Lessica Nov 18, 2021
8f48fa4
Add `link_theos.sh` to link against theos makefiles for noobs
Lessica Nov 18, 2021
4506bf1
Add `applist` as `foulwrapper`'s package dependencies
Lessica Nov 18, 2021
36cf8c6
Add `zip` as `foulwrapper`'s dependencies
Lessica Nov 18, 2021
3c49b2b
Fix control syntax
Lessica Nov 18, 2021
b493eeb
Add usage for `foulwrapper`
Lessica Nov 18, 2021
f9c0155
remove zip
und3fined Nov 25, 2022
6a6e2a4
Update build-deb.yml
und3fined Nov 25, 2022
3c11bb6
update version
und3fined Nov 25, 2022
5e8f1f4
update actions
und3fined Nov 25, 2022
d6acd54
debug controk
und3fined Nov 25, 2022
1cda46c
ignore control file
und3fined Nov 25, 2022
a8c761c
update workflow
und3fined Nov 25, 2022
a105aa0
remove other log and older os
und3fined Nov 25, 2022
5866fe8
upgrade to ios 14.0
und3fined Nov 25, 2022
c0495cc
rever tfp
und3fined Nov 25, 2022
4802244
revert theos
und3fined Nov 25, 2022
1f8deed
check env
und3fined Nov 25, 2022
631b3a5
update theos
und3fined Nov 25, 2022
b354d6f
update sdk
und3fined Nov 25, 2022
e41197c
update theos
und3fined Nov 25, 2022
b944572
update to ios 14.0
und3fined Nov 25, 2022
81536f4
add DEVELOPER_DIR env
und3fined Nov 25, 2022
d228d94
update xcode env
und3fined Nov 25, 2022
dc7a9d3
add note
und3fined Nov 25, 2022
e94989a
update target
und3fined Nov 25, 2022
6619b3f
update sdk_version:deployment_version
und3fined Nov 25, 2022
27ca6f4
remove log
und3fined Nov 25, 2022
9ecfad9
update include
und3fined Nov 25, 2022
3ecf8fe
disable include
und3fined Nov 25, 2022
1403f6e
update include
und3fined Nov 25, 2022
33c44b4
add debug
und3fined Nov 25, 2022
ad1c0ac
update sdk
und3fined Nov 25, 2022
ee2731e
update CFLAFS
und3fined Nov 25, 2022
140a271
override theos AppList
und3fined Nov 25, 2022
d29b9ab
save
und3fined Nov 25, 2022
449150b
fix synxtax
und3fined Nov 25, 2022
d48d35f
update
und3fined Nov 25, 2022
8a8aeec
clean
und3fined Nov 25, 2022
4ffecb8
update std c
und3fined Nov 25, 2022
2a67323
use xcode system
und3fined Nov 25, 2022
99af060
update
und3fined Nov 25, 2022
349c11c
disable debug
und3fined Nov 25, 2022
82c9084
back to arm
und3fined Nov 25, 2022
a64617a
build one
und3fined Nov 25, 2022
5cd6340
remove deps
und3fined Nov 25, 2022
4f6a32f
remove other log
und3fined Nov 25, 2022
b3819f3
add more log
und3fined Nov 25, 2022
2f8dea3
update maintainer
und3fined Nov 25, 2022
8aaf8b5
disable VERBOSE
und3fined Nov 25, 2022
0dee6d9
allow send tmp path
und3fined Nov 25, 2022
cb08d7b
build new log
und3fined Nov 25, 2022
6eab012
update tempPath
und3fined Nov 25, 2022
9255c2c
remove create file
und3fined Nov 25, 2022
bf1cf0f
move from stdout to stderr
und3fined Nov 25, 2022
e8753f7
log outdir
und3fined Nov 25, 2022
89d8fbb
revert zip
und3fined Nov 25, 2022
88a47d7
update more
und3fined Nov 25, 2022
39ab997
add clean
und3fined Nov 25, 2022
098d558
add sign
und3fined Nov 25, 2022
2e0555d
clean code
und3fined Nov 25, 2022
ba6d4b6
Just zip Payload
und3fined Nov 25, 2022
7534d13
update remove and remove default code
und3fined Nov 25, 2022
15b5a12
lean
und3fined Nov 25, 2022
e4bd62f
update log
und3fined Nov 25, 2022
2d10ae4
fix path string
und3fined Nov 25, 2022
a64fcdd
update remove temp path
und3fined Nov 25, 2022
15a40c8
lean
und3fined Nov 25, 2022
03b6380
update log
und3fined Nov 25, 2022
ec6d6fb
revert LIBKRW and LIBKERNRW
und3fined Nov 25, 2022
aa12135
handle decrypt failed
und3fined Nov 26, 2022
273e948
add handle log
und3fined Nov 26, 2022
dfec10f
update decryptCount tyoe
und3fined Nov 26, 2022
be0ee23
revert verbose
und3fined Nov 26, 2022
259a8b1
save
und3fined Nov 26, 2022
691dbc0
update print
und3fined Nov 26, 2022
830b3af
strinf value
und3fined Nov 26, 2022
e143c27
remove other log
und3fined Nov 26, 2022
a17f4b1
update detect encrypt file
und3fined Nov 26, 2022
d216da2
dont check magic
und3fined Nov 26, 2022
c1b42b3
allow get all apps
und3fined Nov 26, 2022
1a37a19
skip static file
und3fined Nov 26, 2022
68f3332
update ignore static
und3fined Nov 26, 2022
22a73f1
update more static
und3fined Nov 26, 2022
6970418
more static added
und3fined Nov 26, 2022
ab5adb4
update more
und3fined Nov 26, 2022
f458bdd
update sufffix
und3fined Nov 26, 2022
99b2075
update condition
und3fined Nov 26, 2022
f240639
revert build
und3fined Nov 26, 2022
742c7e1
support direct container dump
und3fined Dec 1, 2022
b096d7b
disable applist
und3fined Dec 1, 2022
76c7bb2
update
und3fined Dec 1, 2022
56e7e23
update
und3fined Dec 1, 2022
a8e5c47
fix build
und3fined Dec 1, 2022
5283fe5
remove AppList
und3fined Dec 2, 2022
24eab4e
remove AppList again
und3fined Dec 2, 2022
82562c9
revert AppList
und3fined Dec 3, 2022
045a1d7
remove check suffix
und3fined Dec 13, 2022
ac61679
add remove UISupportedDevices
und3fined Mar 25, 2023
6351e79
patch UISupportedDevices
und3fined Mar 25, 2023
0b8d50a
fix infoPlistPath
und3fined Mar 25, 2023
25e8467
add log
und3fined Mar 25, 2023
7e0c21d
fix syntax
und3fined Mar 25, 2023
76d9e2e
remove return
und3fined Mar 25, 2023
e9a3967
remove other log
und3fined Mar 25, 2023
c82d770
update other log
und3fined Mar 25, 2023
e4daaba
add LIBKERNRW
und3fined Mar 27, 2023
44d6125
Update build for rootless
und3fined Apr 24, 2023
b51e6a8
remove applist
und3fined Apr 24, 2023
0785190
save
und3fined Apr 24, 2023
3d7b6f3
update submdoule
und3fined Apr 24, 2023
b21ae82
Update kern support rootless
und3fined Apr 24, 2023
57aceac
add LIBKERNRW build
und3fined Apr 24, 2023
1ed4eca
enable USE_LIBKRW in Makefile
und3fined Apr 24, 2023
5fa49ef
use USE_LIBKRW and USE_LIBKERNRW from command
und3fined Apr 24, 2023
8d050e8
enable rootless
und3fined Apr 24, 2023
6724f63
build TFP0
und3fined Apr 24, 2023
63b6037
Update README.md
und3fined Jan 29, 2024
7289134
feat: add foulfolder
und3fined Jan 9, 2025
033efdd
chore: upgrade build env
und3fined Jan 9, 2025
be74269
chore: save
und3fined Jan 9, 2025
2810dee
chor: try build tfp0
und3fined Jan 9, 2025
ec533b9
fix: missing build
und3fined Jan 9, 2025
d39395a
chore: revert kerninfra
und3fined Jan 9, 2025
2954e55
build
und3fined Jan 9, 2025
3eb4c2e
chore: sync submodule
und3fined Jan 9, 2025
551592b
chore: remove unused deps
und3fined Jan 9, 2025
add51c0
chore: update deps
und3fined Jan 9, 2025
0ea87dc
updayter cflag
und3fined Jan 9, 2025
b7dbd99
chore: try build
und3fined Jan 9, 2025
df360b1
chore: update build
und3fined Jan 9, 2025
75e3171
chore: sync submodule
und3fined Jan 9, 2025
1ce4f2c
chore: update deps
und3fined Jan 9, 2025
6ed92e6
chore: rename pkg
und3fined Jan 9, 2025
3df2cd0
chore: update arch
und3fined Jan 9, 2025
47dd250
chore: updatre m
und3fined Jan 9, 2025
f765e5d
chore: update sign path
und3fined Jan 9, 2025
c62db43
chore: optimize more
und3fined Jan 9, 2025
ace3f33
release: 0.0.3
und3fined Jan 9, 2025
e7771ca
Update foulfolder.m
und3fined Jan 9, 2025
33e84d5
Update control.template
und3fined Jan 9, 2025
811cf9a
revert app path
und3fined Jan 9, 2025
cf48fdc
Update control.template
und3fined Jan 9, 2025
ce9f88a
chore: build for unc0ver
und3fined Jan 9, 2025
1747ab5
fix: missing fouldecrypt in /bin use for sh shell
und3fined Jan 9, 2025
8d202c1
stable
und3fined Jan 9, 2025
3c8f764
fix: correct indentation in Makefile for after-install command
und3fined Jan 9, 2025
096ec03
chore: complete build
und3fined Jan 9, 2025
5ecaf7b
Squashed commit of the following:
und3fined Jan 10, 2025
d972742
feat: release 0.2.0
und3fined Jan 10, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 13 additions & 11 deletions .github/workflows/build-deb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,10 @@ name: C/C++ CI

on:
push:
#tags:
# - 'v*'

#branches: [ master ]

jobs:
build:
runs-on: macos-latest
runs-on: macos-13
strategy:
matrix:
provider: [TFP0, LIBKRW, LIBKERNRW]
Expand All @@ -20,23 +16,29 @@ jobs:
submodules: recursive

- name: Prepare Theos
uses: Randomblock1/theos-action@v1
uses: und3fined/theos-action@main

- name: Build package
run: |
cp -rf include/* $THEOS/vendor/include/
rm -f packages/*
cp control.template control

if [[ ${{matrix.provider}} == TFP0 ]]; then
cp control.tfp0 control
USE_TFP0=1 make package FINALPACKAGE=1
elif [[ ${{matrix.provider}} == LIBKRW ]]; then
sed -i '' 's/{{.depends}}/libkrw/g' control
cp control.krw control
USE_LIBKRW=1 make package FINALPACKAGE=1
elif [[ ${{matrix.provider}} == LIBKERNRW ]]; then
sed -i '' 's/{{.depends}}/libkernrw0/g' control
cp control.kernrw control
USE_LIBKERNRW=1 make package FINALPACKAGE=1
fi
env:
DEVELOPER_DIR: /Applications/Xcode_14.2.app/Contents/Developer
# LDFLAGS: "-L/usr/local/opt/llvm/lib"
# CPPFLAGS: "-I/usr/local/opt/llvm/include"
- name: Publish artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: fouldecrypt-${{matrix.provider}}
name: foulfolder-${{matrix.provider}}
path: ${{ github.workspace }}/packages/*.deb
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
.idea/
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

control
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[submodule "kerninfra"]
path = kerninfra
url = https://github.com/NyaMisty/KernInfra
url = git@github.com:und3fined/KernInfra.git
32 changes: 24 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
TARGET := iphone:clang:latest:7.0
TARGET := iphone:clang:12.4:7.0
ARCHS = arm64 arm64e
export ADDITIONAL_CFLAGS = -DTHEOS_LEAN_AND_MEAN -fobjc-arc

include $(THEOS)/makefiles/common.mk

TOOL_NAME = fouldecrypt flexdecrypt2

# USE_TFP0 = 1
# USE_LIBKRW = 1
# USE_LIBKERNRW = 1
TOOL_NAME = fouldecrypt flexdecrypt2 foulwrapper foulfolder fouldlopen

fouldecrypt_FILES = main.cpp foulmain.cpp
fouldecrypt_CFLAGS = -fobjc-arc -Wno-unused-variable # -Ipriv_include
fouldecrypt_CFLAGS = -fobjc-arc -Wno-unused-variable -Ipriv_include
fouldecrypt_CCFLAGS = $(fouldecrypt_CFLAGS)
fouldecrypt_CODESIGN_FLAGS = -Sentitlements.plist
fouldecrypt_INSTALL_PATH = /usr/local/bin
Expand All @@ -19,12 +16,31 @@ fouldecrypt_LDFLAGS += -Lkerninfra/libs
fouldecrypt_CCFLAGS += -std=c++2a

flexdecrypt2_FILES = main.cpp flexwrapper.cpp
flexdecrypt2_CFLAGS = -fobjc-arc -Wno-unused-variable # -Ipriv_include
flexdecrypt2_CFLAGS = -fobjc-arc -Wno-unused-variable -Ipriv_include
flexdecrypt2_CCFLAGS = $(flexdecrypt2_CFLAGS)
flexdecrypt2_CODESIGN_FLAGS = -Sentitlements.plist
flexdecrypt2_INSTALL_PATH = /usr/local/bin
flexdecrypt2_SUBPROJECTS = kerninfra
flexdecrypt2_LDFLAGS += -Lkerninfra/libs
flexdecrypt2_CCFLAGS += -std=c++2a

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

foulfolder_FILES = foulfolder.m
foulfolder_CFLAGS = -fobjc-arc -Wno-unused-variable -Ix_include
foulfolder_CCFLAGS = $(foulfolder_CFLAGS)
foulfolder_CODESIGN_FLAGS = -Sentitlements.plist
foulfolder_INSTALL_PATH = /usr/local/bin
foulfolder_FRAMEWORKS = Foundation MobileCoreServices

fouldlopen_FILES = fouldlopen.c
fouldlopen_INSTALL_PATH = /usr/local/bin

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
10 changes: 10 additions & 0 deletions control.kernrw
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Package: dev.und3fy.foulfolder.tauri
Name: foulfolder (Tauri)
Version: 0.2.0
Architecture: iphoneos-arm
Depends: applist,zip,libkernrw0
Description: Directly decrypt binaries like fouldecrypt, but also supports iOS 14
Maintainer: und3fined
Author: misty
Section: System
Tag: role::hacker
10 changes: 10 additions & 0 deletions control.krw
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Package: dev.und3fy.foulfolder.unc0ver
Name: foulfolder (unc0ver)
Version: 0.2.0
Architecture: iphoneos-arm
Depends: applist,zip,libkrw
Description: Directly decrypt binaries like fouldecrypt, but also supports iOS 14
Maintainer: und3fined
Author: misty
Section: System
Tag: role::hacker
10 changes: 0 additions & 10 deletions control.template

This file was deleted.

10 changes: 10 additions & 0 deletions control.tfp0
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Package: dev.und3fy.foulfolder
Name: foulfolder
Version: 0.2.0
Architecture: iphoneos-arm
Depends: applist,zip
Description: Directly decrypt binaries like fouldecrypt, but also supports iOS 14
Maintainer: und3fined
Author: misty
Section: System
Tag: role::hacker
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>
11 changes: 11 additions & 0 deletions fouldlopen.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#include <dlfcn.h>
#include <stdio.h>

int main(int argc, char **argv) {
void *(*sym_dlopen)(const char *, int) = dlsym(RTLD_DEFAULT, "dlopen");
for (int i = 1; i < argc; i++) {
void *handle = sym_dlopen(argv[i], RTLD_NOW);
dlclose(handle);
}
return 0;
}
Loading