Handle access errors a little better
git-svn-id: file:///home/svn/framework3/trunk@8054 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
20932176da
commit
1f0380e5ec
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue