Handle access errors a little better

git-svn-id: file:///home/svn/framework3/trunk@8054 4d416f70-5f16-0410-b530-b9f4589650da
unstable
HD Moore 2010-01-01 19:51:22 +00:00
parent 20932176da
commit 1f0380e5ec
1 changed files with 4 additions and 1 deletions

View File

@ -241,7 +241,10 @@ print_line()
rescue ::Interrupt
raise $!
rescue ::Rex::Post::Meterpreter::RequestError => e
print_error("Meterpreter Exception: #{e.class} #{e}")
print_error("This script requires the use of a SYSTEM user context (hint: migrate into service process)")
rescue ::Exception => e
puts "Error: #{e.class} #{e} #{e.backtrace}"
print_error("Error: #{e.class} #{e} #{e.backtrace}")
end