tips stuff

git-svn-id: file:///home/svn/framework3/trunk@4925 4d416f70-5f16-0410-b530-b9f4589650da
unstable
fab 2007-05-17 22:18:26 +00:00
parent a12f4a6031
commit dea5fbf243
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,4 @@
require 'msf/ui/gtk2/frame/modules_tree' require 'msf/ui/gtk2/frame/modules_tree'
require 'msf/ui/gtk2/frame/sessions_tree' require 'msf/ui/gtk2/frame/sessions_tree'
require 'msf/ui/gtk2/frame/jobs_tree' require 'msf/ui/gtk2/frame/jobs_tree'
require 'msf/ui/gtk2/frame/tips'

View File

@ -48,7 +48,10 @@ module Msf
column_type.set_cell_data_func(renderer_type) do |column, cell, model, iter| column_type.set_cell_data_func(renderer_type) do |column, cell, model, iter|
cell.text = iter[TYPE] cell.text = iter[TYPE]
end 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 #set model to treeview
@treeview.set_model(@model) @treeview.set_model(@model)
@ -168,7 +171,7 @@ module Msf
# Items session signals # Items session signals
meterpreter_proc_item_shell.signal_connect('activate') do |item| meterpreter_proc_item_shell.signal_connect('activate') do |item|
if current = @selection.selected if current = @selection.selected
print current[O_SESSION].tunnel_peer print current[O_SESSION].sys.process.getpid
end end
end end
end end