Advertisement
Guest User

Room Message Spoofer (Host Only)

a guest
Aug 17th, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Room Message Spoofer (Host Only)
  2.  
  3. This code will spoof the messages you send in a private room.
  4.  
  5. (NTSC-U)
  6. C2656A38 00000007
  7. 9421FFB0 BDC10008
  8. 3DC08000 61CE1654
  9. 988E0000 89CE0000
  10. 3C80MM00 6084PP00
  11. 7C847214 9083000C
  12. B9C10008 38210050
  13. 60000000 00000000
  14.  
  15. (PAL)
  16. C265AEC0 00000007
  17. 9421FFB0 BDC10008
  18. 3DC08000 61CE1654
  19. 988E0000 89CE0000
  20. 3C80MM00 6084PP00
  21. 7C847214 9083000C
  22. B9C10008 38210050
  23. 60000000 00000000
  24.  
  25. (NTSC-J)
  26. C265A52C 00000007
  27. 9421FFB0 BDC10008
  28. 3DC08000 61CE1654
  29. 988E0000 89CE0000
  30. 3C80MM00 6084PP00
  31. 7C847214 9083000C
  32. B9C10008 38210050
  33. 60000000 00000000
  34.  
  35. (NTSC-K)
  36. C26491D8 00000007
  37. 9421FFB0 BDC10008
  38. 3DC08000 61CE1654
  39. 988E0000 89CE0000
  40. 3C80MM00 6084PP00
  41. 7C847214 9083000C
  42. B9C10008 38210050
  43. 60000000 00000000
  44.  
  45. [MM Values]
  46. 01 = Start an Event
  47. # [PP Values]
  48. # 00 = VS Race
  49. # 01 = Team VS Race
  50. # 02 = Ballon Battle
  51. # 03 = Coin Runners
  52.  
  53. 02 = "Player and I are friends now!" Message
  54. # [PP Value]
  55. # 00
  56.  
  57. 03 = "Here I am!" Message
  58. # [PP Value]
  59. # 00
  60.  
  61. 04 = Send a Room Message
  62. # [PP Values]
  63. # 00 = Hello!
  64. # ...
  65. # 5F = See you next time!
  66.  
  67.  
  68.  
  69. #####################################################
  70. # Source
  71. #####################################################
  72. # r3 = ROOM Record Address
  73. # r4 = ROOM Record
  74. #####################################################
  75. # r14 = ROOM Record Sequence Count
  76. #####################################################
  77.  
  78. #####################################################
  79. # 8065A52C (NTSC-J) : 9083000C stw r4, 12(r3)
  80. #####################################################
  81.  
  82. stwu r1, -80(r1) # Make space for 18 registers
  83. stmw r14, 8(r1) # Push r14-r31 onto the stack
  84.  
  85. lis r14, 0x8000 # Set the higher 16 bits of r14 (ROOM Record Sequence Count) to 0x8000
  86. ori r14, r14, 0x1654 # Set the lower 16 bits of r14 (ROOM Record Sequence Count) to 0x1654
  87.  
  88. # typedef struct udp_room_t
  89. # {
  90. # /*00*/ u8 mode; // Record Mode: 1|2|3|4
  91. # /*01*/ u8 unknown_01; // Always 0x00
  92. # /*02*/ u8 param1; // Context dependent on mode
  93. # /*03*/ u8 sequence_counter; // Increments by 1 for each message sent
  94. #
  95. # // mode == 0x01 : Start an event
  96. # // param1 = Event type : 0x00 == VS Race, 0x01 == Team VS Race, 0x02 == Balloon Battle, 0x03 == Coin Runners
  97. #
  98. # // mode == 0x02 : "Player and I are friends now!" message
  99. # // param1 = 0x00
  100. #
  101. # // mode == 0x03 : "Here I am!" message
  102. # // param1 = 0x00
  103. #
  104. # // mode == 0x04 : Send a room message
  105. # // param1 = Message ID : 00 == Hello! ... 5F == See you next time!
  106. # }
  107. # // Source: http://wiki.tockdom.com/wiki/MKWii_Netwo...tocol/ROOM
  108.  
  109. stb r4, 0(r14) # Store the byte in r4 (Current Sequence Count) to the address in r14
  110. lbz r14, 0(r14) # Load the byte at the address in r14 (Current Sequence Count) and store it in r14
  111.  
  112. lis r4, 0xMM00 # Set the higher 16 bits of r4 (ROOM Record) to 0xMM00
  113. ori r4, r4, 0xPP00 # Set the lower 16 bits of r4 (ROOM Record) to 0xPP00
  114.  
  115. add r4, r4, r14 # Add the value in r14 to the value in r4, and store the result in r4
  116. stw r4, 12(r3) # Store the word in r4 to the address in r3 offset by 12
  117.  
  118. lmw r14, 8(r1) # Pop r14-r31 off the stack
  119. addi r1, r1, 80 # Release the space
  120.  
  121.  
  122.  
  123. Code Creator: Star
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement