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
diff --git a/index.js b/index.js | |
old mode 100755 | |
new mode 100644 | |
diff --git a/package.json b/package.json | |
index a003e77..caee25a 100644 | |
--- a/package.json | |
+++ b/package.json | |
@@ -13,17 +13,19 @@ | |
"bcrypt": "^3.0.6", | |
"bluebird": "^3.5.1", |
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
<?php | |
//ini_set('display_errors', true); | |
define('CLIENT_ID', ''); | |
define('CLIENT_SECRET', ''); | |
// token for a bot, needs to be prefixed with Bot | |
define('TOKEN', ''); | |
// group channel that you have already created, lol, | |
define('CHANNEL_ID', ''); |
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 | |
# 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') |
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 mitmproxy import ctx | |
from notifypy import Notify | |
import json | |
# represents items but only with answers, populated in response method | |
current_assessment_items = [] | |
# temporary |
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
# 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 |
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
package main | |
import ( | |
"github.com/valyala/fasthttp" | |
"github.com/gen2brain/beeep" | |
"encoding/json" | |
"encoding/base64" | |
// to create a reader for the base64 image | |
"strings" |
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
server.modules = ( | |
"mod_proxy", | |
"mod_cgi", | |
"mod_rewrite", | |
#"mod_setenv", | |
#"mod_openssl" | |
) | |
#ssl.engine = "enable" | |
#ssl.pemfile = "cronch.pem" |
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
<?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'); |
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 |
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 |