Skip to content

Instantly share code, notes, and snippets.

View bashtech's full-sized avatar

Andrew Bashore bashtech

View GitHub Profile
#!/bin/bash
# original author : Relliktsohg
# Huge thanks to Maine for his incremental backup
# Modified by bGeorge for use on the ATB Minecraft servers
. /lib/lsb/init-functions
# Configuration
MC_PATH=/home/gaming/minecraft
SCREEN_NAME="mc"

Keybase proof

I hereby claim:

  • I am bashtech on github.
  • I am bashtech (https://keybase.io/bashtech) on keybase.
  • I have a public key whose fingerprint is 1000 C58A EE99 2045 CB89 1D2C 3120 150F 5973 BA9F

To claim this, I am signing this object:

@bashtech
bashtech / get_tds_cert.py
Created April 19, 2021 17:53 — forked from Scherlac/get_tds_cert.py
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,