Allow getsystem to report its success as a host note.
git-svn-id: file:///home/svn/framework3/trunk@11622 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
f8120a8e3f
commit
8b5f0f6559
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue