Skip to content

Instantly share code, notes, and snippets.

View nucular's full-sized avatar

nucular nucular

View GitHub Profile
@nucular
nucular / omegle.md
Last active February 20, 2024 21:01
Omegle protocol reverse-engineering

Let's reverse-engineer Omegle. PROPERLY!

I could not find a proper, detailed (and up-to-date) reverse-engineerment of Omegle's text chat protocol on the internet, so here, have one made by analyzing the web app (web requests and source code).
The responses are beautified and the query strings split up and URI-decoded for readability.
Note that "query string" refers to parameters encoded into the URL and "form data" to parameters in the POST body which do not have to be URI-encoded.

TODO:

@nucular
nucular / fixwacom.bat
Created December 16, 2016 22:46
Batch file to fix your Wacom driver after it broke again
@echo off
:checkPrivileges
echo Checking for privileges
net file 1>nul 2>nul
if '%errorlevel%' == '0' (
goto gotPrivileges
) else (
echo Requesting privileges (script will execute in new window)
powershell "saps -filepath %0 -verb runas" >nul 2>&1
@nucular
nucular / lua-dump.md
Last active October 14, 2022 22:05
Dump of Lua code snippets

Lua Dump

This is a dump of random Lua code snippets. Use them however you like.

License

This is free and unencumbered software released into the public domain.

@nucular
nucular / lzss.py
Created October 5, 2016 16:43
Implementation of the Lempel–Ziv–Storer–Szymanski algorithm in Python
"""
Implementation of the Lempel–Ziv–Storer–Szymanski algorithm, ported from the
C implementation by Haruhiko Okumura
https://oku.edu.mie-u.ac.jp/~okumura/compression/lzss.c
Public Domain
"""
class LZSSBase(object):
def __init__(self, infile, outfile, EI=11, EJ=4, P=1, N=0, F=0, rless=0, init_chr=b' '):
self.infile = infile
@nucular
nucular / chili.md
Last active September 25, 2021 13:31
The best damn chili con carne

Chili con carne

Serves a whole lotta people.

Ingredients

Note: We're talking heaped spoons here, none of that weak shit

  • Meats
    • 2 kg ground meat half/half maybe beef idk
  • 1L of beef stock
@nucular
nucular / arg.md
Last active May 25, 2021 12:38
Steins;Gate ARG

Steins;Gate ARG

The email address from which Okabe received the static video (sg-epk@jtk93.x29.jp) replies to blank mails with the following message:

Your mail concerning "[the subject of your email]"

sg-epk@jtk93.x29.jp はこの世界線に存在していません. [It does not exist in this world line.]

es570

Effort to reverse-engineer an unknown EgisTech/LighTuning fingerprint sensor

Message format

Request

E G I S CMD A B

Fucking great cheese cake

Base

  • 200g ladyfingers (the kind w/ sugar)
  • 150g butter
  1. Take a bowl and smash those fingers to bits.
  2. Melt the butter in the microwave or something and mix it in thoroughly.
@nucular
nucular / amifucked.py
Last active June 3, 2020 23:26
Find out if Microsoft fucked you over already
# python3 amifucked.py
# Public Domain
import platform, subprocess
# Feel free to poke me in the comments if I missed something here
TELEMETRY_MAYBE = {
"KB2952664": "Compatibility update for upgrading Windows 7",
"KB2976978": "Performs and collect compatibility appraiser logs in order to ease the upgrade experience to Windows 10",
@nucular
nucular / logo-black.svg
Created September 17, 2019 13:35
EarthStrike/Antifa/PhilosophyTube mashup
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.