XSS Hunter, One-Key delete all data.
目前為
// ==UserScript==
// @name XHDA
// @description XSS Hunter, One-Key delete all data.
// @author LzSkyline
// @match https://xsshunter.com/app
// @grant none
// @version 0.0.1.20180825072704
// @namespace https://greasyfork.org/users/152259
// ==/UserScript==
(function() {
'use strict';
function del_all_item(){
api_request( "GET", "/api/payloadfires", {"offset": 0, "limit": 1000}, function( items ) {
items.results.forEach(function(item, index){
api_request( "DELETE", "/api/delete_injection", {"id": item.id}, function( response ) {
delete_injection( item.id );
console.log(item.id+" deleted!");
});
})
})
console.log("All done.");
}
$(".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>')
$(".delete_all").on('click', del_all_item);
//reload
$("a[href='#home1']").css("cursor","pointer");
$("a[href='#home1']").on('click', function(){location.reload();});
})();