Skip to content

Instantly share code, notes, and snippets.

View corifeo's full-sized avatar
🏠
Working from home

Francesco Manzoni corifeo

🏠
Working from home
  • Knutsford, GB
View GitHub Profile
@corifeo
corifeo / etc-sysctl.conf
Created August 20, 2020 22:45 — forked from bjornbouetsmith/etc-sysctl.conf
FreeNAS 10GBe tuning
Add these lines to the file /etc/sysctl.conf
#10GBE tuning
kern.ipc.soacceptqueue=2048
kern.ipc.somaxconn=2048
kern.ipc.maxsockbuf=33554432
net.inet.tcp.recvbuf_inc=2097152 # (default 16384)
net.inet.tcp.recvbuf_max=16777216 # (default 2097152)
net.inet.tcp.recvspace=4194304 # (default 65536)
@corifeo
corifeo / etc-sysctl.conf
Created August 20, 2020 22:45 — forked from bjornbouetsmith/etc-sysctl.conf
FreeNAS 10GBe tuning
Add these lines to the file /etc/sysctl.conf
#10GBE tuning
kern.ipc.soacceptqueue=2048
kern.ipc.somaxconn=2048
kern.ipc.maxsockbuf=33554432
net.inet.tcp.recvbuf_inc=2097152 # (default 16384)
net.inet.tcp.recvbuf_max=16777216 # (default 2097152)
net.inet.tcp.recvspace=4194304 # (default 65536)
@corifeo
corifeo / macFlood.py
Created March 13, 2013 12:33
mac flooder and random traffic generator for scapy
sendp(Ether(src=RandMAC(), dst=RandMAC()) / IP(src=RandIP(), dst=RandIP()) / ICMP(), loop=True)
@corifeo
corifeo / dnsSquirrel.py
Last active February 16, 2017 14:18
a simple DNS sniffer based on dnssnarf.py which outputs data in bind log format for further analysis
#!/usr/bin/python
"""
dnsSquirrel.py: Simple DNS sniffer based on dnssnarf.py which outputs data in bind log
format for further analysis with more advanced tools
"""
from datetime import datetime
import logging
from scapy.all import *
@corifeo
corifeo / monkeyDNS.py
Last active December 12, 2015 04:18
a simple mini DNS sniffer which tamper responses over local network
#!/usr/bin/python
"""
monkeyDNS: mini fake dns server to tamper device's queries during testing
dont work with google's dns because they are too fast!
"""
import scapy, sys
from scapy.all import *
interface = 'eth0'
fake_address = '127.0.0.1'