Fix rpc_info

GSoC/Meterpreter_Web_Console
Wei Chen 2018-09-04 08:35:39 -05:00
parent d89b971d83
commit a3df5bb5d9
2 changed files with 13 additions and 1 deletions

View File

@ -145,6 +145,18 @@ module Msf
{}
end
def stance
'passive'
end
def passive?
true
end
def aggressive?
false
end
# Generates the encoded version of the supplied payload using the payload
# requirements specific to this evasion module. The encoded instance is returned
# to the caller. This method is exposed in the manner that it is such that passive

View File

@ -124,7 +124,7 @@ class RPC_Module < RPC_Base
res['references'] << [r.ctx_id, r.ctx_val]
end
if m.type == 'exploit'
if m.type == 'exploit' || m.type == 'evasion'
res['targets'] = {}
m.targets.each_index do |i|
res['targets'][i] = m.targets[i].name