INNER CODE UNIT · Python
choice
rfc-st/humble · humble.py:500
choice = input( # false-positive
f"{get_detail('[testssl_choice]', replace=True)} ")[:1].strip().lower()
if choice != "y":
sys.exit(0)
delete_lines()
testssl_cmd = [testssl_path, *TESTSSL_OPTIONS, uri]
testssl_analysis(testssl_cmd)
sys.exit(0)
def testssl_analysis(testssl_cmd):
"""Run TLS/SSL analysis with testssl.sh, related to `-e` option.
??? note
This function is safe from injection: `shell=True` is not used,
arguments are passed as a list and `testssl.sh` options are defined in
the `TESTSSL_OPTIONS` constant.
"""