Skip to content

Instantly share code, notes, and snippets.

@helsaba
helsaba / 0-SD-GUIDE.md
Created June 20, 2018 18:44 — forked from khang06/0-SD-GUIDE.md
Switch SD Dumping 101

This guide assumes you have previous experience with hactool and messing with your NAND. You aren't supposed to blindly copy commands in this, so read before pasting!

Also, the Python sections require Python 2.7 and pycrypto.

Obtaining Your SD Seed

  1. Open sd:/Nintendo/contents/private in a hex editor.
  2. Copy the hex representation of it and put it somewhere for later.
  3. Mount your NAND's SYSTEM partition.
  4. Open /save/8000000000000043 in a hex editor.
-------------sortingUa.php-------------
<?php
/**
* スマートフォンかどうかを振り分ける簡易的なクラスです。
*
* @package sortingUa
* @author shobotch
* @sinse PHP 5.3.8
* @version 1.0.0
*/
<?php
// PHP 移植バージョン。こっちはもっとデバッグしてないバージョンです。
// @re4k 2012/10/11
class TwitterDevelopers
{
private $cookie;
private $boundary = "re4kboundary";
private $user_agent = "Mozilla/5.0 (X11; Linux x86_64; rv:18.0) Gecko/18.0 Firefox/18.0 FirePHP/0.7.1";
private function request($uri, $type = "GET", $data)
<?php
// sweeper.php - public domain
// まずは試しに ..../sweeper.php?debug=1で実行してください
$sweep_dir = "/tmp/data/"; // 消したいディレクトリ ex) "/tmp/data/" 最後の/は必須です
$expire_at = 30; // ファイルを保存する日数を設定します
$debug = array_key_exists('debug', $_GET);
date_default_timezone_set('Asia/Tokyo');
$num = sweep_files($sweep_dir, $expire_at ,$debug);