This commit is contained in:
Beu 2019-03-07 08:51:49 +01:00
parent 61f0a08113
commit 87e1c957a7

View File

@ -41,14 +41,14 @@ def tlsa_validation(DOMAIN):
return(False) return(False)
else: else:
tlsaanswer = str(response.answer[-1]) tlsaanswer = str(response.answer[-1])
tlsatable = tlsaanswer.split() tlsalist = tlsaanswer.split()
if len(tlsalist) < 7: if len(tlsalist) < 7:
return(False) return(False)
selector = str(tlsatable[5]) selector = str(tlsalist[5])
mtype = str(tlsatable[6]) mtype = str(tlsalist[6])
hexdata1 = str(tlsatable[7]) hexdata1 = str(tlsalist[7])
conn = ssl.create_connection((DOMAIN , 443)) conn = ssl.create_connection((DOMAIN , 443))
context = ssl.SSLContext(ssl.PROTOCOL_SSLv23) context = ssl.SSLContext(ssl.PROTOCOL_SSLv23)