├── .gitignore ├── .gitmodules ├── Makefile ├── README.md ├── assets ├── break_example.png ├── dbg_first_use.PNG ├── disas_example.PNG ├── load_kpayload_example.png ├── memread_example.png ├── memwrite_example_1.png ├── memwrite_example_2.PNG ├── pause_context.png └── setr_example.png ├── cli ├── Pipfile ├── Pipfile.lock ├── commands │ ├── breakpoint.py │ ├── commands.py │ ├── context.py │ ├── continue_exec.py │ ├── disas.py │ ├── disassembler.py │ ├── kpayload_load.py │ ├── mem_io.py │ ├── pause.py │ ├── single_step.py │ ├── stop.py │ └── utils │ │ └── hexdump.py ├── debugger.py └── yorha.py ├── include ├── breakpoint_manager.h ├── common.h ├── cpu.h ├── dbg_commands │ ├── breakpoint.h │ ├── load_kpayload.h │ ├── mem_rw.h │ ├── pause.h │ ├── set_context.h │ ├── single_step.h │ └── stop.h ├── firmware │ ├── fw900.h │ ├── fw903.h │ └── offset.h ├── intrin.h ├── kernel.h ├── machine │ ├── apic.h │ ├── idt.h │ └── intr.h ├── network.h ├── syscall_wrapper.h ├── yorha.h ├── yorha_dbg_commands.h ├── yorha_dbg_ctrl.h ├── yorha_dbg_shared_handlers.h └── yorha_dbg_trap.h ├── linker.x └── src ├── breakpoint_manager.c ├── cpu.c ├── dbg_asm_commands.s ├── dbg_commands ├── breakpoint.c ├── load_kpayload.c ├── mem_rw.c ├── set_context.c └── single_step.c ├── int.s ├── kernel.c ├── main.c ├── network.c ├── syscall_wrapper.c ├── utils.s ├── yorha.c ├── yorha_dbg_ctrl.c └── yorha_dbg_trap.c /.gitignore: -------------------------------------------------------------------------------- 1 | .vscode/ 2 | build/ 3 | *.bin* 4 | *.map 5 | __pycache__/ -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buzzer-re/YoRHa/HEAD/.gitmodules -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buzzer-re/YoRHa/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buzzer-re/YoRHa/HEAD/README.md -------------------------------------------------------------------------------- /assets/break_example.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buzzer-re/YoRHa/HEAD/assets/break_example.png -------------------------------------------------------------------------------- /assets/dbg_first_use.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buzzer-re/YoRHa/HEAD/assets/dbg_first_use.PNG -------------------------------------------------------------------------------- /assets/disas_example.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buzzer-re/YoRHa/HEAD/assets/disas_example.PNG -------------------------------------------------------------------------------- /assets/load_kpayload_example.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buzzer-re/YoRHa/HEAD/assets/load_kpayload_example.png -------------------------------------------------------------------------------- /assets/memread_example.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buzzer-re/YoRHa/HEAD/assets/memread_example.png -------------------------------------------------------------------------------- /assets/memwrite_example_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buzzer-re/YoRHa/HEAD/assets/memwrite_example_1.png -------------------------------------------------------------------------------- /assets/memwrite_example_2.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buzzer-re/YoRHa/HEAD/assets/memwrite_example_2.PNG -------------------------------------------------------------------------------- /assets/pause_context.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buzzer-re/YoRHa/HEAD/assets/pause_context.png -------------------------------------------------------------------------------- /assets/setr_example.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buzzer-re/YoRHa/HEAD/assets/setr_example.png -------------------------------------------------------------------------------- /cli/Pipfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buzzer-re/YoRHa/HEAD/cli/Pipfile -------------------------------------------------------------------------------- /cli/Pipfile.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buzzer-re/YoRHa/HEAD/cli/Pipfile.lock -------------------------------------------------------------------------------- /cli/commands/breakpoint.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buzzer-re/YoRHa/HEAD/cli/commands/breakpoint.py -------------------------------------------------------------------------------- /cli/commands/commands.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buzzer-re/YoRHa/HEAD/cli/commands/commands.py -------------------------------------------------------------------------------- /cli/commands/context.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buzzer-re/YoRHa/HEAD/cli/commands/context.py -------------------------------------------------------------------------------- /cli/commands/continue_exec.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buzzer-re/YoRHa/HEAD/cli/commands/continue_exec.py -------------------------------------------------------------------------------- /cli/commands/disas.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buzzer-re/YoRHa/HEAD/cli/commands/disas.py -------------------------------------------------------------------------------- /cli/commands/disassembler.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buzzer-re/YoRHa/HEAD/cli/commands/disassembler.py -------------------------------------------------------------------------------- /cli/commands/kpayload_load.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buzzer-re/YoRHa/HEAD/cli/commands/kpayload_load.py -------------------------------------------------------------------------------- /cli/commands/mem_io.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buzzer-re/YoRHa/HEAD/cli/commands/mem_io.py -------------------------------------------------------------------------------- /cli/commands/pause.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buzzer-re/YoRHa/HEAD/cli/commands/pause.py -------------------------------------------------------------------------------- /cli/commands/single_step.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buzzer-re/YoRHa/HEAD/cli/commands/single_step.py -------------------------------------------------------------------------------- /cli/commands/stop.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buzzer-re/YoRHa/HEAD/cli/commands/stop.py -------------------------------------------------------------------------------- /cli/commands/utils/hexdump.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buzzer-re/YoRHa/HEAD/cli/commands/utils/hexdump.py -------------------------------------------------------------------------------- /cli/debugger.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buzzer-re/YoRHa/HEAD/cli/debugger.py -------------------------------------------------------------------------------- /cli/yorha.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buzzer-re/YoRHa/HEAD/cli/yorha.py -------------------------------------------------------------------------------- /include/breakpoint_manager.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buzzer-re/YoRHa/HEAD/include/breakpoint_manager.h -------------------------------------------------------------------------------- /include/common.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buzzer-re/YoRHa/HEAD/include/common.h -------------------------------------------------------------------------------- /include/cpu.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buzzer-re/YoRHa/HEAD/include/cpu.h -------------------------------------------------------------------------------- /include/dbg_commands/breakpoint.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buzzer-re/YoRHa/HEAD/include/dbg_commands/breakpoint.h -------------------------------------------------------------------------------- /include/dbg_commands/load_kpayload.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buzzer-re/YoRHa/HEAD/include/dbg_commands/load_kpayload.h -------------------------------------------------------------------------------- /include/dbg_commands/mem_rw.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buzzer-re/YoRHa/HEAD/include/dbg_commands/mem_rw.h -------------------------------------------------------------------------------- /include/dbg_commands/pause.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buzzer-re/YoRHa/HEAD/include/dbg_commands/pause.h -------------------------------------------------------------------------------- /include/dbg_commands/set_context.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buzzer-re/YoRHa/HEAD/include/dbg_commands/set_context.h -------------------------------------------------------------------------------- /include/dbg_commands/single_step.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buzzer-re/YoRHa/HEAD/include/dbg_commands/single_step.h -------------------------------------------------------------------------------- /include/dbg_commands/stop.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buzzer-re/YoRHa/HEAD/include/dbg_commands/stop.h -------------------------------------------------------------------------------- /include/firmware/fw900.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buzzer-re/YoRHa/HEAD/include/firmware/fw900.h -------------------------------------------------------------------------------- /include/firmware/fw903.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buzzer-re/YoRHa/HEAD/include/firmware/fw903.h -------------------------------------------------------------------------------- /include/firmware/offset.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buzzer-re/YoRHa/HEAD/include/firmware/offset.h -------------------------------------------------------------------------------- /include/intrin.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buzzer-re/YoRHa/HEAD/include/intrin.h -------------------------------------------------------------------------------- /include/kernel.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buzzer-re/YoRHa/HEAD/include/kernel.h -------------------------------------------------------------------------------- /include/machine/apic.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buzzer-re/YoRHa/HEAD/include/machine/apic.h -------------------------------------------------------------------------------- /include/machine/idt.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buzzer-re/YoRHa/HEAD/include/machine/idt.h -------------------------------------------------------------------------------- /include/machine/intr.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buzzer-re/YoRHa/HEAD/include/machine/intr.h -------------------------------------------------------------------------------- /include/network.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buzzer-re/YoRHa/HEAD/include/network.h -------------------------------------------------------------------------------- /include/syscall_wrapper.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buzzer-re/YoRHa/HEAD/include/syscall_wrapper.h -------------------------------------------------------------------------------- /include/yorha.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buzzer-re/YoRHa/HEAD/include/yorha.h -------------------------------------------------------------------------------- /include/yorha_dbg_commands.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buzzer-re/YoRHa/HEAD/include/yorha_dbg_commands.h -------------------------------------------------------------------------------- /include/yorha_dbg_ctrl.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buzzer-re/YoRHa/HEAD/include/yorha_dbg_ctrl.h -------------------------------------------------------------------------------- /include/yorha_dbg_shared_handlers.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buzzer-re/YoRHa/HEAD/include/yorha_dbg_shared_handlers.h -------------------------------------------------------------------------------- /include/yorha_dbg_trap.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buzzer-re/YoRHa/HEAD/include/yorha_dbg_trap.h -------------------------------------------------------------------------------- /linker.x: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buzzer-re/YoRHa/HEAD/linker.x -------------------------------------------------------------------------------- /src/breakpoint_manager.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buzzer-re/YoRHa/HEAD/src/breakpoint_manager.c -------------------------------------------------------------------------------- /src/cpu.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buzzer-re/YoRHa/HEAD/src/cpu.c -------------------------------------------------------------------------------- /src/dbg_asm_commands.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buzzer-re/YoRHa/HEAD/src/dbg_asm_commands.s -------------------------------------------------------------------------------- /src/dbg_commands/breakpoint.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buzzer-re/YoRHa/HEAD/src/dbg_commands/breakpoint.c -------------------------------------------------------------------------------- /src/dbg_commands/load_kpayload.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buzzer-re/YoRHa/HEAD/src/dbg_commands/load_kpayload.c -------------------------------------------------------------------------------- /src/dbg_commands/mem_rw.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buzzer-re/YoRHa/HEAD/src/dbg_commands/mem_rw.c -------------------------------------------------------------------------------- /src/dbg_commands/set_context.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buzzer-re/YoRHa/HEAD/src/dbg_commands/set_context.c -------------------------------------------------------------------------------- /src/dbg_commands/single_step.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buzzer-re/YoRHa/HEAD/src/dbg_commands/single_step.c -------------------------------------------------------------------------------- /src/int.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buzzer-re/YoRHa/HEAD/src/int.s -------------------------------------------------------------------------------- /src/kernel.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buzzer-re/YoRHa/HEAD/src/kernel.c -------------------------------------------------------------------------------- /src/main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buzzer-re/YoRHa/HEAD/src/main.c -------------------------------------------------------------------------------- /src/network.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buzzer-re/YoRHa/HEAD/src/network.c -------------------------------------------------------------------------------- /src/syscall_wrapper.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buzzer-re/YoRHa/HEAD/src/syscall_wrapper.c -------------------------------------------------------------------------------- /src/utils.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buzzer-re/YoRHa/HEAD/src/utils.s -------------------------------------------------------------------------------- /src/yorha.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buzzer-re/YoRHa/HEAD/src/yorha.c -------------------------------------------------------------------------------- /src/yorha_dbg_ctrl.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buzzer-re/YoRHa/HEAD/src/yorha_dbg_ctrl.c -------------------------------------------------------------------------------- /src/yorha_dbg_trap.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buzzer-re/YoRHa/HEAD/src/yorha_dbg_trap.c --------------------------------------------------------------------------------