Skip to content

Instantly share code, notes, and snippets.

View loplex's full-sized avatar

Martin (Lopin) Lopatář loplex

  • DataPLEX
  • Brno, Czech Republic
  • 07:52 (UTC +02:00)
View GitHub Profile
@loplex
loplex / get_tds_cert.py
Last active June 2, 2020 13:50 — forked from lnattrass/get_tds_cert.py
A terrible way to connect to MS SQL Server and dump the certificate as a PEM
#!/usr/bin/python3
import sys
import pprint
import struct
import socket
import ssl
from time import sleep
# Standard "HELLO" message for TDS
@loplex
loplex / Docker
Created April 23, 2017 13:14 — forked from mitchwongho/Docker
Docker 'run' command to start an interactive BaSH session
# Assuming an Ubuntu Docker image
$ docker run -it <image> /bin/bash