Skip to content

Instantly share code, notes, and snippets.

delete this feature

ave aveao

delete this feature
View GitHub Profile
C-D-Lewis / get-sdks.js
Created Dec 11, 2016
Download all Pebble SDK core packages
View get-sdks.js
var request = require('request');
var https = require('https');
var fs = require('fs');
var URL = '';
var OUTPUT_DIR = './sdks';
notro / fbcp
Created Feb 11, 2015
View fbcp
# Provides: fbcp
# Required-Start: $local_fs $remote_fs
# Required-Stop: $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Framebuffer copy daemon fb0->fb1
# Author: Noralf Tronnes <>
View cloudflare-family-tranco-censored

The following is a write-up of how I initially achieved kernel code execution on the Nintendo Switch, very much inspired by hexkyz's write-ups. The work discussed was completed over the course of a single conversation between hthh and I during the evening of November 21st, 2017. A number of snippets are attached from that conversation as inline links, in the hopes that they'll be interesting to readers.

Background information

I would recommend one read hexkyz's recent write-up on how the switch was broken into via GPU DMA attacks. It's a great read!

In particular, he describes:

Additionally, the kernel itself would start allocating memory outside of the carveout region
ckurtz22 /
Last active Mar 12, 2022
Script to resize an emuMMC image for the Nintendo Switch.
import sys
import os
import math
import uuid
import struct
import configparser
from struct import unpack, pack
from binascii import crc32
if len(sys.argv) > 4 or len(sys.argv) < 2:

Trashing the Vodafone Station

How to replace the Vodafone Station with your very own router

Vodafone forces its customers to use their modem/router, the "Vodafone Station": using any other router is impossible because authentication is being done via a custom PPPoE setup.
In the PPPoE packet there is a field named Host-Uniq which is used to separate packets from different PPPoE sessions: Vodafone requires the Station serial number to be put in this field as authentication.

Hardware setup

A Linux router with root access is needed to replace the Station with. With an xDSL connection a modem with a custom firmware like OpenWrt has to be used, most likely one based on a Lantiq SoC.
For a FTTH internet connection then every machine with at least two gigabit ethernet interface and a decent CPU will do it.

anonymous / GAME_MASTER_v0_1.protobuf
Created Jul 16, 2016
Pokemon Go decoded GAME_MASTER protobuf file v0.1
View GAME_MASTER_v0_1.protobuf
Result: 1
Items {
Badge {
BadgeRanks: 4
Targets: "\nd\350\007"
Items {
jamiew / google_twunter_lol
Created Jul 28, 2011
All the dirty words from Google's "what do you love" project:
View google_twunter_lol
gretel /
Last active May 14, 2022
query, read, encode (using amiitool), write and lock NTAG215 (using uFR Nano hardware) for the purpose of researching Nintendo's Amiibo infrastructure Raw
# This is a companion script to
# The original post this was crafted for was
# For more info go to
#sha1sum (part of coreutils)
#xxd (part of vim)
#amiitool (