Skip to content

Instantly share code, notes, and snippets.

View TrebledJ's full-sized avatar
🎯
Focusing

Johnathan TrebledJ

🎯
Focusing
View GitHub Profile
@TrebledJ
TrebledJ / burp.json
Created February 13, 2025 10:08
Burp configuration with sensible defaults. This should help reduce clutter in Proxy History and save file size. Target scope ignores 1) SSO/automatic browser requests to google/microsoft/firefox, 2) ad trackers, 3) media file extensions (image/video/font).
{
"bambda":{
"http_history_display_filter":{
"bambda":"return true;"
},
"logger_capture_filter":{
"bambda":"return true;"
},
"logger_display_filter":{
"bambda":"return true;"
@TrebledJ
TrebledJ / zipattack.py
Created December 8, 2024 15:15
Python helpers to craft zip attack payloads to exploit file upload vulnerabilities.
#!/usr/bin/python3
"""
zipattack.py
by @trebledj
Python helpers to craft zip attack payloads to exploit file upload
vulnerabilities.
Disclaimer: This script is intended purely for educational purposes. The author
does not assume any responsibility for the potential misuse of the code
@TrebledJ
TrebledJ / api-wordlist.txt
Last active December 5, 2023 17:10 — forked from yassineaboukir/List of API endpoints & objects
A list of 3203 common API endpoints and objects designed for fuzzing.
0
00
01
02
03
1
1.0
10
100
1000
@TrebledJ
TrebledJ / rev.cpp
Last active November 16, 2023 10:10
HKCERT CTF 2023 – Decompetition: Vitamin C++ reversed source code and solve scripts. Writeup: https://trebledj.me/posts/hkcert-2023-decompetition-vitamin-cpp.
//
// 100% Similarity Reversed Source Code for [HKCERT CTF 2023 – Decompetition: Vitamin C++].
// by @TrebledJ
//
#include <iostream>
#include <string>
#include <unordered_map>
using namespace std;
@TrebledJ
TrebledJ / solve.py
Created September 20, 2023 13:03
Solve scripts for HITCON 2023 The Blade. Writeup: https://trebledj.github.io/posts/hitcon-2023-the-blade
# HITCON 2023 – The Blade
# Solve Script by TrebledJ
# WriteUp: https://trebledj.github.io/posts/hitcon-2023-the-blade
import string
###############
### Part 1. ###
###############
@TrebledJ
TrebledJ / solve.py
Last active September 4, 2023 06:44
Solve scripts for DUCTF 2023 Wrong Signal. Writeup: https://trebledj.github.io/posts/ductf-2023-wrong-signal/
# DownUnderCTF 2023 – Wrong Signal
# Solve Script by TrebledJ
# WriteUp: https://trebledj.github.io/posts/ductf-2023-wrong-signal/
import z3
# Func to extract crumbs from bytes.
crumbs = lambda bs: [(b >> (2 * i)) & 0b11 for b in bs for i in range(4)]
@TrebledJ
TrebledJ / main.c
Last active May 24, 2023 14:52
STM32F405 example for 440Hz sine wave generation.
// main.c
#include "stm32f4xx_hal.h"
#include <math.h>
#include <stdint.h>
DAC_HandleTypeDef hdac;
DMA_HandleTypeDef hdma_dac1;
DMA_HandleTypeDef hdma_dac2;
@TrebledJ
TrebledJ / wavetable_synthesis.py
Last active April 7, 2023 18:31
Demonstration of wavetable synthesis using numpy and matplotlib. See it in action: https://trebledj.github.io/posts/digital-audio-synthesis-for-dummies-part-2/#wavetable-synthesis
# Wavetable Synthesis Demo
# by @TrebledJ
from matplotlib.patches import ConnectionPatch
import matplotlib.ticker as mticker
import matplotlib.pyplot as plt
from matplotlib.animation import FuncAnimation
import numpy as np
@TrebledJ
TrebledJ / additive_synthesis.py
Last active April 7, 2023 18:32
Demonstration of additive synthesis using numpy and matplotlib. See it in action: https://trebledj.github.io/posts/digital-audio-synthesis-for-dummies-part-2/#additive-synthesis
# Additive Synthesis Demo
# by @TrebledJ
import matplotlib.pyplot as plt
import numpy as np
t = np.linspace(0, 1, 44100)
t = t[:800]
@TrebledJ
TrebledJ / d22.rs
Created December 2, 2022 19:41
Advent of Code 2021 Day 22 Rust solution. Writeup: https://trebledj.github.io/posts/aoc-2021-day-22/
use regex::Regex;
use std::collections::{HashSet, LinkedList};
use std::fs;
type Set = HashSet<(cube_t, cube_t, cube_t)>;
#[allow(non_camel_case_types)]
type cube_t = i64;
type Cuboid = ((cube_t, cube_t), (cube_t, cube_t), (cube_t, cube_t));
struct Command(bool, Cuboid);