mirror of
https://github.com/0dayCTF/reverse-shell-generator.git
synced 2024-12-24 05:45:26 +00:00
added download event listener
This commit is contained in:
parent
f37ebd7b39
commit
9a92be06a0
10
js/script.js
10
js/script.js
@ -62,6 +62,16 @@
|
||||
});
|
||||
}
|
||||
|
||||
document.querySelector(".download-listener").addEventListener("click", () => {
|
||||
var element = document.createElement('a');
|
||||
const rawLink = RawLink.generate(rsg);
|
||||
element.setAttribute('href', rawLink);
|
||||
element.setAttribute('download', rsg.getSelectedCommandName() + '.txt');
|
||||
document.body.appendChild(element);
|
||||
element.click();
|
||||
document.body.removeChild(element);
|
||||
})
|
||||
|
||||
const filterCommandData = function (data, { commandType, filter }) {
|
||||
return data.filter(item => {
|
||||
if (!item.meta.includes(commandType)) {
|
||||
|
Loading…
Reference in New Issue
Block a user