2007-02-04 01:55:01 +00:00
|
|
|
module Msf
|
|
|
|
module Ui
|
|
|
|
module Gtk2
|
|
|
|
|
|
|
|
class MyAbout
|
|
|
|
include Msf::Ui::Gtk2::MyControls
|
2007-03-19 23:13:50 +00:00
|
|
|
Gtk::AboutDialog.set_email_hook {|about, link|
|
|
|
|
puts "Mail to #{link}"
|
|
|
|
}
|
|
|
|
Gtk::AboutDialog.set_url_hook {|about, link|
|
|
|
|
puts "Launch a browser to url #{link}"
|
|
|
|
}
|
2007-02-04 01:55:01 +00:00
|
|
|
|
|
|
|
def initialize
|
|
|
|
@about = Gtk::AboutDialog.new
|
2007-02-04 19:30:49 +00:00
|
|
|
@about.set_name('MsfGUI')
|
2007-02-04 01:55:01 +00:00
|
|
|
@about.set_website('http://www.metasploit.org')
|
2007-03-19 23:13:50 +00:00
|
|
|
@about.set_authors(['Fabrice MOURRON <fab@metasploit.com>', 'Metasploit LLC'])
|
2007-02-04 01:55:01 +00:00
|
|
|
@about.set_license(File.read(File.join(Msf::Config.install_root, 'documentation', 'LICENSE')))
|
|
|
|
#@about.set_wrap_license('True')
|
|
|
|
@about.set_logo(driver.get_icon('msfwx.xpm'))
|
|
|
|
@about.set_version("\nMetasploit Framework v#{Msf::Framework::Version}")
|
|
|
|
@about.run
|
|
|
|
@about.destroy
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|