Skip to content

Instantly share code, notes, and snippets.

View eXenon's full-sized avatar

Xavier NUNN eXenon

View GitHub Profile
@eXenon
eXenon / scapy_bridge.py
Last active February 10, 2024 19:09
Use scapy as a modifying proxy
#!/usr/bin/python2
"""
Use scapy to modify packets going through your machine.
Based on nfqueue to block packets in the kernel and pass them to scapy for validation
"""
import nfqueue
from scapy.all import *
import os