This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sendp(Ether(src=RandMAC(), dst=RandMAC()) / IP(src=RandIP(), dst=RandIP()) / ICMP(), loop=True) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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' |