Skip to content

Instantly share code, notes, and snippets.

View angeloxx's full-sized avatar
🎯
Focusing

angeloxx angeloxx

🎯
Focusing
View GitHub Profile
@lnattrass
lnattrass / get_tds_cert.py
Last active February 6, 2025 23:30
A terrible way to connect to MS SQL Server and dump the certificate as a PEM
import sys
import pprint
import struct
import socket
import ssl
from time import sleep
# Standard "HELLO" message for TDS
prelogin_msg = bytearray([ 0x12, 0x01, 0x00, 0x2f, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x1a, 0x00, 0x06, 0x01, 0x00, 0x20,
0x00, 0x01, 0x02, 0x00, 0x21, 0x00, 0x01, 0x03, 0x00, 0x22, 0x00, 0x04, 0x04, 0x00, 0x26, 0x00,
@ctalkington
ctalkington / README.md
Last active March 21, 2020 09:27
Observium BIND Unix Agent

Observium BIND 9.6 Unix Agent

This collection of scripts is designed for BIND 9.6+ and the SVN version of Observium. Only tested on one machine at this point in time so YMMV.

Files

  • agent-local -> scripts/agent-local/bind
  • app-bind.inc.php -> html/pages/device/apps/bind.inc.php
  • graph-bind_queries.inc.php -> html/includes/graphs/application/bind_queries.inc.php
  • graph-bind_queries_by_type.inc.php -> html/includes/graphs/application/bind_queries_by_type.inc.php