Skip to content

Instantly share code, notes, and snippets.

View floatingstatic's full-sized avatar
💭
🚫⏰4️⃣🐂💩

Jeremiah Millay floatingstatic

💭
🚫⏰4️⃣🐂💩
  • Fastly
  • Keene, NH
View GitHub Profile
@floatingstatic
floatingstatic / igmp-general-query.py
Created January 12, 2018 20:44
Scapy IGMP Scripts
#!/usr/bin/env python
from scapy.all import *
from scapy.contrib.igmp import IGMP
eth = Ether()
iph = IP(src='1.1.1.1', dst='224.0.0.1', proto=2)
igmp = IGMP(type=0x11, gaddr='0.0.0.0', mrtime=10)
igmp.igmpize(iph,eth)
sendp(eth/iph/igmp, iface="vlan0")
print "IGMP General Query Packet Sent"
@floatingstatic
floatingstatic / README.md
Created December 20, 2017 22:46
Junos RADIUS LDAP Auth

junos-radius-ldap-auth

Quick RADIUS server setup using LDAP backend for authentication on Juniper devices

Using a vanilla install of Ubuntu Server install required packages:

apt-get install slapd ldap-utils freeradius-ldap
dpkg-reconfigure slapd
@floatingstatic
floatingstatic / draw_topology.py
Last active January 31, 2023 19:39
Python Graphviz Network Topology Example
#!/usr/bin/env python
import graphviz
# Define nodes/edges here...
edges = {('Arista249', 'Gi1/0/12'): ('HP830_LSW', 'Ethernet47'),
('Arista249', 'Gi2/0/22'): ('HP_5500EI', 'Ethernet48'),
('Arista249', 'Gi1/0/24'): ('HP_5500EI', 'Management1')}
styles = {
'graph': {
@floatingstatic
floatingstatic / bird.conf
Last active July 13, 2016 17:36
BIRD-RTBH-Example
log syslog all;
debug protocols off;
debug commands 0;
router id 1.1.1.1;
protocol static rtbh {
route 99.99.99.99/32 blackhole;
route 88.88.88.88/32 blackhole;
}
@floatingstatic
floatingstatic / shakespeare-insults.py
Created April 21, 2016 17:48
Shakespeare Insult Generator
#!/usr/bin/env python
import random
fh = open('shakespeare.txt')
word1 = []
word2 = []
word3 = []
for line in fh:
line = line.rstrip('\r\n')
a = line.split()
word1.append(a[0])