Skip to content

Instantly share code, notes, and snippets.

View matthewlevy97's full-sized avatar

Matthew Levy matthewlevy97

View GitHub Profile
WORDLE_ANSWERS = ["cigar", "rebut", "sissy", "humph", "awake", "blush", "focal", "evade", "naval", "serve", "heath", "dwarf", "model", "karma", "stink", "grade", "quiet", "bench", "abate", "feign", "major", "death", "fresh", "crust", "stool", "colon", "abase", "marry", "react", "batty", "pride", "floss", "helix", "croak", "staff", "paper", "unfed", "whelp", "trawl", "outdo", "adobe", "crazy", "sower", "repay", "digit", "crate", "cluck", "spike", "mimic", "pound", "maxim", "linen", "unmet", "flesh", "booby", "forth", "first", "stand", "belly", "ivory", "seedy", "print", "yearn", "drain", "bribe", "stout", "panel", "crass", "flume", "offal", "agree", "error", "swirl", "argue", "bleed", "delta", "flick", "totem", "wooer", "front", "shrub", "parry", "biome", "lapel", "start", "greet", "goner", "golem", "lusty", "loopy", "round", "audit", "lying", "gamma", "labor", "islet", "civic", "forge", "corny", "moult", "basic", "salad", "agate", "spicy", "spray", "essay", "fjord", "spend", "kebab", "guild", "aback", "motor"
/*
Simple buddy allocator for my kernel.
If code is used, follow GNU General Public License v3.0 (https://choosealicense.com/licenses/gpl-3.0/)
Created by Matthew Levy
1/7/2020
*/
#include <stddef.h>
#include <stdlib.h>
/**
Overwrites code in dynamic libraries to allow for interpositioning w/o dlsym or LD_PRELOAD
*/
#define _GNU_SOURCE
#include <dlfcn.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
# Exploit Code for Exploit Exercises Fusion level 0
# Created by Matthew Levy
# Full writeup can be found here: https://matthewlevydev.com/2019/02/20/fusion-level-0/
import socket
import struct
IP = "192.168.28.138"
PORT = 20000
HOST = (IP, PORT)
'''
A* Implementation using a Priority Queue to get the lowest cost nodes
Converts a 2D IntegerArray into a NodeArray
Pathfind through NodeArray and returns the node from the end point or None if no path found
To find path, access node.parent until node.parent == None
Coordinate scheme is board[y][x]
Created by Matthew Levy
set -g default-terminal "screen-256color" # colors!
setw -g xterm-keys on
set -s escape-time 10 # faster command sequences
set -sg repeat-time 600 # increase repeat timeout
set -s focus-events on
set -g prefix2 C-a # GNU-Screen compatible prefix
bind C-a send-prefix -2
set -q -g status-utf8 on # expect UTF-8 (tmux < 2.2)
'''
This is a simple Python script to do huffman en-/de-coding of a file.
Its main purpose is to act as an itermediary between general code online and my final C implementation.
Overall, this project's goal was to learn how huffman coding works.
Created by Matthew Levy
11/12/2018
'''
import sys