Skip to content

Instantly share code, notes, and snippets.

View roblabla's full-sized avatar
🌅
Kernel Dev'ing.

Robin Lambertz roblabla

🌅
Kernel Dev'ing.
View GitHub Profile
@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 ?

This file has been truncated, but you can view the full file.
#define UNLOADED_FILE 1
#include <idc.idc>
static main(void)
{
// set 'loading idc file' mode
set_inf_attr(INF_GENFLAGS, INFFL_LOADIDC|get_inf_attr(INF_GENFLAGS));
GenInfo(); // various settings
Segments(); // segmentation
Enums(); // enumerations
@roblabla
roblabla / switch
Last active January 22, 2023 14:46
#------------------------------------------------------------------------------
# Nintendo Switch File Formats
# Type: Nintendo Switch "NCA" file. (application container)
# From: roblabla <unfiltered@roblab.la>
# Reference: https://switchbrew.org/index.php/NCA_Format
0x3f0 string \x29\x36\x99\x60\xe9\x76\x59\xcc\x05\x49\xf7\x39\xee\x6e\xc9\xe5 Nintendo Switch NCA Container
# Type: Nintendo Switch "NSO" file. (executable)
# From: roblabla <unfiltered@roblab.la>
@roblabla
roblabla / Notes.md
Last active September 25, 2021 01:36
Notes about Dashlane

Login

Dashlane supports three methods of login :

  • UKI : Provide a previously-given unique-key-identifier as the uki parameter. TODO : How do we get UKIs ?
  • Token : Provide a (not-completely) one-time token as the "token" parameter. To generate a token, send a request to /6/authentication/sendtoken with login=email
  • OTP : Probably for Google Authenticator.
QWidget {
background-color: #363636;
color: #ddd;
}
QCheckBox {
background-color: rgba(0, 0, 0, 0);
}
QTextEdit {
- name: TMATE DEBUGGING
run: |
pacman -Sy --noconfirm tmate mingw-w64-x86_64-jq
mkdir $HOME/.ssh
# echo -e 'y\n' | ssh-keygen -q -t rsa -N "" -f $HOME/.ssh/id_rsa
tmate -S /tmp/tmate.sock new-session -d
tmate -S /tmp/tmate.sock wait tmate-ready
TOKEN=$(basename $(tmate -S /tmp/tmate.sock display -p '#{tmate_web}'))
SSH_SESSION=$(tmate -S /tmp/tmate.sock display -p '#{tmate_ssh}')
while true; do
#!/usr/bin/env python
VERBOSE = False
import os
import subprocess
import shutil
import errno
import hashlib
import base64
try:
from prompt_toolkit import print_formatted_text
from prompt_toolkit.formatted_text import FormattedText
except:
pass
def iterm2_status(status):
return "\033]133;D;{}\007".format(status)
{
// Disable admin for test
"admin": {
"disabled": true
},
"apps": {
"http": {
// Use http to avoid having to provision an ssl cert
"http_port": 4444,
"servers": {
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, ... }:
let
nixpkgs = import <nixpkgs> {};
hydra = nixpkgs.fetchgit {
url = https://github.com/NixOS/hydra;