make sure the sys extension is available before using it. this appears to fix #803

git-svn-id: file:///home/svn/framework3/trunk@8617 4d416f70-5f16-0410-b530-b9f4589650da
unstable
James Lee 2010-02-24 06:45:12 +00:00
parent cc4b13a0a0
commit 9f9d97d735
1 changed files with 3 additions and 0 deletions

View File

@ -1136,6 +1136,9 @@ class Core
cmds.each do |cmd|
framework.sessions.each_sorted do |s|
session = framework.sessions.get(s)
# Bail if this session doesn't have stdapi loaded
# yet. See #803.
next if not session.respond_to? :sys
print_status("Running '#{cmd}' on session #{s} (#{session.tunnel_peer})")
if (session.type == "meterpreter")
c,args = cmd.split(' ', 2)