Skip to content

Instantly share code, notes, and snippets.

View hax0kartik's full-sized avatar

Kartik hax0kartik

View GitHub Profile
// ==UserScript==
// @name Remove blur event
// @version 0.1
// @description Remove all blur events
// @author unknown
// @match **
// @grant none
// ==/UserScript==
window.addEventListener("blur", function(event) {
@hax0kartik
hax0kartik / objs.md
Last active December 28, 2022 12:10
[Super Mario 3D Land] Objects for object table at 0x3B99F0 sorted by size and the idapython script used to generate it.
Name Mangled Name Size Addr
AppearStep _ZN2al19createActorFunctionI10AppearStepEEPNS_9LiveActorEPKc 96 0x00395D3C
Candlestand _ZN2al19createActorFunctionI11CandlestandEEPNS_9LiveActorEPKc 96 0x00396324
CandlestandFire _ZN2al19createActorFunctionI15CandlestandFireEEPNS_9LiveActorEPKc 96 0x0039705C
CourseSelectObj _ZN2al19createActorFunctionI15CourseSelectObjEEPNS_9LiveActorEPKc 96 0x00397094
RestartObj _ZN2al19createActorFunctionI10RestartObjEEPNS_9LiveActorEPKc 96 0x003960F4
TransparentWall _ZN2al19createActorFunctionI15TransparentWallEEPNS_9LiveActorEPKc 96 0x00397404
al::FixMapParts _ZN2al19createActorFunctionINS_11FixMapPartsEEEPNS_9LiveActorEPKc 96 0x00396404
al::RollingReflectMapParts _ZN2al19createActorFunctionINS_22RollingReflectMapPartsEEEPNS_9LiveActorEPKc 96 0x00397D84
@hax0kartik
hax0kartik / SendSyncRequestPatch.cpp
Created January 28, 2022 18:23
Patch to disable ZL/ZR/Cnub via luma
/* Disable CNUB */
case 0x150080:
{
SessionInfo *info = SessionInfo_Lookup(clientSession->parentSession);
if(info != NULL && strcmp(info->name, "i2c::IR") == 0){
skip = true;
res = SendSyncRequest(handle);
if(res == 0)
{
u32 *staticbuf = (u32 *)((u8 *)currentCoreContext->objectContext.currentThread->threadLocalStorage + 0x180);
/* This function runs once */
void setup()
{
/* initialize serial communication at 9600 bits per second */
Serial.begin(9600);
}
/* This function runs over and over*/
void loop()
{
(PID0[fs]) CreateThread: 25 1
(PID0[fs]) CreateThread: 25 1
(PID0[fs]) CreateThread: 25 1
(PID0[fs]) CreateThread: 25 1
(PID4[pxi]) CreateThread: 45 -2
(PID4[pxi]) CreateThread: 45 -2
(PID4[pxi]) CreateThread: 45 -2
(PID2[pm]) CreateThread: 23 -2
(PID2[pm]) CreateThread: 23 -2
(PID10[i2c]) CreateThread: 11 -2
‎‎​
{"lastUpload":"2020-03-17T09:44:57.656Z","extensionVersion":"v3.4.3"}
@hax0kartik
hax0kartik / export_symbol.idc
Last active September 5, 2024 15:05
Export symbols from IDA to a ghidra importable symbol file
#include <idc.idc>
static FuncDump(f, start)
{
auto ea, str, count, ref;
auto end;
auto teststr;
ea = start;
@hax0kartik
hax0kartik / sample.py
Created July 22, 2018 12:28
FRD service example
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <3ds.h>
int main()
{
gfxInitDefault(); // Init graphic stuff
consoleInit(GFX_TOP, NULL);
@hax0kartik
hax0kartik / main.c
Last active April 7, 2018 03:05
Code to get the pointers required for firmlaunchhax
#include <3ds.h>
#include <stdio.h>
#include "csvc.h"
#define PA_PTR(addr) (void *)((u32)(addr) | 1 << 31)
int main()
{
gfxInitDefault();
consoleInit(GFX_TOP, NULL);