Changes to about dialog, look for cmd+.exe as well

git-svn-id: file:///home/svn/framework3/trunk@5239 4d416f70-5f16-0410-b530-b9f4589650da
unstable
HD Moore 2007-12-31 02:03:13 +00:00
parent 084fa6a7df
commit 9c54fecada
3 changed files with 17 additions and 13 deletions

View File

@ -295,19 +295,23 @@ protected
# executable. This is only allowed if command passthru has been permitted # executable. This is only allowed if command passthru has been permitted
# #
def unknown_command(method, line) def unknown_command(method, line)
if (command_passthru == true and Rex::FileUtils.find_full_path(method))
print_status("Executing: `#{line}`") [method, method+".exe"].each do |cmd|
print_line('') if (command_passthru == true and Rex::FileUtils.find_full_path(cmd))
io = ::IO.popen(line, "r") print_status("exec: #{line}")
io.each_line do |data| print_line('')
print(data)
io = ::IO.popen(line, "r")
io.each_line do |data|
print(data)
end
io.close
return
end end
io.close
else
super
end end
super
end end
## ##

View File

@ -20,7 +20,7 @@ module Msf
] ]
LIST = 'framework-subscribe@metasploit.com' LIST = 'framework-subscribe@metasploit.com'
BUGREPORT_URL = 'http://metasploit.com/dev/trac/report/9' BUGREPORT_URL = 'http://metasploit.com/dev/trac/report/9'
WEBSITE_URL = 'http://www.metasploit3.com' WEBSITE_URL = 'http://metasploit3.com'
VERSION = "v#{Msf::Framework::Version}" VERSION = "v#{Msf::Framework::Version}"
# #

View File

@ -12,7 +12,7 @@ module Msf
include Msf::Ui::Gtk2::MyControls include Msf::Ui::Gtk2::MyControls
Gtk::AboutDialog.set_email_hook do |about, link| Gtk::AboutDialog.set_email_hook do |about, link|
Rex::Compat.open_browser("mailto:#{link}") Rex::Compat.open_email(link)
end end
Gtk::AboutDialog.set_url_hook do |about, link| Gtk::AboutDialog.set_url_hook do |about, link|