garrettskj / ac_patcher

AnyConnect Patcher for Freedom
GNU General Public License v3.0
35 stars 10 forks source link

Failed to patch 4.8.03052 in OSX #4

Open xswqaz opened 3 years ago

xswqaz commented 3 years ago

Patching Completed Successfully, But, It Failed to start process vpnagentd

radare2 5.1.1 0 @ darwin-x86-64 git.
commit: HEAD build: 2021-02-16__00:59:55

Found method @ 0x1000c0c66
Looks like it's called from: 0x1000605bd
Patching Completed Successfully

The VPN Service is not available. Exiting.

Mar  3 23:50:32  com.apple.xpc.launchd[1] (com.apple.ReportCrash.Root[1864]): Binary is improperly signed.
Mar  3 23:50:32  ReportCrash[1866]: objc[1866]: Class CrashReport is implemented in both /System/Library/PrivateFrameworks/CrashReporterSupport.framework/Versions/A/CrashReporterSupport and /System/Library/CoreServices/ReportCrash. One of the two will be used. Which one is undefined.
xswqaz commented 3 years ago

Even though csrutil disable, vpnagentd process not running

garrettskj commented 3 years ago

Looks like the big issue is that Mac checks the binary to ensure that it's signed correctly as well: Binary is improperly signed I don't know enough about Mac binary structures to either remove the check for the sign, or update the signature to match after the modification. :(

humwerthuz commented 2 years ago

@xswqaz @garrettskj i was able to apply the patch first part of the patch (nooping the StartInterface), the last part didn't work since no reference to "VerifyFileSignatureCollective::IsValid" was found. The vpnagentd process was able to run after a sudo codesign -f -s - vpnagentd, but it was restarting... maybe something is different with my version 4.10.03104