mirror of
https://github.com/vee1e/mitmproxy.git
synced 2026-09-03 03:07:18 +00:00
10 lines
208 B
Python
Executable file
10 lines
208 B
Python
Executable file
#!/usr/bin/env python
|
|
import sys
|
|
sys.path.insert(0, "../..")
|
|
import socket
|
|
import tempfile
|
|
import ssl
|
|
import subprocess
|
|
|
|
addr = socket.gethostbyname(sys.argv[1])
|
|
print ssl.get_server_certificate((addr, 443))
|