Skip to content

Instantly share code, notes, and snippets.

@ariankordi
ariankordi / arian.splatnet-kindle.plist
Last active February 12, 2024 00:43
python selenium script (meant to work in conjunction with cursed nso reverse proxy!!!!!) that shows splatoon stages on your kindle
<?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>
@ariankordi
ariankordi / backup.sh
Last active February 10, 2024 00:29
script that automatically backs up my iphone over wifi using idevicebackup2, avahi-daemon, and netmuxd running as usbmuxd i'm too lazy to explain the rest rn (it's more complex because my jailbreak makes it not work when doing it the correct way)
#!/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
@ariankordi
ariankordi / inklingtalk.py
Created September 14, 2017 00:08
discord.py script for me to pipe audio from vgmstream
import os, time, subprocess
import discord
from discord.ext.commands import Bot
main = Bot(command_prefix=("did you get me my CHEEZ WHIZ bo"))
discord.opus.load_opus('/usr/local/Cellar/opus/1.2.1/lib/libopus.dylib')
@main.event
async def on_voice_state_update(b, a):
if not a.voice.voice_channel:
@ariankordi
ariankordi / ellisprotect.py
Created November 6, 2023 05:14
EllisProtect™ Technology wipes Tom Ellis off the face of the earth. No context is provided.
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
@ariankordi
ariankordi / README also you need to make a folder called app here
Last active September 23, 2023 04:30
two versions of my "nso reverse proxy" (deranged) (and CURSED)
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
@ariankordi
ariankordi / cronch-lighttpd.conf
Last active July 6, 2023 14:44
cronchyroll reverse proxy to 1. fool the crunchyroll apple tv app, 2. use someone else's premium account to get anime but NOT for anything else (watch history, queue, etc). use at your own risk lol
server.modules = (
"mod_proxy",
"mod_cgi",
"mod_rewrite",
#"mod_setenv",
#"mod_openssl"
)
#ssl.engine = "enable"
#ssl.pemfile = "cronch.pem"
@ariankordi
ariankordi / unix socket reverse proxy thing.php
Last active December 13, 2022 17:52
Reverse proxy to a UNIX socket with PHP, for when you are running Go web apps on cPanel servers or something like that LOL (complete with header and multipart POST form parsing!) Doesn't work with WebSocket though.
<?php
// This works best on Apache, and if you have enable_post_data_reading off.
// Set "php_flag enable_post_data_reading off" in your htaccess. It'll avoid having to parse multipart forms.
// enter the sock to connect to here
const SOCK_TO_CONNECT_TO = './run.sock';
// Close the session right now, because it might make everything faster, and we don't know how long the response will last for.
session_write_close();
@ariankordi
ariankordi / README.txt
Last active September 12, 2022 01:40
my stupid hack for using nooklink for animal crossing: new horizons on pc involving mitmproxy which i have had to repost sorry
hi. this app is a reverse proxy, meaning that when it launches, it runs a server that connects to the official server, like a proxy (except that it only supports one site) and it modifies some requests and responses along the way.
now here is a terrible guide
first: the "iksm.py" file and its functions is copied and modified from splatnet2statink, retrieved from https://github.com/frozenpandaman/splatnet2statink at least at commit a971a21fafdbd026aa8b44d7514119d3ff6073a2. this information should be added in the file itself but it's worth mentioning here
when running any of these files like bruh.py or mitmproxy with bruhx.py, if you see that there's a module missing, just install it (notably requests and hashlib is required)
the main magic script which is the mitmproxy addon and gets tokens from splatnet2statink functions is bruhx.py. execute bruh.py, (without the x), follow the instructions, and then the value it gives you needs to be placed into the "codee" variable in bruhx.py.
bruh.sh starts mitmproxy.
@ariankordi
ariankordi / dns.php
Created May 16, 2022 16:58
dns over https handler in php lol LOL, connects to 1.1.1.1 by default, only tested/known to work with Apple platforms
<?php
// target dns server to connect to
define('DNS_TARGET_ADDRESS', 'udp://1.1.1.1:53');
// dns will usually be either a get param, a post param, or both (hence request)
if(!isset($_REQUEST['dns'])) {
// show an error
http_response_code(400);
header('Content-Type: text/plain; charset=UTF-8');
@ariankordi
ariankordi / ForwardNotifierServer.go
Last active November 15, 2021 17:33
rewrite of ForwardNotifierServer for this iphone tweak https://github.com/Greg0109/ForwardNotifier
package main
import (
"github.com/valyala/fasthttp"
"github.com/gen2brain/beeep"
"encoding/json"
"encoding/base64"
// to create a reader for the base64 image
"strings"