Skip to content

Instantly share code, notes, and snippets.

View joshspicer's full-sized avatar
🌶️
¯\_(ツ)_/¯

Josh Spicer joshspicer

🌶️
¯\_(ツ)_/¯
View GitHub Profile
@joshspicer
joshspicer / govee.py
Created December 6, 2020 14:53
Govee 5072 Bluetooth LE
#!/usr/bin/env python3
# Taken from: https://github.com/Thrilleratplay/GoveeWatcher/blob/master/python/goveeWatcher.py
# Tested with Govee Temp/Humidity BT LE (model 5072)
from time import sleep
import os
import sys
from bleson import get_provider, Observer, UUID16
# Reverse Shell for Azure VMs
# Author: Josh Spicer <[email protected]>
#### GOAL ####
# For any Azure Compute Linux VM where you have permission to execute one-off commands via the Azure CLI,
# issues a reverse shell command to the VM and sends the shell back to you over TCP (via an ngrok tunnel)
#### Prereqs ####
# socat
# ngrok
#!/bin/bash
airmon-ng check kill
airmon-ng start wlan1
ifconfig wlan1mon up 192.168.1.1 netmask 255.255.255.0
route add -net 192.168.1.0 netmask 255.255.255.0 gw 192.168.1.1
iptables --table nat --append POSTROUTING --out-interface eth0 -j MASQUERADE
iptables --append FORWARD --in-interface wlan1mon -j ACCEPT
@joshspicer
joshspicer / __init__.py
Last active January 15, 2025 00:52
Minimal Home Assistant Integration to control an ELK-BLEDOM Bluetooth Device (https://joshspicer.com/ELK-BLEDOM)
"""Config flow for On Air Sign integration."""
from __future__ import annotations
import voluptuous as vol
from homeassistant import config_entries
from .const import DOMAIN, DEVICE_ADDRESS
class OnAirSignConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
"""Handle a config flow for On Air Sign."""