Skip to content

Instantly share code, notes, and snippets.

View skbly7's full-sized avatar
🌐
Somewhere in universe

Shivam Khandelwal skbly7

🌐
Somewhere in universe
View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
usePassword: true
master:
port: 6379
command: "/run.sh"
disableCommands:
- FLUSHDB
- FLUSHALL
service:
type: LoadBalancer
port: 6379
@skbly7
skbly7 / receive.py
Created July 19, 2023 21:50
layer2 fun
import argparse
from pypacker import psocket
from pypacker.pypacker import mac_bytes_to_str
from pypacker.layer12 import ethernet
parser = argparse.ArgumentParser()
parser.add_argument("-v", "--verbose", help="print whole packets", action="store_true")
parser.add_argument("-s", "--source", help="filter packet with source mac (all caps)")
parser.add_argument("-i", "--interface", help="interface to use", default="ens5")