This file contains 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
#!/bin/bash | |
set -e | |
echo "[+] Clearling old mptcp endpoints" | |
for i in `ip mptcp endpoint show|cut -d " " -f 3`; do | |
ip mptcp endpoint delete id $i; | |
done | |
declare -A OLD |
This file contains 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
#!/bin/bash | |
set -e | |
set -u | |
set -o pipefail | |
IFACE="lo" | |
LATENCY=200 | |
CLEAN="" | |
IPS=() |
This file contains 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
.PHONY: repro | |
repro: | |
$(CLANG) -Wall -Wextra -O2 --target=bpf -c -g \ | |
repro.bpf.c \ | |
-o repro.bpf.o | |
bpftool gen skeleton repro.bpf.o > repro.bpf.skel.h | |
$(CLANG) -Wall -fno-omit-frame-pointer -Wextra -O2 -g \ | |
repro.c \ | |
-lbpf \ | |
-lelf \ |
This file contains 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/gnuplot -c | |
set terminal pngcairo transparent enhanced linewidth 2 font 'Helvetica,15' size 2000, 1200 background rgb 'white' | |
set xtics nomirror rotate by -45 | |
set ytics nomirror | |
set grid ytics | |
set grid xtics | |
set ylabel "Bytes" | |
set datafile separator "," | |
set output ARG3 | |
set key autotitle columnheader outside |
This file contains 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
rm .config | |
make tinyconfig | |
make kvm_guest.config | |
make kvmconfig | |
./scripts/config \ | |
-e EARLY_PRINTK \ | |
-e 64BIT \ | |
-e BPF -d EMBEDDED -d EXPERT \ | |
-e INOTIFY_USER |
This file contains 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
package main | |
import ( | |
"flag" | |
"fmt" | |
"net" | |
"os" | |
"strings" | |
) |
This file contains 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
import atexit | |
import os | |
import socket | |
import subprocess | |
import shlex | |
import time | |
import signal | |
tcpdump_bin = os.popen('which tcpdump').read().strip() | |
ss_bin = os.popen('which ss').read().strip() |
This file contains 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
package main | |
import ( | |
"flag" | |
"fmt" | |
"math/rand" | |
"net" | |
"os" | |
"os/signal" | |
"runtime" |
This file contains 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
/* | |
* Usage: ./gvtcpdump | tcpdump -n -r - | |
*/ | |
#include <arpa/inet.h> | |
#include <errno.h> | |
#include <error.h> | |
#include <getopt.h> | |
#include <linux/filter.h> | |
#include <linux/if_ether.h> | |
#include <linux/if_packet.h> |
This file contains 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
#!/bin/bash | |
set -e | |
# Dependencies: | |
# apt install jq | |
if [ ]; then | |
GVFLAGS=--network=host | |
FILESZ=1G | |
else | |
FILESZ=16M |
NewerOlder