/vom-scripts

A collection of scripts I've written over the years.

Primary LanguagePython

  • oui.pl

    • MAC (OUI) registration lookup (Company name).
  • wepscii.pl

    • Convert ascii->hex, hex->ascii for WEP keys.
  • revwalk.pl

    • Walk a CIDR (IPv4) and lookup PTRs.
  • neighbor-list.pl

    • ARP/ND with gravy. Print out all neighbors, MAC vendor, RDNS, etc. (Linux)
  • nxos-rot.pl

    • Cisco NXOS "rotational" cipher.
  • mon.sh

    • Recent linux kernels, wireless drivers, etc very persnickety about changing MAC
  • smartreport.pl

    • Linux / FreeBSD - prints out misc. info about hard disks
  • fourbyte.pl

    • Convert 32-bit ASN from ASPLAIN <-> ASDOT
  • icecast-list-clients.py(3)

    • List connected clients and other info from an icecast streaming server
  • ap-client-list.pl

    • List wireless client details on Cisco IOS Autonomous/WAP300 (possibly more) APs
  • ap-client-list-engenius.py(3)

    • List wireless client details on Engenius APs (tested on EWS377AP)
    • Needs colorama, paramiko, pysnmp
  • ap-client-list-zyxel.py3

    • List wireless client details on Zyxel APs (tested on NMA210AX)
    • Needs colorama, pysnmp
  • ap-client-list-aruba.py3

    • List wireless client details on Aruba IAP VC APs (tested on AP515, 8.6.x.x)
    • Needs colorama, pysnmp
  • ap-guest-psk/

    • Generate random PSK for guest wifi. <adjective + noun + 4 digit> Push to Aruba IAP via REST.
    • You will need to edit the script to change your SSID, password etc. This was for internal use, so it wasn't made to be "friendly".
    • Needs qrencode on system.
  • ups-remaining.py(3)

    • Connect to nut (Network UPS Tools), get UPS runtime and battery charge, display, refresh.
  • isis-net.pl

    • Convert IS-IS NET IP address and vice versa
    • Example:
vom@onosendai 💀 vom-scripts % ./isis-net.pl 123.45.67.89
1230.4506.7089
vom@onosendai 💀 vom-scripts % ./isis-net.pl 49.0001.1230.4506.7089.00
123.45.67.89
vom@onosendai 💀 vom-scripts % ./isis-net.pl 1230.4506.7089           
123.45.67.89
  • bgp-comm-format.py

    • Convert BGP raw decimal community to "new format" and vice-versa.
  • generate-parental-agents/

    • Script to create BIND file with parental agents (upstream NS's) for given zone
  • kea-lease-list4.py

    • Retrieve all DHCP (v4) leases from Kea via management API. Needs a few extra modules (mac_vendor_lookup, colorama, etc).