Esempio n. 1
0
 $hostfilename = preg_replace("([\\.]{2,})", '', $host);
 $hostfilename = preg_replace("([^a-z0-9])", '', $host);
 $cache_filename = (string) "results/saved." . $hostfilename . "." . $epoch . "." . $random_bla . ".html";
 $cache_filename_json = (string) "results/saved." . $hostfilename . "." . $epoch . "." . $random_bla . ".json";
 echo "<p><strong>This tool does not make conclusions. Please check the data and define the validity yourself!</strong></p>";
 if ($write_cache == 1) {
     echo "<p>This result is saved at most 60 days on <a href=\"";
     echo htmlspecialchars($current_folder) . $cache_filename;
     echo "\">the following URL</a>. Do note that this might be deleted earlier if space runs out.<br></p>";
 }
 echo "<script type='text/javascript'>document.title = \"" . htmlspecialchars($host) . ":" . htmlspecialchars($port) . " - SSL Decoder \"</script>";
 echo "<p>Receive notifications when this certificate is about to expire with my other service, <a href='https://certificatemonitor.org/'>Certificate Monitor</a>.</p>";
 // connection data
 echo "<div class='content'><section id='conndata'>";
 echo "<header><h2>Connection Data for " . htmlspecialchars($host) . " / " . htmlspecialchars($ip) . "</h2></header>";
 ssl_conn_metadata($data["data"]["connection"]);
 echo "</section></div>";
 // certificates
 foreach ($data["data"]["chain"] as $key => $value) {
     echo "<div class='content'><section id='cert" . $key . "'>";
     echo "<header><h2>Certificate for '" . htmlspecialchars($value["cert_data"]["subject"]["CN"]) . "'</h2></header>";
     cert_parse($value);
     echo "</section></div>";
 }
 // submit to certificate transparency
 echo "<div class='content'><section id='ctsubmit'>";
 echo "<header><h2>Certificate Transparency Submission</h2></header>";
 echo "<p><a href='http://www.certificate-transparency.org/'>Information about Certificate Transparency</a></p>";
 foreach ($ct_urls as $ct_url) {
     echo "<table class='table table-striped table-bordered'>";
     echo "<tr><td>CT Log URL</td><td>" . htmlspecialchars($ct_url) . "</td></tr>";
Esempio n. 2
0
 $hostfilename = preg_replace("([\\.]{2,})", '', $host);
 $hostfilename = preg_replace("([^a-z0-9])", '', $host);
 $cache_filename = (string) "results/saved." . $hostfilename . "." . $epoch . "." . $random_bla . ".html";
 $cache_filename_json = (string) "results/saved." . $hostfilename . "." . $epoch . "." . $random_bla . ".json";
 echo "<p><strong>This tool does not make conclusions. Please check the data and define the validity yourself!</strong></p>";
 if ($write_cache == 1) {
     echo "<p>This result is saved at most 60 days on <a href=\"";
     echo htmlspecialchars($current_folder) . $cache_filename;
     echo "\">the following URL</a>. Do note that this might be deleted earlier if space runs out.<br></p>";
 }
 echo "<script type='text/javascript'>document.title = \"" . htmlspecialchars($host) . ":" . htmlspecialchars($port) . " - SSL Decoder \"</script>";
 echo "<p>Receive notifications when this certificate is about to expire with my other service, <a href='https://certificatemonitor.org/'>Certificate Monitor</a>.</p>";
 // connection data
 echo "<div class='content'><section id='conndata'>";
 echo "<header><h2>Connection Data for " . htmlspecialchars($host) . " / " . htmlspecialchars($ip) . "</h2></header>";
 ssl_conn_metadata($data["data"]["connection"], $fastcheck);
 if ($_GET['fastcheck'] == 1) {
     echo "<p>Fast check selected, therefore Connection Data enumeration is limited.</p>";
 }
 echo "</section></div>";
 // certificates
 foreach ($data["data"]["chain"] as $key => $value) {
     echo "<div class='content'><section id='cert" . $key . "'>";
     echo "<header><h2>Certificate for '" . htmlspecialchars($value["cert_data"]["subject"]["CN"]) . "'</h2></header>";
     cert_parse($value);
     echo "</section></div>";
 }
 // submit to certificate transparency
 if ($_GET['fastcheck'] == 0) {
     echo "<div class='content'><section id='ctsubmit'>";
     echo "<header><h2>Certificate Transparency Submission</h2></header>";