Skip to content

Instantly share code, notes, and snippets.

@nicoboss
nicoboss / Nintendo_Switch_full_keyset_1.0.0-4.1.0_sha256
Last active February 9, 2023 14:54
Nintendo Switch full keyset from firmware 1.0.0-4.1.0 binary hashed using sha256 by using digestpp::sha256().absorb(hex2ascii("")).hexdigest()
Leaked Keys:
============
sha256(master_key_00) = 0EE359BE3C864BB0782E1D70A718A0342C551EED28C369754F9C4F691BECF7CA
sha256(master_key_01) = 4FE707B7E4ABDAF727C894AAF13B1351BFE2AC90D875F73B2E20FA94B9CC661E
sha256(master_key_02) = 79277C0237A2252EC3DFAC1F7C359C2B3D121E9DB15BB9AB4C2B4408D2F3AE09
sha256(master_key_03) = 4F36C565D13325F65EE134073C6A578FFCB0008E02D69400836844EAB7432754
sha256(package1_key_00) = 4543CD1B7CAD7EE0466A3DE2086A0EF923805DCEA6C741541CDDB14F54F97B40
sha256(package1_key_01) = 4A11DA019D26470C9B805F1721364830DC0096DD66EAC453B0D14455E5AF5CF8
sha256(package1_key_02) = CCA867360B3318246FBF0B8A86473176ED486DFE229772B941A02E84D50A3155
@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;
@roblabla
roblabla / HABILITIES.md
Last active March 14, 2024 03:24
We believe in your habilities.

Muh Switch Keys

So you want to decrypt switch content ? Well, the good news is that all the tools required to do that are written up! The great news is, since this is crypto we're talking about, you'll have to find the keys. Yourself. Like it's easter.

So here you can find a template of the $HOME/.switch/prod.keys file that hactool uses to decrypt content. It contains all the SHA256 and location of the keys and seeds, so you can find them yourselves.

Note that all the seeds (the keys that end with _source) are used along with the master_key_## to derive an actual key. If you have somehow obtained the key without the seed, you can rename xxx_source to xxx_## (where ## is the master key number) and put your key there.

How the heck do I obtain dem keys ?

@ScottKillen
ScottKillen / Tinker's Construct Materials.md
Last active November 4, 2023 21:51
Tinkers' Construct Material Stats and Traits

Tinker's Construct Materials

Material Stats

Material Head Durability Extra Durability Handle Durability Handle Modifer Mining Level Mining Speed Attack Value Head Traits Extra/Handle Traits Drawspeed Range Multiplier Bonus Damage Arrow Shaft Modifier Bonus Ammo
Paper 12.00 15.00 5.00 0.10 Stone 0.51 0.05 Writable Writable 0.67 0.40 -2.00
Constantan 25.00 6 6 0.80 Diamond 4.70 4.00 Thermal Inversion Thermal Inversion 1.82 1.50 5.00
Treated Wood 25.00 2 35.00 1.00 Stone 2.00 2.00 Ecological Ecological 1.00 1.12 1.20
Wood 35.00 15.00 25.00 1.00 Stone 2.00 2.00 Ecological Eco
@benkulbertis
benkulbertis / cloudflare-update-record.sh
Last active July 3, 2024 12:39
Cloudflare API v4 Dynamic DNS Update in Bash
#!/bin/bash
# CHANGE THESE
auth_email="user@example.com"
auth_key="c2547eb745079dac9320b638f5e225cf483cc5cfdda41" # found in cloudflare account settings
zone_name="example.com"
record_name="www.example.com"
# MAYBE CHANGE THESE
ip=$(curl -s http://ipv4.icanhazip.com)
@amcgregor
amcgregor / 1-wtf.md
Last active October 25, 2020 21:01
What happens on the internet, lives forever. Especially casual outrageous behaviour in an official support channel on IRC. Hold your drinks, what unfolds is as amusing as it is sad.

IRC is a beautiful place, filled with beautiful people. João Francisco Fragão Rocha Marques (xsrtsect_ in the log) joined the #LaTeX (typesetting software) support channel on IRC, posted his CV (the pastebin link from the log, replicated below as 4-paste.tex), asked a vague question, then disqualified himself from gaining assistance from anyone around to witness his stupidity.

When I fully realized its depths, I nearly expelled tea via my sinus.

So, anyone looking to hire this fellow, expect uncontrolled outbursts unless directly supervised.

package de.zh32.slp;
import com.google.gson.Gson;
import java.io.ByteArrayOutputStream;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
@larrybolt
larrybolt / cf-ddns.sh
Last active June 16, 2024 19:06
Automatically update your CloudFlare DNS record to the IP, Dynamic DNS for Cloudflare
#!/usr/bin/env bash
set -o errexit
set -o nounset
set -o pipefail
# Automatically update your CloudFlare DNS record to the IP, Dynamic DNS
# Can retrieve cloudflare Domain id and list zone's, because, lazy
# Place at:
# /usr/local/bin/cf-ddns.sh