Skip to content

Instantly share code, notes, and snippets.

View InvoxiPlayGames's full-sized avatar
🦊
fox on the computer

Emma InvoxiPlayGames

🦊
fox on the computer
View GitHub Profile
@InvoxiPlayGames
InvoxiPlayGames / STUNgetIP.js
Created October 9, 2021 06:30
STUN IP request thing in NodeJS (bad)
var dgram = require("dgram");
var udp4 = dgram.createSocket("udp4");
var udp6 = dgram.createSocket("udp6");
var stunServer = "stun.l.google.com";
var stunPort = 19302;
function makeSTUNRequest() {
var buffer = Buffer.alloc(20);
buffer.writeUInt16BE(0x0001, 0); // STUN request
@InvoxiPlayGames
InvoxiPlayGames / gamespyChallengeRC4.js
Created October 5, 2021 05:28
crappy implementation of gamespy's rc4 challenge algorithm in NodeJS
/*
crappy implementation of gamespy's rc4 challenge algorithm in NodeJS
basically just eyed from https://github.com/barronwaffles/dwc_network_server_emulator/blob/master/gamespy/gs_utility.py
strkey = String of "secret key" used by client
data = Buffer of challenge data sent by server
return value = String of base64 encoded challenge response
i only tested this once, it could probably be improved, idk if it works 100%
*/
function gamespyChallengeRC4(strkey, data) {
key = Buffer.from(strkey);
@InvoxiPlayGames
InvoxiPlayGames / lang_en.json
Last active September 24, 2021 15:19
DELTARUNE Chapter 2 English Language JSON file, made by referencing data.win, lang_jp.json and lang_en_ch1.json. Some strings may be missing or inaccurate.
This file has been truncated, but you can view the full file.
{
"date":"1632407807322",
"DEVICE_CHOICE_slash_Create_0_gml_28_0":"NO",
"DEVICE_CHOICE_slash_Create_0_gml_29_0":"YES",
"DEVICE_CHOICE_slash_Create_0_gml_64_0":"GRAINS",
"DEVICE_CHOICE_slash_Create_0_gml_65_0":"MEAT",
"DEVICE_CHOICE_slash_Create_0_gml_66_0":"DAIRY",
"DEVICE_CHOICE_slash_Create_0_gml_67_0":"SWEETS",
"DEVICE_CHOICE_slash_Create_0_gml_68_0":"FRUIT",
"DEVICE_CHOICE_slash_Create_0_gml_69_0":"VEGETABLE",
@InvoxiPlayGames
InvoxiPlayGames / DOLLoader.c
Last active May 21, 2021 00:46
Hacky, barely/non-functional Wii/GC DOL loader.
/*
DOLLoader.c
Copyright 2021 InvoxiPlayGames
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION W

Keybase proof

I hereby claim:

  • I am invoxiplaygames on github.
  • I am invoxiplaygames (https://keybase.io/invoxiplaygames) on keybase.
  • I have a public key ASDZ-ab_kWmb4TMRim3eOA-yMH3OlfTspE7dAKFh0EP_fQo

To claim this, I am signing this object: