Skip to content

Instantly share code, notes, and snippets.

View ChrisPritchard's full-sized avatar
🍻
...

Christopher Pritchard ChrisPritchard

🍻
...
View GitHub Profile
@ChrisPritchard
ChrisPritchard / zalgo.js
Created July 5, 2018 00:45 — forked from flanger001/zalgo.js
I stole a Zalgo text generator
/* <![CDATA[ */
//============================================================
// ZALGO text script by tchouky
//============================================================
// data set of leet unicode chars
//---------------------------------------------------
//those go UP
var zalgo_up = [
@ChrisPritchard
ChrisPritchard / markov.fsx
Created November 12, 2019 07:34
A simple markov chain implementation, flexible to support any type (but built with string / sentence samples).
let samples = [
"I am a monster."
"I am a rock star."
"I want to go to Hawaii."
"I want to eat a hamburger."
"I have a really big headache."
"FSharp is a fun language."
"Go eat a big hamburger."
"Markov chains are fun to use."
open System.Security.Cryptography
let encrypt psk (iv: byte[]) (inData: byte[]) =
use aesObj = Aes.Create ()
aesObj.Mode <- CipherMode.ECB
aesObj.Padding <- PaddingMode.None
let zeroIv = Array.create 16 0uy
let encryptor = aesObj.CreateEncryptor (psk, zeroIv)
@ChrisPritchard
ChrisPritchard / chunksizer.fs
Created January 8, 2020 00:56
Simple console app that helps calculate the hex size for body content in a transfer-encoding request
open System
[<EntryPoint>]
let main argv =
printfn "enter lines and end with EOF\n"
let sep = "\r\n"
let rec builder acc =
let line = Console.ReadLine ()
if line.Contains "EOF" then
# small powershell script that will move a window to a specified location.
# used (as can be seen in the code) to move a borderless 1920x1080 Skyrim SE window to the middle of my 3840x1080 screen.
add-type @"
using System;
using System.Runtime.InteropServices;
namespace WindowMethods {
public class Imported {
[DllImport("user32.dll")]
public static extern bool SetWindowPos(IntPtr hWnd, IntPtr hWndInsertAfter, int X, int Y, int cx, int cy, uint uFlags);
@ChrisPritchard
ChrisPritchard / dark-times-in-skyrim.md
Last active May 17, 2020 23:08
Quick journal of a character in a Skyrim playthrough

Dark Times in Skyrim

Intro

My name is Rastus, a Dunmer or Dark Elf from Morrowind, and I guess I was now what they called a refugee in this land of the Nords, known as Skyrim.

After the Red Mount has erupted back home, it had been chaos. I had joined with everyone else fleeing the land, my skin caked with dust, with nothing but the ragged clothes on my back and a few coins to buy passage. Despite all that, I had felt...free in a way. My old life was being left behind. Most of the people I had worked for, or who I had wronged, were dead or had bigger things on their minds. No one would know me in the new world - I could start anew.

Well, after a week in the backwaters of frozen Windhelm, one of the largest and coldest Nordic cities in Skyrim, I had been disabused me of that notion. Starving, with barely a flea-ridden blanket to call my own in the back of a run down inn, and treated like scum by the racists that ran the city along with the rest of my kind stuffed into 'Grey Town' - a cheap play on the

@ChrisPritchard
ChrisPritchard / cloner.sh
Last active July 24, 2020 19:40
A simple script that will clone all public *and* private repos the user owns (no forks!) and zip up the results.
#!/bin/bash
# Author: Chris Pritchard (github.com/ChrisPritchard)
# requires jq, 7z and git be installed
# run as ./cloner.sh [personal access token] [UserName]
REPOS=$(curl -s -H "Authorization: token $1" "https://api.github.com/user/repos?&affiliation=owner&per_page=200" | jq -r '.[] | select(.fork==false) | .full_name')
rm -rf ./temp-cloner
mkdir temp-cloner
@ChrisPritchard
ChrisPritchard / all.txt
Created October 6, 2020 23:15 — forked from jhaddix/all.txt
all wordlists from every dns enumeration tool... ever. Please excuse the lewd entries =/
This file has been truncated, but you can view the full file.
.
..
........
@
*
*.*
*.*.*
🐎
# sleepy flower girl
(◡ ‿ ◡ ✿)
# y u no
ლ(ಠ益ಠლ)
# smiling breasts
(^人^)
# flipping tables
@ChrisPritchard
ChrisPritchard / xss-hunter-cleaner.go
Last active November 19, 2020 23:31
For those sticky situations when you've accidentally fired xss hunter a trillion times
/*
XSS Hunter Cleaner by github.com/ChrisPritchard
For those sticky situations when you've accidentally fired xss hunter a trillion times
Usage: go to XSS Hunter, and view your collected payloads.
Inspect the request to get both the csrf header token value and the cookie value (yes all of it).
Then run this script like `go run xss-hunter-cleaner.go <csrf> <cookie value>`
It uses the api to spin off a number of parallel 'get five ids then delete them' requests, via go-routines