From 8b5f0f655939f6f9221694b751758353f9c1b509 Mon Sep 17 00:00:00 2001 From: Tod Beardsley Date: Sat, 22 Jan 2011 00:08:35 +0000 Subject: [PATCH] Allow getsystem to report its success as a host note. git-svn-id: file:///home/svn/framework3/trunk@11622 4d416f70-5f16-0410-b530-b9f4589650da --- lib/rex/post/meterpreter/extensions/priv/priv.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/rex/post/meterpreter/extensions/priv/priv.rb b/lib/rex/post/meterpreter/extensions/priv/priv.rb index 4c4c9e3a00..53bf684160 100644 --- a/lib/rex/post/meterpreter/extensions/priv/priv.rb +++ b/lib/rex/post/meterpreter/extensions/priv/priv.rb @@ -72,6 +72,12 @@ class Priv < Extension if( response.result == 0 and technique != nil ) client.core.use( "stdapi" ) if not client.ext.aliases.include?( "stdapi" ) client.sys.config.getprivs + client.framework.db.report_note( + :host => client.sock.peerhost, + :workspace => client.framework.db.workspace, + :type => "meterpreter.getsystem", + :data => {:technique => technique} + ) rescue nil return [ true, technique ] end