This file contains hidden or 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
| /* | |
| * 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... | |
| */ |
This file contains hidden or 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
| 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}") |
This file contains hidden or 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 |
This file contains hidden or 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
| /usr/bin/autossh -M 0 -N \ | |
| -o "ServerAliveInterval 15" -o "ServerAliveCountMax 3" -o "ConnectTimeout 10" -o "ExitOnForwardFailure yes" \ | |
| -i /home/user/.ssh/id_rsa -p 22 user@VPS-IP-Address \ | |
| -R 8080:localhost:8080 |
This file contains hidden or 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 hidden or 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 hidden or 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) { |
NewerOlder