Bind the new MSf::Assistant
git-svn-id: file:///home/svn/framework3/trunk@4875 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
a07a3bb64d
commit
65382862a7
|
@ -6,6 +6,8 @@ require 'msf/ui/gtk2/controls'
|
|||
require 'msf/ui/gtk2/app'
|
||||
require 'msf/ui/gtk2/about'
|
||||
require 'msf/ui/gtk2/frame'
|
||||
require 'msf/ui/gtk2/treeviewtooltips'
|
||||
require 'msf/ui/gtk2/assistant.ut'
|
||||
require 'msf/ui/gtk2/assistant'
|
||||
require 'msf/ui/gtk2/dialogs'
|
||||
require 'msf/ui/gtk2/console'
|
||||
|
@ -28,7 +30,7 @@ module Gtk2
|
|||
class Driver < Msf::Ui::Driver
|
||||
|
||||
attr_accessor :session_tree, :module_tree, :job_tree, :log_text, :module_model
|
||||
attr_accessor :module_completion, :main
|
||||
attr_accessor :module_completion, :main, :tips
|
||||
|
||||
include Msf::Ui::Gtk2::FrameworkEventManager
|
||||
|
||||
|
@ -95,6 +97,14 @@ class Driver < Msf::Ui::Driver
|
|||
Gdk::Pixbuf.new(File.join(resource_directory, 'pix', name))
|
||||
end
|
||||
|
||||
#
|
||||
# Returns only pics
|
||||
#
|
||||
def get_image(name)
|
||||
return File.join(resource_directory, 'pix', name)
|
||||
end
|
||||
|
||||
|
||||
#
|
||||
# Adds text to the main logging screen
|
||||
#
|
||||
|
|
|
@ -89,11 +89,11 @@ class MyModuleTree < MyGlade
|
|||
if (iter.get_value(APP) == "Standard")
|
||||
treeview.selection.select_path(path)
|
||||
active(iter)
|
||||
MsfAssistant::Standard.new(iter.get_value(MODULE))
|
||||
MsfAssistant::Exploit.new(iter.get_value(MODULE))
|
||||
elsif (iter.get_value(APP) == "Payloads")
|
||||
treeview.selection.select_path(path)
|
||||
active(iter)
|
||||
MsfAssistant::Payload.new(iter.get_value(MODULE))
|
||||
MsfDialog::Error.new($gtk2driver.main, "Not available")
|
||||
else
|
||||
treeview.selection.select_path(path)
|
||||
active(iter)
|
||||
|
@ -111,7 +111,8 @@ class MyModuleTree < MyGlade
|
|||
if active_module = @selection.selected
|
||||
type = active_module.get_value(APP)
|
||||
if (type == "Standard")
|
||||
MsfAssistant::Standard.new(active_module.get_value(MODULE))
|
||||
MsfAssistant::Exploit.new(active_module.get_value(MODULE))
|
||||
# MsfAssistant::Standard.new(active_module.get_value(MODULE))
|
||||
elsif (type == "Payloads")
|
||||
MsfAssistant::Payload.new(active_module.get_value(MODULE))
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue