Skip to content

Instantly share code, notes, and snippets.

View xen0bit's full-sized avatar

Remy xen0bit

View GitHub Profile
@xen0bit
xen0bit / graph.sql
Created January 13, 2026 04:59
SQLite Graph
/*
* A directed graph in SQLite
* Designed to work on any version, binding, and basic featureset
*/
/*
* nodes/edges table creation with constraints
* No use of FOREIGN KEY
* Indexes, etc...
*/
@xen0bit
xen0bit / pcap_merge.py
Last active November 7, 2025 04:21
PCAP merger
import glob
from scapy.all import rdpcap, wrpcap
all_packets = []
for file in sorted(glob.glob("*.pcap")):
try:
packets = rdpcap(file)
all_packets.extend(packets)
print(f"{file}: Completed.")
except Exception as e:
print(f"{file}: {e}")
@xen0bit
xen0bit / Dockerfile
Created October 11, 2023 04:19
CVE-2023-38545
FROM debian:latest
RUN apt-get update && apt-get install -y \
git \
build-essential \
wget \
python3
WORKDIR /build
@xen0bit
xen0bit / Dockerfile
Created September 19, 2023 01:40
libwebp dwebp
FROM ubuntu:rolling
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get -y update && apt-get install -y \
gcc \
git \
make \
pkg-config \
libipt-dev \
@xen0bit
xen0bit / espnow_passive.py
Created September 9, 2023 03:24
Scapy ESPNOW
#sudo setcap cap_net_raw=eip /bin/python3.10
from scapy.all import *
from struct import *
def dissect(srcMac, load):
categoryCode = unpack('B', load[:1])[0]
organizationIdentifier = load[1:4]
randomValues = load[4:8]
# Vendor Specific
vsElementId = unpack('B', load[8:9])[0]
package main
import (
"bytes"
"fmt"
"math"
"math/rand"
)
func shannon(input []byte) (entropy float64) {
//General Program flow.
//Replace lines 34/35 with something to log to STDOUT with like "X" for dead and "O" for alive to debug
//Shouldn't require any external dependencies
//Setup
//initGrid();
//drawGrid();
//LOOP
// computeCA();
// drawGrid();