banshee est en développement actif : les collecteurs vont encore changer, et une version que vous publiez demandera sans doute des ajustements. Pour un usage stable, attendez la version 1.0.0.

Examples

banshee/examples-collection/examples/protocols/

tls-try

Example: tls.try, one version offered; does a server still accept TLS 1.0.

  • example
  • protocol
  • tls
  • version

par banshee1 installation1 version

v1Dernière

Publiée le 27 octobre 2026. First version in this collection.

Keen 1.0.0 · 15 lignes
// tls.try: a handshake that offers one version of TLS only. A server that refuses it gives an answer,
// accepted false, not a failure.
// The collector checks whether a server still accepts TLS 1.0.
need('host:address');

output('tls10', 'text', array('label' => 'TLS 1.0 accepted'));

watch.state('old-tls', 'Old protocol accepted', 'tls10', array('warning' => array('yes')));

$try = tls.try(443, '1.0');
$accepted = 'no';
if ($try['accepted']) {
    $accepted = 'yes';
}
value('tls10', $accepted);