mirror of https://gitlab.com/bashrc2/epicyon
Check start of briar address
parent
26e82060f1
commit
42023ade49
4
briar.py
4
briar.py
|
@ -26,6 +26,8 @@ def getBriarAddress(actorJson: {}) -> str:
|
||||||
propertyValue['value'] = propertyValue['value'].strip()
|
propertyValue['value'] = propertyValue['value'].strip()
|
||||||
if len(propertyValue['value']) < 50:
|
if len(propertyValue['value']) < 50:
|
||||||
continue
|
continue
|
||||||
|
if not propertyValue['value'].startswith('briar://'):
|
||||||
|
continue
|
||||||
if propertyValue['value'].lower() != propertyValue['value']:
|
if propertyValue['value'].lower() != propertyValue['value']:
|
||||||
continue
|
continue
|
||||||
if '"' in propertyValue['value']:
|
if '"' in propertyValue['value']:
|
||||||
|
@ -47,6 +49,8 @@ def setBriarAddress(actorJson: {}, briarAddress: str) -> None:
|
||||||
|
|
||||||
if len(briarAddress) < 50:
|
if len(briarAddress) < 50:
|
||||||
notBriarAddress = True
|
notBriarAddress = True
|
||||||
|
if not briarAddress.startswith('briar://'):
|
||||||
|
notBriarAddress = True
|
||||||
if briarAddress.lower() != briarAddress:
|
if briarAddress.lower() != briarAddress:
|
||||||
notBriarAddress = True
|
notBriarAddress = True
|
||||||
if '"' in briarAddress:
|
if '"' in briarAddress:
|
||||||
|
|
Loading…
Reference in New Issue