mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-27 02:24:18 +00:00
8 lines
190 B
Python
Executable File
8 lines
190 B
Python
Executable File
#!/usr/bin/env python
|
|
import sys
|
|
sys.path.insert(0, "../..")
|
|
import socket, tempfile, ssl, subprocess
|
|
|
|
addr = socket.gethostbyname(sys.argv[1])
|
|
print ssl.get_server_certificate((addr, 443))
|