mirror of
https://github.com/0dayCTF/reverse-shell-generator.git
synced 2025-01-29 13:55:08 +00:00
Update index.html
This commit is contained in:
parent
43238f8264
commit
634266152d
@ -471,7 +471,7 @@
|
|||||||
const portInput = document.querySelector("#port");
|
const portInput = document.querySelector("#port");
|
||||||
const listenerSelect = document.querySelector("#listener-selection");
|
const listenerSelect = document.querySelector("#listener-selection");
|
||||||
const shellSelect = document.querySelector("#shell");
|
const shellSelect = document.querySelector("#shell");
|
||||||
const autoCopySwitch = document.querySelector("#auto-copy-switch");
|
// const autoCopySwitch = document.querySelector("#auto-copy-switch");
|
||||||
const encodingSelect = document.querySelector('#encoding');
|
const encodingSelect = document.querySelector('#encoding');
|
||||||
const listenerCommand = document.querySelector("#listener-command");
|
const listenerCommand = document.querySelector("#listener-command");
|
||||||
const reverseShellCommand = document.querySelector("#reverse-shell-command");
|
const reverseShellCommand = document.querySelector("#reverse-shell-command");
|
||||||
@ -792,7 +792,7 @@
|
|||||||
document.querySelector('#listener-advanced-switch').addEventListener('change', rsg.updateSwitchStates);
|
document.querySelector('#listener-advanced-switch').addEventListener('change', rsg.updateSwitchStates);
|
||||||
document.querySelector('#revshell-advanced-switch').addEventListener('change', rsg.updateSwitchStates);
|
document.querySelector('#revshell-advanced-switch').addEventListener('change', rsg.updateSwitchStates);
|
||||||
|
|
||||||
setInterval(rsg.updateSwitchStates, 200) // fix switch changes in rapid succession
|
setInterval(rsg.updateSwitchStates, 500) // fix switch changes in rapid succession
|
||||||
|
|
||||||
document.querySelector('#copy-listener').addEventListener('click', () => {
|
document.querySelector('#copy-listener').addEventListener('click', () => {
|
||||||
rsg.copyToClipboard(listenerCommand.innerText)
|
rsg.copyToClipboard(listenerCommand.innerText)
|
||||||
@ -869,7 +869,7 @@
|
|||||||
|
|
||||||
prepopulateElement("ip", ipInput, "value");
|
prepopulateElement("ip", ipInput, "value");
|
||||||
prepopulateElement("port", portInput, "value");
|
prepopulateElement("port", portInput, "value");
|
||||||
prepopulateElement("auto-copy", autoCopySwitch, "checked");
|
// prepopulateElement("auto-copy", autoCopySwitch, "checked");
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Event listeners for setting localStorage values
|
* Event listeners for setting localStorage values
|
||||||
|
Loading…
Reference in New Issue
Block a user