Skip to content

Instantly share code, notes, and snippets.

View clayrosenthal's full-sized avatar

Clay Rosenthal clayrosenthal

  • Covariant
  • San Francisco CA
View GitHub Profile
@clayrosenthal
clayrosenthal / keybase.md
Created January 26, 2024 22:23
Keybase proof

Keybase proof

I hereby claim:

  • I am clayrosenthal on github.
  • I am clayrosenthal (https://keybase.io/clayrosenthal) on keybase.
  • I have a public key ASD22IpU6Mr7aY5neXYPAhzW_CixxBA7bcDdw2vW9Mm9VQo

To claim this, I am signing this object:

@clayrosenthal
clayrosenthal / pfsense-dhcp.py
Created September 7, 2023 02:57
Scrape PFSense DHCP Leases Status Page and Export Results to JSON
#!/usr/bin/env python
# Scrapes pfSense DHCP Leases into List of (IP, MAC, Hostname) format.
# Change URL/Username/Password below ... pip install lxml ... then you are all set.
#
# Modified 6/23/2019 (FryGuy)
# Edits: Aligned IP/MAC/Hostname into struct accounting for blank lines
# Minor: Cleaned up spacing, created global url/user/password vars, removed write to file
# Original Code/Inspiration: https://gist.github.com/pletch/037a4a01c95688fff65752379534455f
# modified 9/6/2023 (clayrosenthal)