Skip to content

Instantly share code, notes, and snippets.

View gary23w's full-sized avatar
💭

Garrett Stimpson gary23w

💭
View GitHub Profile
@gary23w
gary23w / simplepacketsniffer.py
Last active June 16, 2026 21:59
simple-packet-sniffer.py
"""
simplepacketsniffer.py 0.5 -- single-file edition
Packet sniffer / lightweight IDS with deep protocol decoding (HTTP/DNS/TLS+JA3/
SMTP/SMB), TCP reassembly, file carving, YARA, heuristics, an ML fast-path, and
an on-device LLM analyst. The paid OpenAI dependency is replaced by a local
Qwen2.5 GGUF model (via llama-cpp-python) that auto-downloads and caches on first
run -- no API key, no network after caching.
Hybrid detection layer (see AI/ML section below):
@gary23w
gary23w / simplematrixscreensaver.sh
Last active February 5, 2025 17:20
matrix-style-cascading-screensaver-in-bash
#!/bin/bash
# free time plus a need to build a screensaver in bash, enjoy the cascade.
# ps. the key to this is the "eval" function.
# - gary
# clear the screen and hide the cursor
echo -e "\033[2J\033[?25l"
# get the number of lines and columns of the terminal
R=$(tput lines)
@gary23w
gary23w / simplehilbertsort.py
Last active February 5, 2025 17:20
an optimized version of the hilbert sort algorithm.
def hilbert_sort(data):
"""
Sorts an input array using Hilbert curve mapping.
Parameters:
data (list): The input array to be sorted.
Returns:
sorted_data (list): The sorted input array.
"""
@gary23w
gary23w / simplecyberpentestgary.md
Last active May 9, 2025 00:11
Penetration Test Cheat Sheet

Techniques and Methodology

a gary23w production

a NON linear C by C.

typically I export all required variables. will list all vars and set tool resource list in near future.

Thank you,

@gary23w
gary23w / simplekeylistenermouseposition.py
Last active February 5, 2025 17:21
keypresses and window focus
## an attempt to listen to keypresses and monitor window focus
import time
import random
import re
import sys
import enum
import six
from six.moves import queue
@gary23w
gary23w / simplestartupresourceslist.md
Last active February 5, 2025 17:22
startup tools list

Startup resource list

A revised version of IBEXSOFT awesome start up tools list.

Adding and updating as I go along.

Tech

Git Repos

@gary23w
gary23w / simplesecuritynotes
Last active February 5, 2025 17:22
security+ notes
Security +
Spam filter
- Spam defined.
- in most cases, spam is defined as unsolicited bulk email(ube), or junk email. The spammer is hoping that the recipient will buy a product or service.
- Filters for spam
@gary23w
gary23w / simplecisspnotes
Last active June 13, 2026 16:36
cissp notes
Security and Risk Management
The CIA Triad:
- Confidentialility
- no unauthorized person can access (password protect)
- Integrity
- encryption of data
- cryptography
- Availability
@sitkevij
sitkevij / fft.c
Created November 2, 2017 23:33
Fast Fourier transform (FFT) single file
#include <iostream>
#include <complex>
#define MAX 200
using namespace std;
#define M_PI 3.1415926535897932384
int log2(int N) /*function to calculate the log2(.) of int numbers*/
{
@kevinSuttle
kevinSuttle / meta-tags.md
Last active June 17, 2026 21:06 — forked from lancejpollard/meta-tags.md
List of Usable HTML Meta and Link Tags