mirror of
https://github.com/hak5/bashbunny-payloads.git
synced 2025-10-29 16:58:25 +00:00
Bug fix: only execute on enter key
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
|
||||||
var git_repo = 'https://github.com/hak5/bashbunny-payloads.git';
|
var git_repo = 'https://github.com/hak5/bashbunny-payloads.git';
|
||||||
var git_log = '/var/log/git.log';
|
var git_log = '/var/log/git.log';
|
||||||
var quick_commands = [
|
var quick_commands = [
|
||||||
@@ -149,7 +149,7 @@ $(document).ready(function() {
|
|||||||
$(document).on('keyup', '#console-input', function(e) {
|
$(document).on('keyup', '#console-input', function(e) {
|
||||||
var code = e.which;
|
var code = e.which;
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
if(code==32||code==13||code==188||code==186){
|
if(code==13){
|
||||||
$('#console-execute').click();
|
$('#console-execute').click();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user