Clean metadata
parent
443dd7b6c0
commit
2c4caeed29
|
@ -44,16 +44,16 @@ class Metasploit3 < Msf::Post
|
||||||
'License' => MSF_LICENSE,
|
'License' => MSF_LICENSE,
|
||||||
'Author' => ['Thomas Ring'],
|
'Author' => ['Thomas Ring'],
|
||||||
'Platform' => ['win'],
|
'Platform' => ['win'],
|
||||||
'SessionTypes' => [ 'meterpreter' ],
|
'SessionTypes' => ['meterpreter']
|
||||||
))
|
))
|
||||||
|
|
||||||
register_options([
|
register_options([
|
||||||
OptString.new('FIELDS', [true, 'Fields to retrieve (ie, sn, givenName, displayName, description, comment)', DEFAULT_FIELDS]),
|
OptString.new('FIELDS', [true, 'Fields to retrieve (ie, sn, givenName, displayName, description, comment)', DEFAULT_FIELDS.join(',')]),
|
||||||
], self.class)
|
], self.class)
|
||||||
end
|
end
|
||||||
|
|
||||||
def run
|
def run
|
||||||
fields = datastore['FIELDS'].gsub(/\s+/,"").split(',')
|
fields = datastore['FIELDS'].gsub(/\s+/,'').split(',')
|
||||||
|
|
||||||
begin
|
begin
|
||||||
q = query(SEARCH_FILTER, datastore['MAX_SEARCH'], fields)
|
q = query(SEARCH_FILTER, datastore['MAX_SEARCH'], fields)
|
||||||
|
|
Loading…
Reference in New Issue