Skip to content

Instantly share code, notes, and snippets.


  • Earth
Block or report user

Report or block TiloGit

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
TiloGit /
Last active Aug 6, 2019 — forked from lnattrass/
A terrible way to connect to MS SQL Server and dump the certificate as a PEM
### run like:: python3 mySQLserver 1433
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,
You can’t perform that action at this time.