23 lines
413 B
Ruby
23 lines
413 B
Ruby
# phonegap
|
|
#
|
|
|
|
class Start_record_audio < BeEF::Core::Command
|
|
|
|
def self.options
|
|
return [
|
|
{'name' => 'file_name',
|
|
'description' => 'File name for audio recording',
|
|
'ui_label' => 'file name',
|
|
'value' => 'myrecording.wav'
|
|
}
|
|
]
|
|
end
|
|
|
|
def post_execute
|
|
content = {}
|
|
content['file_name'] = @datastore['file_name']
|
|
save content
|
|
end
|
|
|
|
end
|