Only add platform for meterpreter sessions. Unbreaks shell sessions.
git-svn-id: file:///home/svn/framework3/trunk@10286 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
8716609aaf
commit
7f3cc47da9
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue