mirror of
https://github.com/vee1e/mitmproxy.git
synced 2026-09-02 18:57:22 +00:00
7 lines
190 B
Python
Executable file
7 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))
|