Skip to content

Instantly share code, notes, and snippets.

View vgmoose's full-sized avatar
🌱
making my way downtown, walking fast

vgmoose vgmoose

🌱
making my way downtown, walking fast
View GitHub Profile

The below instructions describe the process for MITM'ing a target device over HTTPS using nginx. It tries to go over every aspect of intercepting traffic, including hosting a Wifi access point.

Overview

The goal is to get a target device (such as an iPhone, Wii U, or another computer) to trust our local nginx server instead of the remote trusted server. This is going to be done by importing a custom CA root certificate on the target that corresponds with the nginx server's certificate.

Client (Trusted Device) <--> MITM Server (nginx) <--> Remote (Trusted) Server

Requirements

These instructions are being performed on a PureOS machine, which is Debian based. They should also work in other environments with slight modifications

notice: Wii U linux is not production ready! Proceed at your own risk. Written on 2/3/18

Quarktheawesome and rw-r-r_0644 have released an early version of Linux for Wii U!

Source code

The PowerPC side of the Wii U requires a custom linux kernel, which can be found here. The ARM side of the Wii U requires a custom fw.img file to load that kernel, which can be found here.

Once the kernel is up and running, the first repo is configured to automatically try to load programs from /dev/sda1 in an inserted usb. The first partition of an ext4 USB stick should contain a root filesystem for a linux distribution. See here for more information on a prebuilt PowerPC image

Notice

@vgmoose
vgmoose / a_readme.md
Last active February 5, 2024 06:23
Yet another How to Create a Windows 11 Install USB from Ubuntu Linux or Mac

Creating a Windows 11 Install USB in 2022

I have been installing Windows for a long time. Does it get easier? I want to say it gets easier, but it seems like there's always some new wrinkle! These instructions are as much a note to my future self as they may be useful to anyone else.

For me, I was not able to get any exfat-based installs, or even any of the GUI helpers to make this process any more straightforward. Maybe on your target Windows / host OS those helpers will work, but the below process (as of current year) is consistent, and not overly complicated.

Overview:

  1. Downloading an official ISO image from MS:
  2. Formatting the drive (at least 8GB) as GPT, and one FAT-format partition (aka MS-DOS)
@vgmoose
vgmoose / pull_all_apks.py
Created January 16, 2024 01:32
Python script to pull all APKs from non-rooted android device, using adb shell commands
import os
list_pkgs_cmd = "adb shell pm list packages"
list_pkgs = os.popen(list_pkgs_cmd).read().splitlines()
list_pkgs = [pkg.split(":")[1] for pkg in list_pkgs]
for pkg in list_pkgs:
path_cmd = "adb shell pm path {}".format(pkg)
path = os.popen(path_cmd).read().splitlines()[0].split(":")[1]
pull_cmd = "adb pull {} {}".format(path, pkg + ".apk")
@vgmoose
vgmoose / twitter-to-nitter.md
Last active December 29, 2023 03:13
How to set up a Twitter.com to Nitter.net redirecting via MITM with nginx, local dns server (pihole) and self-signed and self-trusted cert and root CA

What is this?

If you run a local DNS server on your network already (such as a Pi-hole), you can use these instructions to set up an HTTPS redirect for certain sites/domains to other ones. This is particularly useful, for instance, if you don't want to visit Twitter anymore but still occasionally want to automatically view content on it through Nitter.

This can be more easily accomplished via browser extensions, but this method is an option to get it on all devices on the network, as long as you trust the cert.

Is this a bad idea security wise? Probably! But if you want to try it, here you go:

Requirements

Update for 2023 (Nov 17):

As of writing, there is no modern good solution for Wii U's that can't use the SD card. Some of the below information may still apply, depending on your specific scenario and use-case.

For modern feature requests or support in this area, for Aroma, please visit the Aroma Discord.

Original Doc (Outdated):

SD-less Wii U

Here's a quick writeup of the state of the Wii U scene for SD-less users, or users who have their SD card slot broken.

@vgmoose
vgmoose / chatgpt.py
Last active October 29, 2023 20:41
ChatGPT example for openAI using the terminal and python directly, and their new API
#!/usr/bin/env python
import requests
# replace with API key from https://platform.openai.com/account/api-keys
API_KEY = "YOUR API KEY HERE"
TONE = "friendly"
BOT_NAME = "AI"
YOUR_NAME = "Human"
@vgmoose
vgmoose / a_redblueslow.md
Last active September 19, 2023 02:51
Pokémon Red and Blue ROM Patches with Slowed Down Music

These are patches for Red/Blue that are built with their music tempo slowed down 2x and 4x. This is done by changing this line in the decompilation (to HIGH(\1 * 2), LOW(\1 * 2) or HIGH(\1 * 4), LOW(\1) * 4).

This creates a slightly better experience if you use 2x or 4x speed up / fast forwarding in an emulator, so that the sound isn't just a cacophony of sped up noises. It's not perfect though!

Downloads

@vgmoose
vgmoose / uwu_repo.js
Created April 1, 2023 06:28
node uwu_repo.js
import Uwuifier from 'uwuifier';
import fs from 'fs';
const uwuifier = new Uwuifier();
for (var platform of ["switch", "wiiu"]) {
let pkgData = await fetch(`https://${platform}.cdn.fortheusers.org/repo.json`);
var packages = await pkgData.json();
@vgmoose
vgmoose / gdl.sh
Created February 24, 2023 23:16
Implementation of https://github.com/fortheusers/libget repo downloader directly in bash
#!/bin/bash
# libget repo downloader in bash
# requires: curl, jq, and unzip
# the repo URL
REPO_URL="https://wiiu.cdn.fortheusers.org"
VERBOSE=0
vecho () {