From dea5fbf243fe1c502f7a0fdc154d7717a3be5aed Mon Sep 17 00:00:00 2001 From: fab <> Date: Thu, 17 May 2007 22:18:26 +0000 Subject: [PATCH] tips stuff git-svn-id: file:///home/svn/framework3/trunk@4925 4d416f70-5f16-0410-b530-b9f4589650da --- lib/msf/ui/gtk2/frame.rb | 1 + lib/msf/ui/gtk2/frame/sessions_tree.rb | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/msf/ui/gtk2/frame.rb b/lib/msf/ui/gtk2/frame.rb index b29070e9af..b8933aa42a 100644 --- a/lib/msf/ui/gtk2/frame.rb +++ b/lib/msf/ui/gtk2/frame.rb @@ -1,3 +1,4 @@ require 'msf/ui/gtk2/frame/modules_tree' require 'msf/ui/gtk2/frame/sessions_tree' require 'msf/ui/gtk2/frame/jobs_tree' +require 'msf/ui/gtk2/frame/tips' diff --git a/lib/msf/ui/gtk2/frame/sessions_tree.rb b/lib/msf/ui/gtk2/frame/sessions_tree.rb index 8b0b6c6cdc..c0bf39b7f5 100644 --- a/lib/msf/ui/gtk2/frame/sessions_tree.rb +++ b/lib/msf/ui/gtk2/frame/sessions_tree.rb @@ -48,7 +48,10 @@ module Msf column_type.set_cell_data_func(renderer_type) do |column, cell, model, iter| cell.text = iter[TYPE] end - #column_payload.sort_column_id = PAYLOAD + + # Init tips on the treeview for session + tips = SessionTips.new(column_type) + tips.add_view(@treeview) #set model to treeview @treeview.set_model(@model) @@ -168,7 +171,7 @@ module Msf # Items session signals meterpreter_proc_item_shell.signal_connect('activate') do |item| if current = @selection.selected - print current[O_SESSION].tunnel_peer + print current[O_SESSION].sys.process.getpid end end end