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
@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")
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
<div class="button-container">
<a target="_blank" href="https://www.aicrowd.com/challenges/food-recognition-challenge" style="float:right;-webkit-text-size-adjust: none; text-decoration: none; display: inline-block; color: #ffffff; background-color: #de4b46; border-radius: 4px; -webkit-border-radius: 4px; -moz-border-radius: 4px; width: auto; width: auto; border-top: 1px solid #de4b46; border-right: 1px solid #de4b46; border-bottom: 1px solid #de4b46; border-left: 1px solid #de4b46; padding-top: 5px; padding-bottom: 5px; font-family: Helvetica Neue, Helvetica, Arial, sans-serif; text-align: center; mso-border-alt: none; word-break: keep-all;">
<span style="padding-left:10px;padding-right:10px;font-size:14px;display:inline-block;">
<span style="line-height: 19px; word-break: break-word;">
<span style="font-size: 14px; line-height: 16px;" data-mce-style="font-size: 14px; line-height: 16px;">
Read More
</span>
</span>
</span>
</a>
usePassword: true
master:
port: 6379
command: "/run.sh"
disableCommands:
- FLUSHDB
- FLUSHALL
service:
type: LoadBalancer
port: 6379
@skbly7
skbly7 / cisco_create_guest_user.py
Created February 1, 2018 21:49
Scripted guest account creation in Cisco Wireless Controllers
controller = '10.0.0.0' # Cisco controller IP
username = 'admin'
password = 'password_here'
user_file = 'users.csv'
description = 'ISEC User'
# Check WLAN ID from Controller!
# http://10.0.0.0/screens/apf/wlan_list.html
wlanID = '4' # IIIT-Guest
###################################################