* - Fix for offline browsers. Allowing you to view all executed commands in the past and details.
- fiexed a small mistake in a comment
* Revert "- Fix for offline browsers. Allowing you to view all executed commands in the past and details. - fiexed a small mistake in a comment"
This reverts commit fed79d71
* - Fixed deprecated call to "window.URL.createObjectURL" on newer browsers
- Fixed bug where no image would be shown even if the picture was taken. (image size too large)
- added option to module to choose image size.
* fixed config we default
* fix codeql
Co-authored-by: Whacko <not@gonna.tel>
Co-authored-by: wheatley <wheatand@gmail.com>
21 lines
831 B
Ruby
21 lines
831 B
Ruby
#
|
|
# Copyright (c) 2006-2022 Wade Alcorn - wade@bindshell.net
|
|
# Browser Exploitation Framework (BeEF) - http://beefproject.com
|
|
# See the file 'doc/COPYING' for copying permission
|
|
#
|
|
require 'base64'
|
|
class Webcam_html5 < BeEF::Core::Command
|
|
def self.options
|
|
[
|
|
{ 'name' => 'choice', 'type' => 'combobox', 'ui_label' => 'Screenshot size', 'store_type' => 'arraystore', 'store_fields' => ['choice'],
|
|
'store_data' => [['320x240'], ['640x480'], ['Full']], 'valueField' => 'choice', 'value' => '320x240', editable: false, 'displayField' => 'choice', 'mode' => 'local', 'autoWidth' => true },
|
|
]
|
|
end
|
|
def post_execute
|
|
content = {}
|
|
content['result'] = @datastore['result'] unless @datastore['result'].nil?
|
|
content['image'] = @datastore['image'] unless @datastore['image'].nil?
|
|
save content
|
|
end
|
|
end
|