Skip to content

Commit cceb146

Browse files
committed
Support for the new ADSI result structure
1 parent 685d959 commit cceb146

File tree

2 files changed

+4
-3
lines changed
  • lib/rex/post/meterpreter
    • extensions/extapi/adsi
    • ui/console/command_dispatcher/extapi

2 files changed

+4
-3
lines changed

lib/rex/post/meterpreter/extensions/extapi/adsi/adsi.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ def extract_value(v)
127127
value[:string] = value[1].value
128128
else
129129
value[:raw] = value[1].value
130+
end
130131
end
131132

132133
value

lib/rex/post/meterpreter/ui/console/command_dispatcher/extapi/adsi.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -207,12 +207,12 @@ def to_table_row(result)
207207
# we'll truncate the output of the array because it could be excessive if we
208208
# don't. Users who want the detail of this stuff should probably script it.
209209
if val.length > 50
210-
val = val[0,50] + ' ..."'
210+
val = "<#{val[0,50]}..."
211211
end
212212

213-
values << "[#{val}]"
213+
values << val
214214
when :dn
215-
values << "#{value[:string] || Rex::Text.to_hex(value[:raw], '')}"
215+
values << "#{value[:label]}: #{value[:string] || Rex::Text.to_hex(value[:raw], '')}"
216216
when :path
217217
values << "Vol: #{v[:volume]}, Path: #{v[:path]}, Type: #{v[:vol_type]}"
218218
when :unknown

0 commit comments

Comments
 (0)