Advertisement
xerpi

SceMsif Memory card authentication

Jun 20th, 2018
293
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2.  * Memory Card initialization. Uses custom TPCs 0x48, 0x49 and 0x4A.
  3.  * 3.60 Kernel
  4.  * int ms_write_short_data(SceMsif_subctx *subctx, int cmd, u32 size, const void *buff, u32 timeout); @ SceMsif .text offset 0x23A8
  5.  * int ms_read_short_data(SceMsif_subctx *subctx, int cmd, u32 size, void *buff, u32 timeout); @ SceMsif .text offset 0x2448
  6.  */
  7.  
  8. ms_write_short_data(0x00afe840, 0x48, 0x20, 0x016fae14, 1000)
  9. 67 41 D4 38 06 6F 7D F7 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  10. ms_read_short_data(0x00afe840, 0x49, 0x40, 0x016fae14, 1000)
  11. 56 4D 53 50 53 4E 59 30 00 62 F0 00 00 30 DF 4C 00 00 00 00 00 00 00 20 B8 29 44 C7 4A CD 35 01 D1 87 AC E7 0C 7E B8 F1 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  12. ms_write_short_data(0x00afe840, 0x4A, 0x20, 0x016fae14, 1000)
  13. D9 D3 7B 21 0F 7B D2 48 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  14.  
  15. ms_write_short_data(0x00afe840, 0x48, 0x20, 0x016fae14, 1000)
  16. 5A 1B EC B2 D6 53 B1 D8 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  17. ms_read_short_data(0x00afe840, 0x49, 0x40, 0x016fae14, 1000)
  18. 56 4D 53 50 53 4E 59 30 00 62 F0 00 00 30 DF 4C 00 00 00 00 00 00 00 20 7F EA 59 4E 56 D6 56 E5 61 2C B7 31 7C D5 86 6B 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  19. ms_write_short_data(0x00afe840, 0x4A, 0x20, 0x016fae14, 1000)
  20. FE B2 56 77 B0 56 A9 60 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  21.  
  22. ms_write_short_data(0x00afe840, 0x48, 0x20, 0x016fae14, 1000)
  23. 0B 5C B9 9B 02 77 19 75 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  24. ms_read_short_data(0x00afe840, 0x49, 0x40, 0x016fae14, 1000)
  25. 56 4D 53 50 53 4E 59 30 00 62 F0 00 00 30 DF 4C 00 00 00 00 00 00 00 20 9E A7 24 82 6D EF CF 21 D9 2F AD FC D6 DC 05 2B 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  26. ms_write_short_data(0x00afe840, 0x4A, 0x20, 0x016fae14, 1000)
  27. AC AD 65 FC 1D 70 B2 48 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  28.  
  29. ms_write_short_data(0x00afe840, 0x48, 0x20, 0x016fae14, 1000)
  30. E2 7D F2 5E 4A D2 85 EB 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  31. ms_read_short_data(0x00afe840, 0x49, 0x40, 0x016fae14, 1000)
  32. 56 4D 53 50 53 4E 59 30 00 62 F0 00 00 30 DF 4C 00 00 00 00 00 00 00 20 C0 AE 93 02 46 B2 99 21 14 44 E3 35 5C 47 CB AB 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  33. ms_write_short_data(0x00afe840, 0x4A, 0x20, 0x016fae14, 1000)
  34. AB 87 32 6D E9 8E E6 6D 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  35.  
  36. ms_write_short_data(0x00afe840, 0x48, 0x20, 0x016fae14, 1000)
  37. CA 56 C8 75 F1 6A 88 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  38. ms_read_short_data(0x00afe840, 0x49, 0x40, 0x016fae14, 1000)
  39. 56 4D 53 50 53 4E 59 30 00 62 F0 00 00 30 DF 4C 00 00 00 00 00 00 00 20 0C EC BA C3 DB 96 F2 88 DF AB 0E E2 45 0B EB 71 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  40. ms_write_short_data(0x00afe840, 0x4A, 0x20, 0x016fae14, 1000)
  41. 75 BB 41 12 40 ED 4E 46 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  42.  
  43. ms_write_short_data(0x00afe840, 0x48, 0x20, 0x016fae14, 1000)
  44. 0F 80 09 3C D8 34 A4 C6 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  45. ms_read_short_data(0x00afe840, 0x49, 0x40, 0x016fae14, 1000)
  46. 56 4D 53 50 53 4E 59 30 00 62 F0 00 00 30 DF 4C 00 00 00 00 00 00 00 20 09 86 CC 1C B7 20 D3 1C 86 FA AA 5B EC 74 AF BE 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  47. ms_write_short_data(0x00afe840, 0x4A, 0x20, 0x016fae14, 1000)
  48. D2 59 0F AC FA 46 27 0E 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement