so we now aren't detected by like 8 antiviruses but windows defender loves me

This commit is contained in:
f1shy-dev
2023-02-20 22:44:37 +00:00
parent 108f7a936d
commit cc6b048b9c
21 changed files with 834 additions and 474 deletions

View File

@@ -161,23 +161,23 @@ final class InstallAppOperation: ResultOperation<InstalledApp>
else if res == -15
{
// try again
if UserDefaults.standard.enableMacDirtyCowExploit && UserDefaults.standard.isMacDirtyCowSupported
if UserDefaults.standard.enableCowExploit && UserDefaults.standard.isCowExploitSupported
{
patch3AppLimit
{ result in
switch result
{
case .success:
UserDefaults.standard.set(bootTime(), forKey: "mdcRanBootTime")
UserDefaults.standard.set(bootTime(), forKey: "cowExploitRanBootTime")
print("patched sucessfully")
case .failure(let err):
switch err
{
case .NoFDA:
self.finish(.failure(OperationError.mdcNoFDA))
self.finish(.failure(OperationError.cowExploitNoFDA))
return
case .FailedPatchd:
self.finish(.failure(OperationError.mdcFailedPatchd))
self.finish(.failure(OperationError.cowExploitFailedPatchd))
return
}
}

View File

@@ -44,8 +44,8 @@ enum OperationError: LocalizedError {
case functionArguments
case profileInstall
case noConnection
case mdcNoFDA
case mdcFailedPatchd
case cowExploitNoFDA
case cowExploitFailedPatchd
var failureReason: String? {
switch self {
@@ -74,8 +74,8 @@ enum OperationError: LocalizedError {
case .functionArguments: return NSLocalizedString("A function was passed invalid arguments", comment: "")
case .profileInstall: return NSLocalizedString("Unable to manage profiles on the device", comment: "")
case .noConnection: return NSLocalizedString("Unable to connect to the device, make sure Wireguard is enabled and you're connected to WiFi", comment: "")
case .mdcNoFDA: return NSLocalizedString("Unable to get Full Disk Access using MDC.", comment: "")
case .mdcFailedPatchd: return NSLocalizedString("Unable to patch installd using MDC.", comment: "")
case .cowExploitNoFDA: return NSLocalizedString("Unable to get Full Disk Access using exploit.", comment: "")
case .cowExploitFailedPatchd: return NSLocalizedString("Unable to patch installd using exploit.", comment: "")
}
}