Exemplo n.º 1
0
<body>
  
  <a id="top-of-page"></a>
  <?php 
if (isset($_GET['host']) && !empty($_GET['host'])) {
    echo '<div id="wrapper">';
    $data = [];
    $hostname = mb_strtolower(get($_GET['host']));
    $hostname = parse_hostname($hostname);
    $host = $hostname['hostname'];
    $port = get($_GET['port'], '443');
    if (!is_numeric($port)) {
        $port = 443;
    }
    if ($hostname['multiple_ip']) {
        choose_endpoint($hostname['multiple_ip'], $host, $port, $_GET['ciphersuites']);
    }
    $ip = $hostname['ip'];
    $data["data"] = check_json($host, $ip, $port);
    if (isset($data["data"]["error"])) {
        $data["error"] = $data["data"]["error"];
        unset($data["data"]);
    }
    $chain_length = count($data["data"]["chain"]);
    $chain_data = $data["data"]["chain"];
    if ($chain_length >= 1 && $chain_length < 10) {
        ?>
  <!-- Sidebar -->
  <div id="sidebar-wrapper">
    <nav>
      <ul class="sidebar-nav">
Exemplo n.º 2
0
<body>
  
  <a id="top-of-page"></a>
  <?php 
if (isset($_GET['host']) && !empty($_GET['host'])) {
    echo '<div id="wrapper">';
    $data = [];
    $hostname = mb_strtolower(get($_GET['host']));
    $hostname = parse_hostname($hostname);
    $host = $hostname['hostname'];
    $port = get($_GET['port'], '443');
    if (!is_numeric($port)) {
        $port = 443;
    }
    if ($hostname['multiple_ip']) {
        choose_endpoint($hostname['multiple_ip'], $host, $port, $_GET['fastcheck']);
    }
    if ($_GET['fastcheck'] == 1) {
        $fastcheck = 1;
    } else {
        $fastcheck = 0;
    }
    $ip = $hostname['ip'];
    $data["data"] = check_json($host, $ip, $port, $fastcheck);
    if (isset($data["data"]["error"])) {
        $data["error"] = $data["data"]["error"];
        unset($data["data"]);
    }
    $chain_length = count($data["data"]["chain"]);
    $chain_data = $data["data"]["chain"];
    if ($chain_length >= 1 && $chain_length < 10) {