XHDA

XSS Hunter, One-Key delete all data.

  1. // ==UserScript==
  2. // @name XHDA
  3. // @description XSS Hunter, One-Key delete all data.
  4. // @author LzSkyline
  5. // @match https://xsshunter.com/app
  6. // @grant none
  7. // @version 0.0.1.20181108062953
  8. // @namespace https://greasyfork.org/users/152259
  9. // ==/UserScript==
  10.  
  11. (function() {
  12. 'use strict';
  13. function del_all_item(){
  14. console.log("Working...");
  15. api_request( "GET", "/api/payloadfires", {"offset": 0, "limit": 500}, function( items ) {
  16. items.results.forEach(function(item, index){
  17. console.log("Deleting: "+item.id);
  18. setTimeout(100);
  19. api_request( "DELETE", "/api/delete_injection", {"id": item.id}, function( response ) {
  20. delete_injection( item.id );
  21. });
  22. })
  23. })
  24. }
  25. $(".panel-heading").append('<button type="button" class="delete_all btn btn-xs btn-danger pull-right"><span class="glyphicon glyphicon-trash"></span> Delete All</button>')
  26. $(".delete_all").on('click', del_all_item);
  27. //reload
  28. $("a[href='#home1']").css("cursor","pointer");
  29. $("a[href='#home1']").on('click', function(){location.reload();});
  30. })();