Skip to content

Instantly share code, notes, and snippets.

View ajmeese7's full-sized avatar
turning caffeine into code

Aaron Meese ajmeese7

turning caffeine into code
View GitHub Profile
@ajmeese7
ajmeese7 / validin-domain-parser.py
Created March 30, 2024 17:16
Parse out domains from exported Validin JSON data
#!/usr/bin/env python3
import json
import sys
import os
def extract_domains(json_file_path):
try:
# Open and load the JSON file
with open(json_file_path, "r") as file:
data = json.load(file)
@ajmeese7
ajmeese7 / usps.html
Created November 19, 2023 23:30
uups.lsup.xyz Phishing HTML
<meta http-equiv="refresh" content="0; url=https://uups.lsup.xyz" />
@ajmeese7
ajmeese7 / index.html
Last active October 27, 2023 15:32
Improved Kinopio highlighting
<style>
.no-select {
user-select: none;
}
</style>
<script>
document.addEventListener("DOMContentLoaded", function() {
const body = document.querySelector("body");
const textElements = document.querySelectorAll("p, h1, h2, h3, h4, h5, h6, a, span, li, blockquote");
@ajmeese7
ajmeese7 / AdminMiddleware.js
Created December 5, 2022 00:52
Medium > HTB University CTF 2022 "The Magic Informer" code snippets
import { decode } from "../helpers/JWTHelper.js";
const AdminMiddleware = async (req, res, next) => {
try{
if (req.cookies.session === undefined) {
if(!req.is('application/json')) return res.redirect('/');
return res.status(401).json({ status: 'unauthorized', message: 'Authentication required!' });
}
return decode(req.cookies.session)
.then(user => {
@ajmeese7
ajmeese7 / GitFive-login.log
Created November 28, 2022 00:32
Code snippets related to GitFive for Medium
TODO
@ajmeese7
ajmeese7 / kill_by_regex.sh
Created November 23, 2022 23:53
Kill all processes by regex
# Source: https://stackoverflow.com/a/30486159/6456163
ps aux|grep [process_regex]|grep -v grep|awk '{print $2}' | xargs kill -9
@ajmeese7
ajmeese7 / kill_keybase.sh
Created November 20, 2022 13:22
Kills the Keybase application and all associated services
run_keybase -k
@ajmeese7
ajmeese7 / kill_keybase.sh
Created November 20, 2022 13:22
Kills the Keybase application and all associated services
run_keybase -k
@ajmeese7
ajmeese7 / menu.svelte
Last active November 18, 2022 01:40
Svelte collapsible menu
<script>
import { slide } from "svelte/transition";
import { page } from "$app/stores";
let isExpanded = false;
const toggleCollapse = () => {
isExpanded = !isExpanded;
};
</script>
@ajmeese7
ajmeese7 / dns-query-data-extraction.sh
Last active October 28, 2022 12:51
"Trick or Breach" Hack the Boo 2022 solution
# Extract the DNS query data from the pcap
tshark -r ./capture.pcap -T fields -e dns.qry.name -Y 'dns.flags.response == 0' > raw_exfil.txt