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:
@@ -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__
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user