Skip to content

Instantly share code, notes, and snippets.

@fl0l0u
fl0l0u / dtp.py
Created August 3, 2024 07:29
Vlan hopping via DTP with VTP probbing
import sys
import threading
import time
import scapy
import scapy.contrib.dtp
from scapy.contrib.dtp import *
import scapy.contrib.vtp
from scapy.contrib.vtp import *
from scapy.sendrecv import sniff
from scapy.layers.l2 import *
@fl0l0u
fl0l0u / vm_install.sh
Last active July 7, 2024 16:38
pfSense 2.7.2 Unattended install for KVM
# 0. Requirements
apt install -y growisofs genisoimage
# 1. Extract installer resources
mkdir iso
cp /data/ISOs/pfSense-CE-2.7.2-RELEASE-amd64.iso pfsense-2.7.2.unattended.iso
mount pfsense-2.7.2.unattended.iso iso
cp iso/etc/rc.local .
cp iso/usr/libexec/bsdinstall/auto .
umount iso
@fl0l0u
fl0l0u / mruby_test.c
Created October 29, 2017 14:31
mruby interfacing with c
#include <mruby.h>
#include <mruby/array.h>
#include <mruby/hash.h>
#include <mruby/irep.h>
#include <mruby/string.h>
#include <unistd.h>
mrb_value qux(mrb_state*, mrb_value);
int main(int argc, char** argv, char** envp) {