This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"bytes" | |
"fmt" | |
"math" | |
"math/rand" | |
) | |
func shannon(input []byte) (entropy float64) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:rolling | |
ENV DEBIAN_FRONTEND noninteractive | |
RUN apt-get -y update && apt-get install -y \ | |
gcc \ | |
git \ | |
make \ | |
pkg-config \ | |
libipt-dev \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM debian:latest | |
RUN apt-get update && apt-get install -y \ | |
git \ | |
build-essential \ | |
wget \ | |
python3 | |
WORKDIR /build |
OlderNewer