Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,6 @@
&#45; [forcequit](https://github.com/forcequitOS) for his work on bad_query<br>
&#45; [johnny](https://github.com/0xjohnnydev) for his work on the MCM bug class<br>
&#45; [jailbreak.party](https://github.com/jailbreakdotparty) for PartyUI, GestaltView and the implementation of [neon](https://github.com/neonmodder123)'s respring method<br>
&#45; [EricoEC](https://github.com/EricoEC) for Simplified Chinese Translation<br>

<i>btw, you should like totally star this repo and stuff</i>
5 changes: 3 additions & 2 deletions mond.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@
knownRegions = (
en,
Base,
"zh-Hans",
);
mainGroup = CCF44B36300858B300739BFC;
minimizedProjectReferenceProxies = 1;
Expand Down Expand Up @@ -268,7 +269,7 @@
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = DN4S6CXFWY;
DEVELOPMENT_TEAM = "";
ENABLE_PREVIEWS = YES;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_KEY_CFBundleDisplayName = mond;
Expand Down Expand Up @@ -306,7 +307,7 @@
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = DN4S6CXFWY;
DEVELOPMENT_TEAM = "";
ENABLE_PREVIEWS = YES;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_KEY_CFBundleDisplayName = mond;
Expand Down
16 changes: 8 additions & 8 deletions mond/mond.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,26 +28,26 @@ var path: String {
@main
struct mond: App {
@StateObject private var state = AppState()

@AppStorage("ka_on") private var ka_on = true

init() {
if !is_debugged() {
setvbuf(stdout, nil, _IONBF, 0)
dup2(pipe.fileHandleForWriting.fileDescriptor, STDOUT_FILENO)
}

UserDefaults.standard.register(defaults: ["exploit_method": "bad_query"])
if UserDefaults.standard.bool(forKey: "ka_on") {
keep_alive()
}

// thanks lunginspector
let fix = class_getInstanceMethod(UIDocumentPickerViewController.self, #selector(UIDocumentPickerViewController.fix_init(forOpeningContentTypes:asCopy:)))!
let og = class_getInstanceMethod(UIDocumentPickerViewController.self, #selector(UIDocumentPickerViewController.init(forOpeningContentTypes:asCopy:)))!
method_exchangeImplementations(og, fix)
}

var body: some Scene {
WindowGroup {
ContentView()
Expand All @@ -62,9 +62,9 @@ struct mond: App {
}
.onAppear() {
if !is_supported() {
Alertinator.shared.alert(title: "Not supported!", body: "Your iOS version may not be supported by mond.\nMond only supports iOS 27.0 developer beta 1 - 4.")
Alertinator.shared.alert(title: String(localized: "Not supported!"), body: String(localized: "Your iOS version may not be supported by mond.\nMond only supports iOS 27.0 developer beta 1 - 4."))
}

grant_all(state: state)
}
.overlay {
Expand All @@ -85,4 +85,4 @@ extension UIDocumentPickerViewController {
@objc func fix_init(forOpeningContentTypes contentTypes: [UTType], asCopy: Bool) -> UIDocumentPickerViewController {
return fix_init(forOpeningContentTypes: contentTypes, asCopy: true)
}
}
}
26 changes: 13 additions & 13 deletions mond/views/app/ContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,26 +11,26 @@ import PartyUI
struct ContentView: View {
@EnvironmentObject var state: AppState
@AppStorage("method") private var method: String = "bad_query"

@State private var is_valid: Bool = false
@State private var show_settings: Bool = false

var body: some View {
NavigationStack {
List {
Section {
LogView()
.modifier(TerminalPlatter())
} header: {
Label("Logs", systemImage: "apple.terminal")
Label(String(localized: "Logs"), systemImage: "apple.terminal")
}

Section {
NavigationLink {
GestaltView()
} label: {
HStack {
Text("MobileGestalt")
Text(String(localized: "MobileGestalt"))
if state.granting_mg {
Spacer()
ProgressView()
Expand All @@ -39,12 +39,12 @@ struct ContentView: View {
}
}
.disabled(state.mg_granted != true)

NavigationLink {
PosterView()
} label: {
HStack {
Text("PosterBoard")
Text(String(localized: "PosterBoard"))
if state.granting_pb {
Spacer()
ProgressView()
Expand All @@ -53,12 +53,12 @@ struct ContentView: View {
}
}
.disabled(method == "cmg" || state.pb_granted != true)

NavigationLink {
SantanderView()
} label: {
HStack {
Text("HouseArrest")
Text(String(localized: "HouseArrest"))
if state.granting_apps {
Spacer()
ProgressView()
Expand All @@ -68,14 +68,14 @@ struct ContentView: View {
}
.disabled(method == "cmg" || state.apps_granted != true)
} header: {
Label("Tweaks", systemImage: "paintbrush")
Label(String(localized: "Tweaks"), systemImage: "paintbrush")
} footer: {
if method == "cmg" {
Text("Only MobileGestalt is available when method is set to cmg.")
Text(String(localized: "Only MobileGestalt is available when method is set to cmg."))
}
}
}
.navigationTitle("mond")
.navigationTitle(String(localized: "mond"))
.tint(Color("AccentColor"))
.toolbar {
ToolbarItem(placement: .navigationBarTrailing) {
Expand All @@ -93,4 +93,4 @@ struct ContentView: View {
}
}
}
}
}
5 changes: 2 additions & 3 deletions mond/views/app/LogView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,10 @@ struct LogView: View {
Button {
UIPasteboard.general.string = log
} label: {
Label("Copy Output", systemImage: "doc.on.doc")
Label(String(localized: "Copy Output"), systemImage: "doc.on.doc")
}
}
}
}
}
}

}
Loading