New function to get weakness level of cipher
This commit is contained in:
parent
c28b688943
commit
dca9329267
@ -48,3 +48,17 @@ def test(host, cipher):
|
|||||||
except ConnectionResetError:
|
except ConnectionResetError:
|
||||||
pass
|
pass
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
||||||
|
def weakness_level(cipher):
|
||||||
|
wl = [
|
||||||
|
"aNULL:eNULL",
|
||||||
|
"EXPORT",
|
||||||
|
"LOW",
|
||||||
|
"MEDIUM",
|
||||||
|
"HIGH"
|
||||||
|
]
|
||||||
|
for i in range(len(wl)):
|
||||||
|
if cipher in get(wl[i]):
|
||||||
|
return i + 1
|
||||||
|
return 0
|
||||||
|
Loading…
Reference in New Issue
Block a user