Created
October 27, 2020 08:17
-
-
Save Halo-Michael/9ad1432a673f4a260910cc9dc2e3d611 to your computer and use it in GitHub Desktop.
RIP AUT+PAC forgeries on A14 https://twitter.com/qwertyoruiopz/status/1320944385010376705
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <Foundation/Foundation.h> | |
__asm__("\ | |
_paciza:\n \ | |
paciza x0\n \ | |
ret\n \ | |
_autiza:\n \ | |
autiza x0\n \ | |
ret\n \ | |
"); | |
uint64_t paciza(uint64_t); | |
uint64_t autiza(uint64_t); | |
int main() { | |
uint64_t real_auth = paciza(0x414141); | |
uint64_t failed_auth = autiza(0x414141); | |
uint64_t failed_aut_resign = paciza(failed_auth); | |
NSLog(@"paciza(autiza(untagged)) = %llx, paciza(untagged) = %llx, xor = %llx", failed_aut_resign, real_auth, failed_aut_resign ^ real_auth); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment