Class: Contrast::Agent::Reporting::Details::CmdInjectionDetails

Inherits:
ProtectRuleDetails show all
Defined in:
lib/contrast/agent/reporting/details/cmd_injection_details.rb

Overview

CMDI IA result details info.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#cmdString

Returns:



13
14
15
# File 'lib/contrast/agent/reporting/details/cmd_injection_details.rb', line 13

def cmd
  @cmd
end

#end_idxInteger

Returns:

  • (Integer)


17
18
19
# File 'lib/contrast/agent/reporting/details/cmd_injection_details.rb', line 17

def end_idx
  @end_idx
end

#start_idxInteger

Returns:

  • (Integer)


15
16
17
# File 'lib/contrast/agent/reporting/details/cmd_injection_details.rb', line 15

def start_idx
  @start_idx
end

Instance Method Details

#to_controlled_hashObject



19
20
21
22
23
24
25
# File 'lib/contrast/agent/reporting/details/cmd_injection_details.rb', line 19

def to_controlled_hash
  {
      command: cmd,
      startIndex: start_idx,
      endIndex: end_idx
  }
end