Allow getsystem to report its success as a host note.

git-svn-id: file:///home/svn/framework3/trunk@11622 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Tod Beardsley 2011-01-22 00:08:35 +00:00
parent f8120a8e3f
commit 8b5f0f6559
1 changed files with 6 additions and 0 deletions

View File

@ -72,6 +72,12 @@ class Priv < Extension
if( response.result == 0 and technique != nil ) if( response.result == 0 and technique != nil )
client.core.use( "stdapi" ) if not client.ext.aliases.include?( "stdapi" ) client.core.use( "stdapi" ) if not client.ext.aliases.include?( "stdapi" )
client.sys.config.getprivs 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 ] return [ true, technique ]
end end