Skip to content

Instantly share code, notes, and snippets.

@zemerick1
zemerick1 / main.py
Created August 5, 2021 00:46
SCAPY - LLDP Impersonation
#Import Scapy
from scapy.all import *
chassis = bytearray(7)
#chassis[0:3] = (0x02,0x06,0x07)
chassis[0:3] = (0x02,0x07,0x04)
chassis[3:] = (0x94,0xf1,0x28,0x8b,0xaa,0x1f)
#chassis[3:] = str.encode('94:f1:28:8b:aa:1f', 'utf-8')
<#
.SYNOPSIS
Probes a set or range of VLANs for an IP Address
.DESCRIPTION
Probes a set or range of VLANs to see if the port you're connected to allows traffic for that particular VLAN.
.PARAMETER Vlans
Specify a range of VLANs in Powershell range format (n..m), or a comma-delimited list.
@zemerick1
zemerick1 / cppm_tracker.py
Created February 6, 2019 14:41
Home Assistant - CPPM Tracker - Tracks whose online #python #Home Assistant
import logging
import json
from datetime import datetime
from datetime import timedelta
import voluptuous as vol
import homeassistant.components as core
from homeassistant.util import Throttle
import homeassistant.helpers.config_validation as cv
from homeassistant.components.device_tracker import PLATFORM_SCHEMA, DeviceScanner, DOMAIN
@zemerick1
zemerick1 / AMEX_Login.py
Created February 5, 2019 03:31
AMEX - HYSA Scraper #Python #Web #Selenium
from bs4 import BeautifulSoup
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
import os
import sys
headers = {'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36'}
url = 'https://personalsavings.americanexpress.com/onlinebanking/'