Skip to content

Instantly share code, notes, and snippets.

View ndeadly's full-sized avatar

ndeadly

  • Germany
  • 18:02 (UTC +01:00)
View GitHub Profile
@ndeadly
ndeadly / switch2_input_viewer.py
Last active November 6, 2025 14:57
A python script for connecting Nintendo Switch 2 controllers, viewing their input data and sending commands to the controller
import os
import sys
import time
import struct
import asyncio
import platform
import pickle
from bleak import BleakScanner, BleakClient
from PyQt5 import QtCore, QtGui, QtWidgets
@ndeadly
ndeadly / fix_noreturn_funcs.py
Created November 8, 2024 10:27
IDA script to automate locating nn::diag::detail::VAbortImpl and nn::detail::UnexpectedDefaultImpl functions and marking them __noreturn
import ida_funcs
import ida_search
import ida_auto
import idautils
# Find the bounds of the program
segments = list(idautils.Segments())
MODULE_START_ADDR = min(segments)
MODULE_END_ADDR = get_segm_end(max(segments))
@ndeadly
ndeadly / dump_brcm_patchram.py
Created November 5, 2024 21:32
IDA script for dumping the broadcom patchram data from the bluetooth module of Nintendo Switch firmware
import os
import ida_funcs
import ida_search
import idautils
BASE_ADDR = 0x7100000000
def search_imm(value):
@ndeadly
ndeadly / homebrew_sysmodules.txt
Last active December 5, 2025 21:36
Title IDs for Nintendo Switch sysmodules and system applets
/* Homebrew sysmodules */
0000000000534C56 SaltyNX
00FF0000000002AA BootSoundNX
00FF0000636C6BF2 nx-reader
00FF0000636C6BFF sys-clk
00FF00006D7470FF mtp-server-nx
00FF0000A53BB665 SysDVR
00FF747765616BFF switch-sys-tweak
0100000000000052 switch-nfp-mitm
0100000000000081 nx-btred