summaryrefslogtreecommitdiffstats
path: root/web-tools/bin/index-test.html
diff options
context:
space:
mode:
Diffstat (limited to 'web-tools/bin/index-test.html')
-rw-r--r--web-tools/bin/index-test.html298
1 files changed, 298 insertions, 0 deletions
diff --git a/web-tools/bin/index-test.html b/web-tools/bin/index-test.html
new file mode 100644
index 0000000..09861e4
--- /dev/null
+++ b/web-tools/bin/index-test.html
@@ -0,0 +1,298 @@
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
+ <meta name="author" content="bfh.info">
+ <meta name="description" content="tools.bfh.info">
+ <meta name="generator" content="bfh-linux-sysadmin@lists.bfh.science">
+
+ <title>tools.bfh.info</title>
+ <link rel="canonical" href="https://bfh.info">
+
+ <!-- Bootstrap core CSS -->
+ <link href="/_static/bootstrap/css/bootstrap.min.css" rel="stylesheet">
+
+ <!-- Custom styles for this template -->
+ <link href="/_static/dejavu-fonts/dejavu-fonts.css" rel="stylesheet">
+ <link href="/_static/fontawesome-pro/css/all.min.css" rel="stylesheet">
+
+ <link href="/_static/local/body.css" rel="stylesheet">
+ <link href="/_static/local/font.css" rel="stylesheet">
+ <link href="/_static/local/footer.css" rel="stylesheet">
+ </head>
+
+ <body>
+ <nav class="navbar navbar-expand-md navbar-dark bg-dark fixed-top">
+ <a class="navbar-brand" href="/"><b>tools.bfh.info</b></a>
+ <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarsDefault" aria-controls="navbarsDefault" aria-expanded="false" aria-label="Toggle navigation">
+ <span class="navbar-toggler-icon"></span>
+ </button>
+
+ <div class="collapse navbar-collapse" id="navbarsDefault">
+ <ul class="navbar-nav mr-auto">
+ </ul>
+ </div>
+ </nav>
+
+ <main role="main" class="container">
+
+ <div class="content">
+
+<!--
+Copyright (C) 2013-2021 Daniel Baumann <daniel@debian.org>
+
+SPDX-License-Identifier: GPL-3.0+
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program. If not, see <http://www.gnu.org/licenses/>.
+-->
+
+<a name="top"></a>
+<h1><i class="fa-fw far fa-tools"></i> Network Tools<sup><small>TEST</small></sup> &nbsp;&nbsp;&nbsp; <small>(<a href="/api">API</a>)</small></h1>
+<div style="height: 2em"></div>
+
+<script src="/_static/jquery/jquery.min.js"></script>
+
+<script>
+ $(document).ready(function(){
+ $("[type=button]").click(function() {
+ var command = $(this).data("command");
+ var protocol = $("input[name='protocol']:checked").val();
+ var target = document.getElementById("target").value;
+ var cgi = command + "&protocol=" + protocol + "&target=" + target;
+ $.ajax({url: cgi, success: function(result){
+ $("#output").text(result);
+ document.getElementById('output-hidden').style.display = 'block';
+ $(document).scrollTop( $("#output").offset().top -125);
+ }});
+ });
+
+ $("[type=reset]").click(function() {
+ $("#dual-stack").click();
+ $('.btn-group').find('reset').removeClass('active')
+ .end().find('[type="reset"]').prop('checked', false);
+ document.getElementById('output-hidden').style.display = 'none';
+ $("#target").focus();
+ $("#target").prop('autofocus');
+ });
+ });
+</script>
+
+<style type="text/css">
+ label, [type="button"], [type="reset"], [type="text"] {
+ margin-top: 0.5em;
+ }
+</style>
+
+<form id="form">
+ <div class="form-group">
+ <div class="row">
+ <div class="col-md-6">
+ <b>Target</b>
+ <input id="target" placeholder="IP address/subnet, FQDN, ASN, Internet resources..." style="width: 100%;" type="text" autofocus />
+
+ <div style="height: 1em"></div>
+ </div>
+
+ <div class="col-md-6">
+ <b>Settings</b><br />
+ <input class="btn btn-light btn-sm" type="reset" value="Reset" />
+
+ <div class="btn-group btn-group-toggle" data-toggle="buttons">
+ <label class="btn btn-light btn-sm active">
+ <input type="radio" name="protocol" id="dual-stack" value="dual-stack" checked> Dual-stack
+ </label>
+ <label class="btn btn-light btn-sm">
+ <input type="radio" name="protocol" id="ipv4-only" value="ipv4-only"> IPv4-only
+ </label>
+ <label class="btn btn-light btn-sm">
+ <input type="radio" name="protocol" id="ipv6-only" value="ipv6-only"> IPv6-only
+ </label>
+ </div>
+
+ <div style="height: 1em"></div>
+ </div>
+ </div>
+ </div>
+</form>
+
+<hr />
+
+<div class="row">
+ <div class="col-md-6">
+ <b>Network</b><br />
+ <button type="button" class="btn btn-success" data-command="/bin/tools-test.py?command=ping">ping</button>
+ <button type="button" class="btn btn-success" data-command="/bin/tools-test.py?command=traceroute">traceroute</button>
+ <button type="button" class="btn btn-success" data-command="/bin/tools-test.py?command=tcptraceroute">tcptraceroute</button>
+ <button type="button" class="btn btn-success" data-command="/bin/tools-test.py?command=whois">whois</button>
+
+ <div style="height: 1em"></div>
+
+ <b>Security</b><br />
+ <button type="button" class="btn btn-warning" data-command="/bin/tools-test.py?command=nmap">nmap</button>
+ <button type="button" class="btn btn-warning" data-command="/bin/tools-test.py?command=testssl">testssl</button>
+
+ <div style="height: 1em"></div>
+
+ <b>other</b><br />
+ <button type="button" class="btn btn-info" data-command="/bin/tools-test.py?command=my-ip&target=none">My IP</button>
+ <button type="button" class="btn btn-info" data-command="/bin/tools-test.py?command=my-browser&target=none">My browser</button>
+
+ <div style="height: 1em"></div>
+ </div>
+
+ <div class="col-md-6">
+ <b>DNS</b><br />
+ <small><b>Address-related records</b></small><br />
+ <button type="button" class="btn btn-primary" data-command="/bin/tools-test.py?command=kdig&query=ANY">ANY</button>
+ <button type="button" class="btn btn-primary" data-command="/bin/tools-test.py?command=kdig&query=A">A</button>
+ <button type="button" class="btn btn-primary" data-command="/bin/tools-test.py?command=kdig&query=AAAA">AAAA</button>
+ <button type="button" class="btn btn-primary" data-command="/bin/tools-test.py?command=kdig&query=CNAME">CNAME</button>
+ <button type="button" class="btn btn-primary" data-command="/bin/tools-test.py?command=kdig&query=DNAME">DNAME</button>
+ <button type="button" class="btn btn-primary" data-command="/bin/tools-test.py?command=kdig&query=PTR">PTR</button>
+
+ <div style="height: 1em"></div>
+
+ <small><b>Informational records</b></small><br />
+ <button type="button" class="btn btn-info" data-command="/bin/tools-test.py?command=kdig&query=APL">APL</button>
+ <button type="button" class="btn btn-info" data-command="/bin/tools-test.py?command=kdig&query=HINFO">HINFO</button>
+ <button type="button" class="btn btn-info" data-command="/bin/tools-test.py?command=kdig&query=LOC">LOC</button>
+ <button type="button" class="btn btn-info" data-command="/bin/tools-test.py?command=kdig&query=RP">RP</button>
+ <button type="button" class="btn btn-info" data-command="/bin/tools-test.py?command=kdig&query=SOA">SOA</button>
+ <button type="button" class="btn btn-info" data-command="/bin/tools-test.py?command=kdig&query=SRV">SRV</button>
+ <button type="button" class="btn btn-info" data-command="/bin/tools-test.py?command=kdig&query=TXT">TXT</button>
+
+ <div style="height: 1em"></div>
+
+ <small><b>DNSSEC records</b></small><br />
+ <button type="button" class="btn btn-secondary" data-command="/bin/tools-test.py?command=kdig&query=CDNSKEY">CDNSKEY</button>
+ <button type="button" class="btn btn-secondary" data-command="/bin/tools-test.py?command=kdig&query=CDS">CDS</button>
+ <button type="button" class="btn btn-secondary" data-command="/bin/tools-test.py?command=kdig&query=DNSKEY">DNSKEY</button>
+ <button type="button" class="btn btn-secondary" data-command="/bin/tools-test.py?command=kdig&query=DS">DS</button>
+ <button type="button" class="btn btn-secondary" data-command="/bin/tools-test.py?command=kdig&query=RRSIG">RRSIG</button>
+
+ <div style="height: 1em"></div>
+
+ <small><b>Security-related records</b></small><br />
+ <button type="button" class="btn btn-warning" data-command="/bin/tools-test.py?command=kdig&query=CAA">CAA</button>
+ <button type="button" class="btn btn-warning" data-command="/bin/tools-test.py?command=kdig&query=NSEC3">NSEC3</button>
+ <button type="button" class="btn btn-warning" data-command="/bin/tools-test.py?command=kdig&query=NSEC3PARAM">NSEC3PARAM</button>
+ <button type="button" class="btn btn-warning" data-command="/bin/tools-test.py?command=kdig&query=SSHFP">SSHFP</button>
+ <button type="button" class="btn btn-warning" data-command="/bin/tools-test.py?command=kdig&query=TLSA">TLSA</button>
+
+ <div style="height: 1em"></div>
+
+ <small><b>other records and types</b></small><br />
+ <button type="button" class="btn btn-success" data-command="/bin/tools-test.py?command=kdig&query=AXFR">AXFR*</button>
+ <button type="button" class="btn btn-success" data-command="/bin/tools-test.py?command=kdig&query=MX">MX</button>
+ <button type="button" class="btn btn-success" data-command="/bin/tools-test.py?command=kdig&query=NS">NS</button>
+
+ <div style="height: 1em"></div>
+
+ <small><b>Legacy records</b></small><br />
+ <button type="button" class="btn btn-danger" data-command="/bin/tools-test.py?command=kdig&query=NSEC">NSEC</button>
+ <button type="button" class="btn btn-danger" data-command="/bin/tools-test.py?command=kdig&query=SPF">SPF</button>
+
+ <div style="height: 1em"></div>
+ </div>
+</div>
+
+<div class="row">
+ <div class="col-md-6">
+ <small><b>Notes:</b>
+ <ul>
+ <li>testssl can take up to 5min (with currently no output until the end)</li>
+ </ul></small>
+
+ <div style="height: 1em"></div>
+ </div>
+
+ <div class="col-md-6">
+ <small><b>*</b> only available for BFH authoritative zones</small>
+
+ <div style="height: 1em"></div>
+ </div>
+</div>
+
+<hr />
+
+<div id="output-hidden" style="display: none;">
+<a name="output"></a>
+<a href="#top"><button type="button" class="btn btn-light btn-sm float-right">&uarr;</button></a><br />
+<b>Output</b><br />
+<pre>
+<textarea id="output" readonly rows="25" style="background: #f1f1f1; width: 100%;"></textarea>
+</pre>
+</div>
+
+<div style="height: 1em"></div>
+
+
+ </div>
+
+ </main><!-- /.container -->
+
+ <footer class="footer py-5">
+ <div class="container">
+ <div class="row">
+ <div class="col-md-2">
+ <a href="https://www.bfh.ch"><img src="/logo.svg" style="height: 112.5px" /></a><br />
+ <br />
+ </div>
+ <div class="col-md-3">
+ <small>
+ <strong><i class="fa-fw fas fa-map-marker"></i> Address</strong><br />
+ <a class="text-muted" href="https://www.openstreetmap.org/search?query=Dammweg 3%2C 3013 Bern">Berner Fachhochschule<br />
+ IT-Services<br />
+ Team Linux &amp; Infrastructure Services<br />
+ Dammweg 3, CH-3013 Bern</a><br />
+ <br />
+ </small>
+ </div>
+ <div class="col-md-3">
+ <small>
+ <strong><i class="fa-fw fas fa-phone"></i> Phone</strong><br />
+ <a class="text-muted" href="#">+41 31 848 48 48</a><br />
+ <br />
+ <strong><i class="fa-fw fas fa-envelope"></i> Email</strong><br />
+ <a class="text-muted" href="mailto:bfh-linux-sysadmin@lists.bfh.science?subject=BFH.science:%20Feedback">bfh-linux-sysadmin@lists.bfh.science</a><br />
+ <br />
+ </small>
+ </div>
+ <div class="col-md-4">
+ <small>
+ <br />
+ <br />
+ <br />
+ <br />
+ <i class="fa-fw fas fa-copyright"></i> <a class="text-muted" href="https://bfh.science/other/legal">2021</a>
+ &nbsp; &nbsp;
+ <a style="color: inherit;" href="https://bfh.science/other/legal" title="Legal Information"><i class="fa-fw fas fa-balance-scale"></i></a> <a class="text-muted" href="https://bfh.science/other/legal" title="Legal Information">Legal Information</a>
+ &nbsp; &nbsp;
+ <a class="a-hover-red" href="https://git.bfh.info" title="Made with Love and Git"><i class="fa-fw fas fa-heart"></i></a> <a class="text-muted" href="https://git.bfh.info" title="Made with Love and Git">Source Code</a><br />
+ <br />
+ </small>
+ </div>
+ </div>
+ </div>
+ </footer>
+
+ <!-- Bootstrap core JS -->
+ <script src="/_static/popperjs/popper.min.js"></script>
+ <script src="/_static/bootstrap/js/bootstrap.min.js"></script>
+
+ <!-- Custom scripts for this template -->
+ <script src="/_static/local/table.js"></script>
+ </body>
+</html>