Skip to content

Instantly share code, notes, and snippets.

View Kas-tle's full-sized avatar
💭
Working on it...

Kas-tle

💭
Working on it...
  • Oakland
View GitHub Profile
@stkptr
stkptr / mclan.py
Last active June 22, 2024 11:41
Minecraft (Java and Bedrock) LAN spoofer/pinger
#!/usr/bin/env python3
import hashlib
import os
import argparse
import select
import socket
import time
import random
import hmac
import io
@JamesTheAwesomeDude
JamesTheAwesomeDude / gamertag_to_xuid.sh
Last active March 21, 2024 20:14
Mostly self-contained bash+curl+sed+nc script to convert Xbox Live Gamertags into XUIDs (includes pseudo-UUID support for Floodgate-enabled Minecraft servers)
#!/bin/bash
set -e
set -o pipefail
# USAGE:
# bash gamertag_to_xuid.sh GAMERTAG [...] > out.csv
# DEPENDENCIES:
# - GNU Bash version 4 or newer (or any shell supporting pipefail, heredocs, read, readarray, and POSIX printf)
# - GNU sed version ?? or newer (or any sed implementation supporting, -n, -e, the "p" flag to "s", and capturing-group references in substitution)