From e87fb830ecc05af1cb87966e6aaf89808537db70 Mon Sep 17 00:00:00 2001 From: James Lee Date: Wed, 27 Jul 2011 23:49:29 +0000 Subject: [PATCH] add an rpc call to grab the host's directory separator, see #4892 git-svn-id: file:///home/svn/framework3/trunk@13385 4d416f70-5f16-0410-b530-b9f4589650da --- lib/msf/core/rpc/v10/rpc_session.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/msf/core/rpc/v10/rpc_session.rb b/lib/msf/core/rpc/v10/rpc_session.rb index df6f3451d2..fb609ac582 100644 --- a/lib/msf/core/rpc/v10/rpc_session.rb +++ b/lib/msf/core/rpc/v10/rpc_session.rb @@ -185,6 +185,12 @@ class RPC_Session < RPC_Base rpc_meterpreter_run_single( sid, "run #{data}") end + def rpc_meterpreter_directory_separator(sid) + s = _valid_session(sid,"meterpreter") + + { "separator" => s.fs.file.separator } + end + def rpc_compatible_modules( sid) ret = []