Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
beefproject
GitHub Repository: beefproject/beef
Path: blob/master/modules/persistence/jsonp_service_worker/module.rb
1154 views
1
class Jsonp_service_worker < BeEF::Core::Command
2
def post_execute
3
save({ 'result' => @datastore['result'] })
4
end
5
6
def self.options
7
[
8
{ 'name' => 'JSONPPath', 'ui_label' => 'Path of the current domain compromized JSONP endpoint (ex: /jsonp?callback=)', 'value' => '/jsonp?callback=' },
9
{ 'name' => 'tempBody', 'ui_label' => 'Temporary HTML body to show to the users',
10
'value' => '<h3>Unplanned site maintenance, please wait a few seconds, we are almost done.</h3>' }
11
]
12
end
13
end
14
15