|
1 | 1 | <script src="{{ STATIC_URL }}js/hexdump.js"></script> |
2 | 2 | <section id="tcp" class="tcpudp"> |
3 | | - {% if network.tcp %} |
4 | | - <h4>TCP</h4> |
5 | | - <div class="row"> |
6 | | - <div class="col-md-6"> |
7 | | - <table class="table table-dark table-bordered"> |
8 | | - <tr> |
9 | | - <th>Source</th> |
10 | | - <th>Source Port</th> |
11 | | - <th>Destination</th> |
12 | | - <th>Destination Port</th> |
13 | | - </tr> |
14 | | - {% for p in network.tcp %} |
15 | | - <tr class="connrow" data="{{p.src}},{{p.sport}},{{p.dst}},{{p.dport}},tcp"> |
16 | | - <td>{{p.src}}</td> |
17 | | - <td>{{p.sport}}</td> |
18 | | - <td>{{p.dst}} |
19 | | - {% if network.iplookups %} |
20 | | - {{ network.iplookups|get_item:p.dst }} |
21 | | - {% endif %} |
22 | | - </td> |
23 | | - <td>{{p.dport}}</td> |
24 | | - </tr> |
25 | | - {% endfor %} |
26 | | - </table> |
27 | | - </div> |
28 | | - <div class="stream col-md-6"></div> |
| 3 | + <div class="card bg-dark border-secondary"> |
| 4 | + <div class="card-header border-secondary"> |
| 5 | + <h5 class="mb-0 text-white"><i class="fas fa-network-wired me-2 text-info"></i>TCP Connections</h5> |
29 | 6 | </div> |
30 | | - {% else %} |
31 | | - <p>No TCP connections recorded.</p> |
32 | | - {% endif %} |
| 7 | + {% if network.tcp %} |
| 8 | + <div class="card-body"> |
| 9 | + <div class="row"> |
| 10 | + <div class="col-md-6"> |
| 11 | + <table class="table table-dark table-striped table-bordered"> |
| 12 | + <tr> |
| 13 | + <th>Source</th> |
| 14 | + <th>Source Port</th> |
| 15 | + <th>Destination</th> |
| 16 | + <th>Destination Port</th> |
| 17 | + </tr> |
| 18 | + {% for p in network.tcp %} |
| 19 | + <tr class="connrow" data="{{p.src}},{{p.sport}},{{p.dst}},{{p.dport}},udp"> |
| 20 | + <td>{{p.src}}</td> |
| 21 | + <td>{{p.sport}}</td> |
| 22 | + <td>{{p.dst}} |
| 23 | + {% if network.iplookups %} |
| 24 | + {{ network.iplookups|get_item:p.dst }} |
| 25 | + {% endif %} |
| 26 | + </td> |
| 27 | + <td>{{p.dport}}</td> |
| 28 | + </tr> |
| 29 | + {% endfor %} |
| 30 | + </table> |
| 31 | + </div> |
| 32 | + <div class="stream col-md-6"></div> |
| 33 | + </div> |
| 34 | + </div> |
| 35 | + {% else %} |
| 36 | + <div class="card-body"> |
| 37 | + <div class="alert alert-info">No TCP connections recorded.</div> |
| 38 | + </div> |
| 39 | + {% endif %} |
| 40 | + </div> |
33 | 41 | </section> |
34 | 42 | <script type='text/javascript'> |
35 | 43 | $(function () { |
|
0 commit comments