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
[General] | |
cleanup=true | |
noauth=false | |
unpack=true | |
bootstrap=Debian | |
aptsources=Debian | |
[Debian] | |
packages=wine wine32 | |
source=http://deb.debian.org/debian |
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
aaa |
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
/alias m exec -o python3 -c 'import itertools, textwrap, sys, random\; print("".join(["\x03{}{}".format(x, y) for x, y in zip(itertools.cycle([61, 85, 83, 59, 58, 69, 81, 80]), itertools.chain.from_iterable([(lambda t, tt: t + list(" " + tt + " ") + t)(random.sample([chr(y) for y in range(0x2580, 0x2585)] * 128, 8), "".join(a).strip()) for a in textwrap.wrap(" ".join(sys.argv[1:]), 50) ])) ]))' \"$*\" |
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
flush ruleset | |
table inet filter { # handle 127 | |
synproxy default-synproxy { # handle 37 | |
mss 1460 | |
wscale 7 | |
timestamp sack-perm | |
} | |
synproxy identd-synproxy { # handle 38 |
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
#!/bin/bash | |
ip -j addr | jq -r '.[] | select(.ifname | startswith("tun")) | .ifname +" "+ .addr_info[0].local' | awk '{print $2"%"$1}' | parallel -u -j8 iperf --bind {} -c 10.1.0.1 -p 443 -i | |
1 |
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
# set PATH so it includes user's private bin if it exists | |
if [ -d "$HOME/bin" ] ; then | |
PATH="$HOME/bin:$PATH" | |
fi | |
export USE_CCACHE=1 | |
export CCACHE_EXEC=/usr/bin/ccache | |
ccache -M 50G |
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
DEBIAN_RELEASE=bookworm |
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
def get_network_object(self, network, prefix_length): | |
net = ip_address(network) | |
if type(net) == IPv4Address: | |
return IPv4Network(net).supernet(new_prefix = prefix_length) | |
elif type(net) == IPv6Address: | |
return IPv6Network(net).supernet(new_prefix = prefix_length) | |
def network_object_to_uuid(self, network): | |
if type(network) == IPv4Network: | |
return uuid.UUID(bytes = bytes([0x00] * 12) + network.network_address.packed) |
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
#!/bin/bash | |
/usr/bin/env ip netns delete _netcrave | |
/usr/bin/env ip link del vrf2 | |
/usr/bin/env ip route flush table 2 | |
/usr/bin/env ip rule add to 198.51.100.0/30 table 2 | |
/usr/bin/env ip netns add _netcrave | |
/usr/bin/env ip netns exec _netcrave ip link set lo up | |
/usr/bin/env ip netns exec _netcrave ip link add ns0vrf2 type vrf table 2 |
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
# IAmPaigeAT ([email protected]) 2023 | |
import logging | |
import asyncio.subprocess | |
import subprocess | |
import os, tempfile | |
from os import O_NONBLOCK | |
import itertools | |
from pathlib import Path | |
import sys | |
import time |