home.html 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. {{ define "home.html" }}
  2. <!DOCTYPE html>
  3. <head>
  4. <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  5. <link rel="stylesheet" href="/static/bootstrap-5.0.2-dist/css/bootstrap.min.css">
  6. </head>
  7. <body style="background-color: black;">
  8. <div class="container-fluid row sticky-top pb-0" style="background-color: black; opacity: 0.75;">
  9. <div class="container-fluid row h-100 shadow-lg p-0 mb-0 rounded">
  10. <div class="col-2 p-1">
  11. <div style="color: rgba(35, 207, 0, 0.87); font-size: xx-large; font-family: monospace; opacity: 1;">
  12. <a href="/home" style="color: rgba(35, 207, 0, 0.87)">// Kyoketsu</a>
  13. </div>
  14. </div>
  15. <div class="row container-fluid p-1">
  16. <div class="col-2">
  17. <a style="color: white; font-family: monospace;">Target network to enumerate:</a>
  18. <form method="post"
  19. hx-target="#response-div"
  20. hx-post="/refresh"
  21. hx-ext="json-enc">
  22. <input type="text" name="ip_address" placeholder="192.168.50.1/24" required>
  23. <button type="submit">scan</button>
  24. </form>
  25. </div>
  26. <div class="col-2">
  27. <a style="color: white; font-family: monospace;">Filter on network address:</a>
  28. <form method="post"
  29. hx-target="#response-div"
  30. hx-post="/subnets"
  31. hx-ext="json-enc">
  32. <input type="text" name="ip_address" placeholder="192.168.50.0" required>
  33. <button type="submit">filter</button>
  34. </form>
  35. </div>
  36. </div>
  37. </div>
  38. </div>
  39. <table class="table table-dark table-bordered table-hover table-">
  40. <thead>
  41. <tr>
  42. <th scope="col"><p style="font-family: monospace;">FQDN</p></th>
  43. <th scope="col"><p style="font-family: monospace;">IPv4 Address</p></th>
  44. <th scope="col"><p style="font-family: monospace;">IPv4 Network</p></th>
  45. <th scope="col"><p style="font-family: monospace;">Ping Response?</p></th>
  46. <th scope="col"><p style="font-family: monospace;">Listening Ports</p></th>
  47. </tr>
  48. </thead>
  49. <tbody id="response-div">
  50. {{ range . }}
  51. <tr>
  52. {{ template "ip_table.html" . }}
  53. </tr>
  54. {{ end }}
  55. </tbody>
  56. </table>
  57. <script src="/static/htmx.min.js"></script>
  58. <script src="/static/json-enc.js"></script>
  59. </body>
  60. </html>
  61. {{ end }}