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
#
def unknown_command(method, line)
if (command_passthru == true and Rex::FileUtils.find_full_path(method))
print_status("Executing: `#{line}`")
print_line('')
io = ::IO.popen(line, "r")
io.each_line do |data|
print(data)
[method, method+".exe"].each do |cmd|
if (command_passthru == true and Rex::FileUtils.find_full_path(cmd))
print_status("exec: #{line}")
print_line('')
io = ::IO.popen(line, "r")
io.each_line do |data|
print(data)
end
io.close
return
end
io.close
else
super
end
super
end
##

View File

@ -20,7 +20,7 @@ module Msf
]
LIST = 'framework-subscribe@metasploit.com'
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}"
#

View File

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