Skip to content

Instantly share code, notes, and snippets.

View gabe-k's full-sized avatar

Gabe Kirkpatrick gabe-k

View GitHub Profile
@gabe-k
gabe-k / label_syscalls.py
Created January 29, 2018 05:03
IDAPython script to label Switch syscalls
# based on info from switchbrew and reswitched
from idaapi import *
from idc import *
syscall_map = {
0x01: "svcSetHeapSize",
0x02: "svcSetMemoryPermission",
0x03: "svcSetMemoryAttribute",
0x04: "svcMapMemory",
0x05: "svcUnmapMemory",