暫無描述

search.html 7.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. {% extends "layouts/default.html" %}
  2. {% block title %} Search {% endblock title %}
  3. {% block stylesheets %}
  4. <link href="/static/assets/css/dataTables.buttons.min.css" rel="stylesheet">
  5. {% endblock stylesheets %}
  6. {% block content %}
  7. {% if current_user.is_authenticated %}
  8. <div class="page-inner">
  9. <div class="row">
  10. <div class="col-md-12">
  11. <div class="card">
  12. <div class="card-header">
  13. <div class="card-title">Search across cases</div>
  14. </div>
  15. <div class="card-body">
  16. <form method="post" action="" id="form_search">
  17. {{ form.hidden_tag() }}
  18. <div class="input-group">
  19. {{ form.search_value(placeholder="Search term - You can use % as a wilcard. Search is context-free." , class="form-control", type="text") }}
  20. <div class="input-group-append">
  21. <button type="button" class="btn btn-sm btn-outline-success" id="submit_search">Search</button>
  22. </div>
  23. </div>
  24. <div class="form-group">
  25. <label class="form-label mr-3">Set to search within</label>
  26. <div class="selectgroup selectgroup-pills">
  27. <label class="selectgroup-item">
  28. <input type="radio" name="search_type" value="ioc" class="selectgroup-input" checked="">
  29. <span class="selectgroup-button">IOC</span>
  30. </label>
  31. <label class="selectgroup-item">
  32. <input type="radio" name="search_type" value="notes" class="selectgroup-input">
  33. <span class="selectgroup-button">Notes</span>
  34. </label>
  35. <label class="selectgroup-item">
  36. <input type="radio" name="search_type" value="comments" class="selectgroup-input">
  37. <span class="selectgroup-button">Comments</span>
  38. </label>
  39. </div>
  40. </div>
  41. </form>
  42. <div class="table-responsive" style="display: none;" id="search_table_wrapper">
  43. <div class="selectgroup">
  44. <span id="table_buttons"></span>
  45. </div>
  46. <table class="table display table table-striped table-hover" width="100%" cellspacing="0" id="file_search_table" >
  47. <thead>
  48. <tr>
  49. <th>MD5</th>
  50. <th>Filename</th>
  51. <th>Path</th>
  52. <th>VT Score</th>
  53. <th>Case seen</th>
  54. <th>Seen count</th>
  55. <th>Flag</th>
  56. <th>Comment</th>
  57. <th>VT</th>
  58. </tr>
  59. </thead>
  60. <tfoot>
  61. <tr>
  62. <th>MD5</th>
  63. <th>Filename</th>
  64. <th>Path</th>
  65. <th>VT Score</th>
  66. <th>Case seen</th>
  67. <th>Seen count</th>
  68. <th>Flag</th>
  69. <th>Comment</th>
  70. <th>VT</th>
  71. </tr>
  72. </tfoot>
  73. </table>
  74. </div>
  75. <div class="table-responsive" style="display: none;" id="search_table_wrapper_1">
  76. <div class="selectgroup">
  77. <span id="table_buttons_1"></span>
  78. </div>
  79. <table class="table display table table-striped table-hover" width="100%" cellspacing="0" id="file_search_table_1" >
  80. <thead>
  81. <tr>
  82. <th>Name</th>
  83. <th>Description</th>
  84. <th>Type</th>
  85. <th>Case</th>
  86. <th>Customer</th>
  87. <th>TLP</th>
  88. </tr>
  89. </thead>
  90. <tfoot>
  91. <tr>
  92. <th>Name</th>
  93. <th>Description</th>
  94. <th>Type</th>
  95. <th>Case</th>
  96. <th>Customer</th>
  97. <th>TLP</th>
  98. </tr>
  99. </tfoot>
  100. </table>
  101. </div>
  102. <div class="table-responsive" id="search_table_wrapper_2">
  103. <ul class="list-group list-group-bordered list " id="notes_msearch_list">
  104. </ul>
  105. </div>
  106. <div class="table-responsive" style="display: none;" id="search_table_wrapper_3">
  107. <div class="selectgroup">
  108. <span id="table_buttons_2"></span>
  109. </div>
  110. <table class="table display table table-striped table-hover" width="100%" cellspacing="0" id="comments_search_table" >
  111. <thead>
  112. <tr>
  113. <th>#ID</th>
  114. <th>Comment text</th>
  115. <th>Case</th>
  116. <th>Customer</th>
  117. </tr>
  118. </thead>
  119. <tfoot>
  120. <tr>
  121. <th>#ID</th>
  122. <th>Comment text</th>
  123. <th>Case</th>
  124. <th>Customer</th>
  125. </tr>
  126. </tfoot>
  127. </table>
  128. </div>
  129. </div>
  130. </div>
  131. </div>
  132. </div>
  133. </div>
  134. <div class="modal" tabindex="-1" role="dialog" id="modal_note_detail">
  135. <div class="modal-dialog modal-xxl modal-xl" role="document">
  136. <div class="modal-content" id="info_note_modal_content">
  137. </div><!-- /.modal-content -->
  138. </div><!-- /.modal-dialog -->
  139. </div>
  140. {% endif %}
  141. {% endblock content %}
  142. {% block javascripts %}
  143. <script src="/static/assets/js/plugin/datatables/dataTables.cellEdit.js"></script>
  144. <script src="/static/assets/js/plugin/datatables/dataTables.buttons.min.js"></script>
  145. <script src="/static/assets/js/plugin/datatables/buttons.html5.min.js"></script>
  146. <script src="/static/assets/js/plugin/datatables/buttons.print.min.js"></script>
  147. <script src="/static/assets/js/plugin/ace/src-noconflict/ace.js" type="text/javascript" charset="utf-8"></script>
  148. <script src="/static/assets/js/plugin/ace/src-noconflict/ext-language_tools.js" type="text/javascript"
  149. charset="utf-8"></script>
  150. <script src="/static/assets/js/plugin/showdown/showdown.min.js"></script>
  151. <script src="/static/assets/js/iris/case.common.js"></script>
  152. <script src="/static/assets/js/iris/search.js"></script>
  153. {% endblock javascripts %}