Path: blob/master/modules/exploits/farsite_x25_remote_shell/module.rb
1154 views
class Farsite_x25_remote_shell < BeEF::Core::Command1def self.options2@configuration = BeEF::Core::Configuration.instance3beef_host = @configuration.beef_host4[5{ 'name' => 'scheme', 'type' => 'combobox', 'ui_label' => 'HTTP(s)', 'store_type' => 'arraystore',6'store_fields' => ['http'], 'store_data' => [['HTTP'], ['HTTPS']],7'valueField' => 'http', 'displayField' => 'http', 'mode' => 'local', 'autoWidth' => true },8{ 'name' => 'rhost', 'ui_label' => 'Remote Host', 'value' => '10.0.0.1' },9{ 'name' => 'lhost', 'ui_label' => 'Local Host', 'value' => beef_host.to_s },10{ 'name' => 'lport', 'ui_label' => 'Local Port', 'value' => '4444' }11]12end1314def post_execute15save({ 'result' => @datastore['result'] })16end17end181920