1
mirror of https://github.com/rapid7/metasploit-framework synced 2024-10-09 04:26:11 +02:00

Sets the cmd stager's temp directory to "." which makes all the writes go to the local data directory for postgresql. This avoids the slashes issue reported by troulouliou and keeps all the uploaded files in one place for somewhat easier cleanup.

git-svn-id: file:///home/svn/framework3/trunk@12135 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
Tod Beardsley 2011-03-25 19:42:36 +00:00
parent 695bd76a30
commit fa062b8f32

View File

@ -94,7 +94,7 @@ class Metasploit3 < Msf::Exploit::Remote
ret_sys_exec = postgres_create_sys_exec(dll)
if ret_sys_exec
if @postgres_conn
execute_cmdstager({:linemax => 1500, :nodelete => true})
execute_cmdstager({:linemax => 1500, :nodelete => true, :temp=>"."})
handler
postgres_logout if @postgres_conn
else