Fix rpc_info
parent
d89b971d83
commit
a3df5bb5d9
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue