Skip to content

Instantly share code, notes, and snippets.

@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 / 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 / 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 / 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 / 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 / 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 / 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"
@ariankordi
ariankordi / funny-pranke.py
Last active December 13, 2020 22:45
thi this mitmproxy script kinda make me go thonking
# mitmproxy ctx for logging and http for making responses
from mitmproxy import http, ctx
# status code constants
from mitmproxy.net.http import status_codes
# http requests are made for getting and sending back user config
import urllib.request, urllib.parse
# used for making cookie expire date
@ariankordi
ariankordi / smd-master-9000.py
Last active December 13, 2020 22:43
mitmproxy script for cheating on my tests LMAOOOOO
from mitmproxy import ctx
from notifypy import Notify
import json
# represents items but only with answers, populated in response method
current_assessment_items = []
# temporary
#!/bin/sh
# should only need to depend on: any shell (hopefully), curl, sed, date, expr
# shamelessly stolen from here n modified
# https://web.archive.org/web/20200813201515/https://unix.stackexchange.com/questions/364776/how-to-output-a-date-time-as-20-minutes-ago-or-9-days-ago-etc/364784#364784
relative() {
local last_unix=$(date -u --date="$1" +%s) # convert date to unix timestamp
local now_unix=$(date +'%s')