Skip to content

Instantly share code, notes, and snippets.

View phantomOPBro's full-sized avatar

PhantomOPBro phantomOPBro

View GitHub Profile
@zed
zed / getcert.py
Last active April 23, 2021 06:30
Show server's ssl certificate as json.
#!/usr/bin/env python3
"""Show server's certificate as json.
Usage:
$ %(prog)s HOST [PORT]
"""
import json
import socket
import ssl
import sys
@cgoldberg
cgoldberg / get_image_info.py
Last active August 18, 2023 02:05
validate and analyze dimensions of [PNG, JPG, GIF], image files in Python.
#!/usr/bin/env python
#
# Corey Goldberg, 2013
#
# Python 2.7
"""validate and analyze dimensions of image files. Supports: PNG, JPG, GIF."""