Skip to content

Instantly share code, notes, and snippets.

@Halo-Michael
Created October 27, 2020 08:17
Show Gist options
  • Save Halo-Michael/9ad1432a673f4a260910cc9dc2e3d611 to your computer and use it in GitHub Desktop.
Save Halo-Michael/9ad1432a673f4a260910cc9dc2e3d611 to your computer and use it in GitHub Desktop.
#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