module Msf module Ui module Gtk2 class MyAbout include Msf::Ui::Gtk2::MyControls 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}" } def initialize @about = Gtk::AboutDialog.new @about.set_name('MsfGUI') @about.set_website('http://www.metasploit.org') @about.set_authors(['Fabrice MOURRON ', 'Metasploit LLC']) @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