The superfluous JSON array (of size one) wrapping a hash in each input element has been removed. Thus, there is no need for the following instruction with each element: if(typeof input[0] == 'object') { input = input[0]; }

git-svn-id: https://beef.googlecode.com/svn/trunk@700 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9
This commit is contained in:
wade@bindshell.net
2011-01-18 12:53:56 +00:00
parent 5091936773
commit 9d90813240
19 changed files with 66 additions and 67 deletions

View File

@@ -17,9 +17,7 @@ class Raw_javascript < BeEF::Command
'Author' => ['wade','vo'],
'Data' =>
[
['name' => 'cmd', 'ui_label' => 'Javascript Code',
'value' => "alert(\'BeEF Raw Javascript\');\nreturn \'It worked!\';",
'type' => 'textarea', 'width' => '400px', 'height' => '100px'],
{'name' => 'cmd', 'ui_label' => 'Javascript Code', 'value' => "alert(\'BeEF Raw Javascript\');\nreturn \'It worked!\';", 'type' => 'textarea', 'width' => '400px', 'height' => '100px'},
],
'File' => __FILE__
})