Skip to content

Instantly share code, notes, and snippets.

View zkxs's full-sized avatar

zkxs

View GitHub Profile
@zkxs
zkxs / TwoWordPalindrome.scala
Last active September 16, 2015 12:48
/r/dailyprogrammer Challenge #232 Bonus
import scala.collection.immutable.{HashSet, SortedSet}
import scala.collection.mutable.MutableList
import java.io.{BufferedWriter, FileWriter}
object TwoWordPalindrome {
val milliPerNano = 1000000d // 1 million milliseconds in a nanosecond
val outFileName = "two-word-palindromes.txt" // name of file found palindromes will be written to
val twoWordPalindromes = MutableList[(String, String)]() // list that results will be appended to
@zkxs
zkxs / binarysearch.c
Created October 29, 2015 12:28
Test case for a binary search function
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
// a linked-list node
struct node {
char *word;
struct node *next;
};
@zkxs
zkxs / clock_divider.vhd
Last active November 3, 2015 03:44
Washing Machine FSM
-- Author: Michael Ripley
-- Create Date: 01:46:02 10/08/2015
-- Module Name: clock_divider - Behavioral
-- Description: If clock period is 10ns and divisor is 10, Q's period will be
-- 100ns. Essentially this is a clock divider where you can
-- specifiy an arbritrary divisor.
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
@zkxs
zkxs / map_capslock_to_f13.reg
Created December 22, 2016 18:28
Windows registry patch to use CAPSLOCK as F13
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
"Scancode Map"=hex:00,00,00,00,00,00,00,00,02,00,00,00,64,00,3a,00,00,00,00,00
@zkxs
zkxs / FizzBuzz.java
Last active January 8, 2022 07:39
Alas, no interviewer has ever asked me to fizzbuzz
import java.util.function.IntPredicate;
import java.util.stream.Collectors;
import java.util.Arrays;
import java.util.List;
/**
* Here's the same program, but in Java this time to demonstrate the
* boilerplate difference between Java and Scala.
*
* My solution to the classic fizz-buzz problem.
@zkxs
zkxs / userChrome.css
Created July 11, 2018 00:39
Firefox Dark Mode
/*
* Edit this file and copy it as userChrome.css into your
* profile-directory/chrome/
*/
/*
* This file can be used to customize the look of Mozilla's user interface
* You should consider using !important on rules which you want to
* override default settings.
*/
@zkxs
zkxs / test.svg
Created January 28, 2019 03:04 — forked from minkcv/test.svg
svg steganography
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@zkxs
zkxs / slack-theme.sh
Created September 6, 2019 12:48
Injects some arbitrary javascript into Slack for theme installation reasons
#!/usr/bin/env bash
if ! uname | grep -iq darwin; then
echo "This script is designed for Mac OSX use" >&2
exit 1
fi
if ! [ -e "patch.js" ]; then
echo "Place your javascript to inject in patch.js" >&2
exit 1
@zkxs
zkxs / exploit-join-challenge-mitm.md
Last active October 6, 2021 20:45
Neos User Impersonation MITM Attack Writeup

Neos User Impersonation MITM Attack

Who am I?

I'm "runtime" in-game. U-runtime if you need my user id. zkxs#1039 on Discord. Feel free to reach out to me if you've got questions.

What have I found?

An exploit allowing a malicious actor to join sessions while impersonating another user via the use of a MITM (man-in-the-middle) attack.

How did I find it?

I am specifically searching for exploits with large security impacts due to the new issue bounty policy.

@zkxs
zkxs / component-list.txt
Last active April 2, 2022 10:40
List of all concrete Neos component types
BusinessX.ClassroomBoard
BusinessX.ClassroomController
BusinessX.ClassroomDatabaseController
BusinessX.ClassroomGrabbable
BusinessX.ClassroomHighlight
BusinessX.ClassroomHighlightManager
BusinessX.ClassroomLabel
BusinessX.ClassroomModelControls
BusinessX.ClassroomQuizController
BusinessX.HideShowControl