This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import mitmproxy.http | |
from mitmproxy import ctx | |
import lz4.block | |
import binascii | |
# NOTE: miitomo common key is '9ec1c78fa2cb34e2bed5691c08432f04' | |
COMMON_KEY = "9ec1c78fa2cb34e2bed5691c08432f04" | |
SESSION_ID_COOKIE_NAME = "player_session_id" | |
def transform_common_key(s): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#*.discord.com/*.gif$image | |
https://sentry.io/api/* | |
# remove DISCORD(tm) NITRO(tm) button below friends list button in most cases | |
discord.com##[href="/store"] | |
discord.com##[href="/shop"] | |
discord.com##[href="/discovery"] | |
discord.com##[href="//discord.com/snowsgiving"] | |
discord.com##[href="/activities"] | |
discord.com##div[data-list-item-id=private-channels-uid_40___snowsgiving] | |
# remove discord ready animation n video |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
from struct import pack | |
import os | |
from kaitaistruct import KaitaiStream, BytesIO | |
if len(sys.argv) < 4: | |
print("CLI Usage: python mii2studio.py <input mii file / qr code / cmoc entry number> <output studio mii file> <input type (wii/ds/3ds/wiiu/miitomo/switchdb/switch/studio)>\n") | |
input_file = input("Enter the path to the input file (binary file or QR Code), a CMOC entry number, or a URL to a QR Code: ") | |
output_file = input("Enter the path to the output file (which will be importable with Mii Studio): ") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// NOTE: Meant to be built in my FFL-Testing repo, placed in src. | |
// LDFLAGS="-lssl -lcrypto" make SRC=src/extract-ffsd-from-ffl-odb.cpp EXEC=extract-ffsd-from-ffl-odb | |
#include <filedevice/rio_FileDeviceMgr.h> | |
#include <nn/ffl.h> | |
// get mii studio title id | |
#include <nn/ffl/detail/FFLiFileWriteBuffer.h> | |
#include <nn/ffl/FFLiMiiData.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import sys # for executable and exit | |
# OpenCV opens the camera and provides basic QR scanning. | |
# pip3 install opencv-python | |
try: | |
import cv2 | |
except ImportError as e: | |
# red then bold | |
print('\033[91m' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
pw=$(ffmpeg -hide_banner -loglevel fatal -video_size 720x480 -f v4l2 -ss 1 \ | |
-i /dev/v4l/by-id/usb-Elgato_Game_Capture_HD60_X_*-video-index0 \ | |
-frames:v 1 -f apng - \ | |
| zbarimg --quiet --raw --oneshot - \ | |
| awk -F ';' '{printf substr($3, 3)}') | |
if [ ! -z "$pw" ]; then | |
nmcli connection modify ENTER_SWITCH_SSID_HERE wifi-sec.psk "$pw" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from selenium import webdriver | |
# import the service so a custom executable path can be specified | |
from selenium.webdriver.chrome.service import Service | |
from shutil import which | |
from selenium.webdriver.common.by import By | |
from selenium.webdriver.support.ui import WebDriverWait | |
from selenium.webdriver.support import expected_conditions as EC | |
import selenium.common.exceptions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>arian.splatnet-kindle</string> | |
<key>Program</key> | |
<string>/opt/homebrew/bin/python3</string> | |
<key>ProgramArguments</key> | |
<array> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
in order to make the scripts happy, there is supposed to be a folder here called "app" | |
it is actually just from the nxapi electron app, it SHOULD be just resources/app | |
after that, you DO need to authenticate to nxapi - do something like this: node app/dist/bundle/cli-bundle.js nso auth | |
MORE GENERAL EXPLANATION: | |
this is a reverse proxy that's meant to help me access splatnet 3 in my browser, leveraging other tools to do so | |
bruh.js, bruhx.py, and bruh.sh are more or less carried over from a previous hack for nooklink that actually just used a hacked up iksm from splatnet2statink: https://gist.github.com/ariankordi/016ac1d24eb45f13efb9e8660b6d62b2 | |
this calls out to nxapi, which, you would need to download the app folder for AND authenticate to. | |
the proxy is meant to be used via a systemd socket spawning it and then later killing it, this ensures it literally only runs when it needs to. then, you can use a browser extension to selectively proxy that nintendo site over and voila, it SHOULD load correctly. it SHOU |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# udid of device that is already paired and wifi enabled on | |
udid="" | |
# todo replace with reverse lookup of the mac address??? but it wouldn't be | |
# the wifi mac address we know it would have to be the anonymized one | |
# ip neighbor | grep 02:21:21:21:21:21 | awk '{split($0, a, " dev"); printf a[1]}' | |
ip="192.168.2.21" | |
# 24 hours |
NewerOlder