Change the sessions directory
Refresh after kill and migrate git-svn-id: file:///home/svn/framework3/trunk@5236 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
c8603d1d9d
commit
016f4ece6a
|
@ -9,7 +9,7 @@ module Msf
|
|||
# The file system portion of the standard API extension.
|
||||
#
|
||||
###
|
||||
class Fs < Msf::Ui::Gtk2::SkeletonBrowser
|
||||
class Fs < Msf::Ui::Gtk2::SkeletonBrowser
|
||||
COL_TYPE, COL_PATH, COL_DISPLAY_NAME, COL_IS_DIR, COL_PIXBUF = (0..5).to_a
|
||||
|
||||
def initialize(client)
|
||||
|
@ -17,7 +17,7 @@ module Msf
|
|||
# The session
|
||||
@client = client
|
||||
|
||||
local = File.join(driver.resource_directory, "sessions")
|
||||
local = File.join(driver.config_directory, "logs", "sessions")
|
||||
remote = @client.fs.dir.getwd
|
||||
|
||||
# call the parent
|
||||
|
|
|
@ -124,6 +124,7 @@ module Msf
|
|||
migrate_item_shell.signal_connect('activate') do |item|
|
||||
if current = @selection.selected
|
||||
cmd_migrate(current.get_value(PID).to_i)
|
||||
update()
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -131,6 +132,7 @@ module Msf
|
|||
kill_item_shell.signal_connect('activate') do |item|
|
||||
if current = @selection.selected
|
||||
cmd_kill(current.get_value(PID))
|
||||
update()
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue