summaryrefslogtreecommitdiffstats
path: root/web/TMP/tools.html
blob: 6b8d23a38780f773363215930248fb06ad95e0a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
<!doctype html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="author" content="system-administration@open-infrastructure.net">
    <meta name="description" content="Open Infrastructure">
    <meta name="generator" content="open-infrastructure.net">
    <title>{hostname}</title>

    <link rel="canonical" href="https://open-infrastructure.net">
    <link rel="icon" href="/favicon.svg" type="image/svg+xml">

    <!-- Bootstrap core CSS -->
    <link href="/_static/bootstrap/css/bootstrap.min.css" rel="stylesheet">

    <!-- Custom styles for this template -->
    <link href="/_static/bootstrap-icons/bootstrap-icons.css" rel="stylesheet">
    <link href="/_static/dejavu-fonts/dejavu-fonts.css" rel="stylesheet">

    <link href="/_static/local/font.css" rel="stylesheet">
    <link href="/_static/local/icon.css" rel="stylesheet">
  </head>

  <body>
    <nav class="navbar navbar-expand-md navbar-dark fixed-top" style="background: #a40000">
      <div class="container-fluid">
        <a class="navbar-brand" href="/"><b>{hostname}</b></a>
        <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation">
          <span class="navbar-toggler-icon"></span>
        </button>
        <div style="width: 4em"></div>
        <div class="collapse navbar-collapse" id="navbarCollapse">
          <ul class="navbar-nav me-auto mb-2 mb-md-0">
            <li class="nav-item">
              <a class="nav-link active" aria-current="page" href="/systems">Systems</a>
            </li>
            <li><div style="width: 1em"></div></li>
            <li class="nav-item">
              <a class="nav-link active" aria-current="page" href="/tools">Tools</a>
            </li>
            <li><div style="width: 1em"></div></li>
            <li class="nav-item">
              <a class="nav-link active" aria-current="page" href="/ttyd">ttyd</a>
            </li>
            <li><div style="width: 1em"></div></li>
            <li class="nav-item">
              <a class="nav-link active" aria-current="page" href="/netdata">netdata</a>
            </li>
          </ul>
        </div>
      </div>
    </nav>

    <div class="container">
      <main>
      <!-- Begin content -->

    <main role="main" class="container">

      <div class="content">

<a name="top"></a>
<h1><i class="fa-fw far fa-tools"></i> Tools &nbsp;&nbsp;&nbsp; <small>(<a href="/tools/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="/tools.py?command=ping">ping</button>
    <button type="button" class="btn btn-success" data-command="/tools.py?command=traceroute">traceroute</button>
    <button type="button" class="btn btn-success" data-command="/tools.py?command=tcptraceroute">tcptraceroute</button>
    <button type="button" class="btn btn-success" data-command="/tools.py?command=whois">whois</button>

    <div style="height: 1em"></div>

    <b>Security</b><br />
    <button type="button" class="btn btn-warning" data-command="/tools.py?command=nmap">nmap</button>
    <button type="button" class="btn btn-warning" data-command="/tools.py?command=ssh-audit">ssh-audit</button>
    <button type="button" class="btn btn-warning" data-command="/tools.py?command=testssl">testssl</button>

    <div style="height: 1em"></div>

    <b>other</b><br />
    <button type="button" class="btn btn-info" data-command="/tools.py?command=my-ip&target=none">My IP</button>
    <button type="button" class="btn btn-info" data-command="/tools.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="/tools.py?command=kdig&query=ANY">ANY</button>
    <button type="button" class="btn btn-primary" data-command="/tools.py?command=kdig&query=A">A</button>
    <button type="button" class="btn btn-primary" data-command="/tools.py?command=kdig&query=AAAA">AAAA</button>
    <button type="button" class="btn btn-primary" data-command="/tools.py?command=kdig&query=CNAME">CNAME</button>
    <button type="button" class="btn btn-primary" data-command="/tools.py?command=kdig&query=DNAME">DNAME</button>
    <button type="button" class="btn btn-primary" data-command="/tools.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="/tools.py?command=kdig&query=APL">APL</button>
    <button type="button" class="btn btn-info" data-command="/tools.py?command=kdig&query=HINFO">HINFO</button>
    <button type="button" class="btn btn-info" data-command="/tools.py?command=kdig&query=LOC">LOC</button>
    <button type="button" class="btn btn-info" data-command="/tools.py?command=kdig&query=RP">RP</button>
    <button type="button" class="btn btn-info" data-command="/tools.py?command=kdig&query=SOA">SOA</button>
    <button type="button" class="btn btn-info" data-command="/tools.py?command=kdig&query=SRV">SRV</button>
    <button type="button" class="btn btn-info" data-command="/tools.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="/tools.py?command=kdig&query=CDNSKEY">CDNSKEY</button>
    <button type="button" class="btn btn-secondary" data-command="/tools.py?command=kdig&query=CDS">CDS</button>
    <button type="button" class="btn btn-secondary" data-command="/tools.py?command=kdig&query=DNSKEY">DNSKEY</button>
    <button type="button" class="btn btn-secondary" data-command="/tools.py?command=kdig&query=DS">DS</button>
    <button type="button" class="btn btn-secondary" data-command="/tools.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="/tools.py?command=kdig&query=CAA">CAA</button>
    <button type="button" class="btn btn-warning" data-command="/tools.py?command=kdig&query=NSEC3">NSEC3</button>
    <button type="button" class="btn btn-warning" data-command="/tools.py?command=kdig&query=NSEC3PARAM">NSEC3PARAM</button>
    <button type="button" class="btn btn-warning" data-command="/tools.py?command=kdig&query=SSHFP">SSHFP</button>
    <button type="button" class="btn btn-warning" data-command="/tools.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="/tools.py?command=kdig&query=AXFR">AXFR*</button>
    <button type="button" class="btn btn-success" data-command="/tools.py?command=kdig&query=MX">MX</button>
    <button type="button" class="btn btn-success" data-command="/tools.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="/tools.py?command=kdig&query=NSEC">NSEC</button>
    <button type="button" class="btn btn-danger" data-command="/tools.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 -->




      <!-- End content -->
      </main>

      <div style="height: 4em"></div>

      <footer class="d-flex flex-wrap justify-content-between align-items-center py-3 my-4 border-top">
        <p class="col-md-4 mb-0 text-muted">&copy; 2022</p>

        <ul class="nav col-md-4 justify-content-end">
          <li class="nav-item"><a href="https://open-infrastructure.net/contact" class="nav-link px-2 text-muted">Contact</a></li>
          <li class="nav-item"><a href="https://open-infrastructure.net/legal" class="nav-link px-2 text-muted">Legal</a></li>
        </ul>
      </footer>
    </div>

    <!-- 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 -->
  </body>
</html>