From 47b08fa6ef3c3d7736194ad575ba2019d3f50fa1 Mon Sep 17 00:00:00 2001 From: Stephen Fewer Date: Fri, 29 Jan 2010 11:04:24 +0000 Subject: [PATCH] simple patch to get all privileges after a successful getsystem git-svn-id: file:///home/svn/framework3/trunk@8321 4d416f70-5f16-0410-b530-b9f4589650da --- lib/rex/post/meterpreter/extensions/priv/priv.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/rex/post/meterpreter/extensions/priv/priv.rb b/lib/rex/post/meterpreter/extensions/priv/priv.rb index 9bd459952c..ed1d5e7393 100644 --- a/lib/rex/post/meterpreter/extensions/priv/priv.rb +++ b/lib/rex/post/meterpreter/extensions/priv/priv.rb @@ -70,6 +70,8 @@ class Priv < Extension technique = response.get_tlv_value( TLV_TYPE_ELEVATE_TECHNIQUE ) if( response.result == 0 and technique != nil ) + client.core.use( "stdapi" ) if not client.ext.aliases.include?( "stdapi" ) + client.sys.config.getprivs return [ true, technique ] end