Changes to about dialog, look for cmd+.exe as well
git-svn-id: file:///home/svn/framework3/trunk@5239 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
084fa6a7df
commit
9c54fecada
|
@ -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('')
|
||||
[method, method+".exe"].each do |cmd|
|
||||
if (command_passthru == true and Rex::FileUtils.find_full_path(cmd))
|
||||
|
||||
io = ::IO.popen(line, "r")
|
||||
io.each_line do |data|
|
||||
print(data)
|
||||
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
|
||||
|
||||
##
|
||||
|
|
|
@ -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}"
|
||||
|
||||
#
|
||||
|
|
|
@ -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|
|
||||
|
|
Loading…
Reference in New Issue