Skip to content

Instantly share code, notes, and snippets.

View Minikea's full-sized avatar

Minikea Minikea

View GitHub Profile
@Reisyukaku
Reisyukaku / WriteSave.js
Last active May 11, 2023 16:38
Write Save
/*
* 1. Boot game
* 2. Wait a second or so (for the game tid to register but before the code mounts the savedata)
* 3. Home button
* 4. Run this script
* 5. ???
* 6. PROFIT
*/
var tid = '0000000000000000'; //Change Title ID here
@Reisyukaku
Reisyukaku / DumpSave.js
Last active May 11, 2023 16:38
Game save dumper
var tid = '0000000000000000'; //Set appropriate game TID; Need to find a way to get TID automatically...
utils.log("stage1, hijack fsppr and set perms");
sc.getFSPPR();
sc.ipcMsg(1).sendPid().data(0).sendTo('fsp-srv').assertOk();
var pid = sc.read4(sc.ipcBufAddr, 0xC >> 2);
utils.log('Got process PID: '+pid.toString(16));
var buf1_sz = 0x1C;
// Harvest t1 loc's in under 500 symbols
// Syntax: script {t: #s.some_corp.loc }
// Use with targets from ada.fullsec { npc: true }
// By nlight
function(c, a)
{
var _ = (c, p) => { c.forEach(p) }, // loop utility method
r = a.t.call({}), // first call to get method names
k = /d with ([a-z]+):/.exec(r)[1], // extract command key