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-b9f4589650daunstable
parent
cc4b13a0a0
commit
9f9d97d735
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue