Guest User

Untitled

a guest
Dec 14th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.13 KB | None | 0 0
  1. {% extends "scanner_base.html" %}
  2.  
  3. {% block content %}
  4. <h1>New Scan</h1>
  5. {% if url_entered %}
  6. <h2>Details</h2>
  7. <p>Now scanning: {{url_entered}}...</p>
  8.  
  9. <p>Response: {{plugins}}</p>
  10.  
  11. <p>Safechecks: {{safechecks}}</p>
  12. <p>Template: {{template}}</p>
  13.  
  14. <p>Session: {{session}}</p>
  15. <p>Service Name: {{plugin_service["name"]}}</p>
  16.  
  17.  
  18. <h2>Live Results</h2>
  19. <textarea id="updating_results">
  20.  
  21. </textarea>
  22.  
  23. <script type="text/javascript">
  24. setInterval(function() {
  25. $.post("/xhr_scan_status", {
  26. service_name: "{{plugin_service['name']}}",
  27. session: "{{session}}",
  28. csrfmiddlewaretoken: "{{ csrf_token }}"
  29. },
  30. function(data) {
  31. $("#updating_results").val($("#updating_results").val() + "\n" + data);
  32. });
  33. }, 5000);
  34. </script>
  35.  
  36. {% else %}
  37. <form method="POST" action="">
  38. <div id="new_scan_enter_url">
  39. <input name="new_scan_url_input" id="new_scan_url_input" type="text" placeholder="Enter URL to scan..."/><br/>
  40. <input type="submit" value="Start Scan" />
  41. </div>
  42. <div id="new_scan_advanced_options">
  43. <div id="new_scan_advanced_options_expander">
  44. Additional Options (coming soon!)
  45. </div>
  46. </div>
  47. <input type="hidden" name="csrfmiddlewaretoken" value="{{ csrf_token }}">
  48. </form>
  49. {% endif %}
  50.  
  51. {% endblock %}
  52.  
  53. {% block footer %}
  54.  
  55. {% endblock %}
  56.  
  57. {% block site_js %}
  58. {% compress js %}
  59. <script src="{{ static('scanner/js/libs/jquery-1.4.4.min.js') }}"></script>
  60. <script src="{{ static('scanner/js/libs/jquery.cookie.js') }}"></script>
  61. <script src="{{ static('scanner/js/init.js') }}"></script>
  62. {% endcompress %}
  63. {% if not request.user.is_active %}
  64. {{ browserid_form.media }}
  65. {% endif %}
  66. {% endblock %}
Add Comment
Please, Sign In to add comment