mirror of
https://github.com/0dayCTF/reverse-shell-generator.git
synced 2024-12-19 19:36:10 +00:00
added download event listener
This commit is contained in:
parent
f37ebd7b39
commit
9a92be06a0
10
js/script.js
10
js/script.js
@ -61,6 +61,16 @@
|
||||
window.location = rawLink;
|
||||
});
|
||||
}
|
||||
|
||||
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 => {
|
||||
|
Loading…
Reference in New Issue
Block a user