Skip to content

Instantly share code, notes, and snippets.

View xen0bit's full-sized avatar

Remy xen0bit

View GitHub Profile
package main
import (
"bytes"
"fmt"
"math"
"math/rand"
)
func shannon(input []byte) (entropy float64) {
@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]
@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 / 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