Only add platform for meterpreter sessions. Unbreaks shell sessions.

git-svn-id: file:///home/svn/framework3/trunk@10286 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Matt Weeks 2010-09-10 23:33:33 +00:00
parent 8716609aaf
commit 7f3cc47da9
1 changed files with 3 additions and 1 deletions

View File

@ -12,7 +12,6 @@ class Session < Base
i,s = sess
res[s.sid] = {
'type' => s.type.to_s,
'platform' => s.platform.to_s,
'tunnel_local'=> s.tunnel_local.to_s,
'tunnel_peer' => s.tunnel_peer.to_s,
'via_exploit' => s.via_exploit.to_s,
@ -26,6 +25,9 @@ class Session < Base
'exploit_uuid' => s.exploit_uuid.to_s,
'routes' => s.routes.join(",")
}
if(s.type.to_s == "meterpreter")
res[s.sid]['platform'] = s.platform.to_s
end
end
res
end