Fix issue #1
This commit is contained in:
parent
61f0a08113
commit
87e1c957a7
8
index.py
8
index.py
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user