Class: Buby::ScanIssue

Inherits:
Object show all
Includes:
Java::Burp::IScanIssue
Defined in:
lib/buby/scan_issue.rb

Overview

This interface is used to retrieve details of Scanner issues. Extensions can obtain details of issues by registering an IScannerListener or by calling #getScanIssues. Extensions can also add custom Scanner issues by registering an IScannerCheck or calling #addScanIssue, and providing their own implementations of this interface

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(hash) ⇒ ScanIssue



17
18
19
20
21
22
23
24
25
26
27
28
29
# File 'lib/buby/scan_issue.rb', line 17

def initialize hash
  @uri = hash[:uri].kind_of?(URI) ? hash[:uri] : hash[:uri].to_s
  @name = hash[:name]
  @type = hash[:type]
  @severity = hash[:severity]
  @confidence = hash[:confidence]
  @ibackground = hash[:ibackground]
  @rbackground = hash[:rbackground]
  @idetail = hash[:idetail]
  @rdetail = hash[:rdetail]
  @messages = hash[:messages]
  @service = hash[:service]
end

Instance Attribute Details

#confidenceObject

Returns the value of attribute confidence.



13
14
15
# File 'lib/buby/scan_issue.rb', line 13

def confidence
  @confidence
end

#ibackgroundObject

Returns the value of attribute ibackground.



13
14
15
# File 'lib/buby/scan_issue.rb', line 13

def ibackground
  @ibackground
end

#idetailObject

Returns the value of attribute idetail.



14
15
16
# File 'lib/buby/scan_issue.rb', line 14

def idetail
  @idetail
end

#messagesObject

Returns the value of attribute messages.



14
15
16
# File 'lib/buby/scan_issue.rb', line 14

def messages
  @messages
end

#nameObject

Returns the value of attribute name.



13
14
15
# File 'lib/buby/scan_issue.rb', line 13

def name
  @name
end

#rbackgroundObject

Returns the value of attribute rbackground.



14
15
16
# File 'lib/buby/scan_issue.rb', line 14

def rbackground
  @rbackground
end

#rdetailObject

Returns the value of attribute rdetail.



14
15
16
# File 'lib/buby/scan_issue.rb', line 14

def rdetail
  @rdetail
end

#serviceObject

Returns the value of attribute service.



14
15
16
# File 'lib/buby/scan_issue.rb', line 14

def service
  @service
end

#severityObject

Returns the value of attribute severity.



13
14
15
# File 'lib/buby/scan_issue.rb', line 13

def severity
  @severity
end

#typeObject

Returns the value of attribute type.



13
14
15
# File 'lib/buby/scan_issue.rb', line 13

def type
  @type
end

#uriObject

Returns the value of attribute uri.



13
14
15
# File 'lib/buby/scan_issue.rb', line 13

def uri
  @uri
end

Instance Method Details

#getConfidenceString

This method returns the issue confidence level.



63
# File 'lib/buby/scan_issue.rb', line 63

def getConfidence; @confidence; end

#getHttpMessagesObject

Note:

The items in this array should be instances of IHttpRequestResponseWithMarkers if applicable, so that details of the relevant portions of the request and response messages are available.

This method returns the HTTP messages on the basis of which the issue was generated.



104
# File 'lib/buby/scan_issue.rb', line 104

def getHttpMessages; @messages; end

#getHttpServiceObject

This method returns the HTTP service for which the issue was generated.



110
# File 'lib/buby/scan_issue.rb', line 110

def getHttpService; @service; end

#getIssueBackgroundString

This method returns a background description for this type of issue.



70
# File 'lib/buby/scan_issue.rb', line 70

def getIssueBackground; @ibackground; end

#getIssueDetailString

This method returns detailed information about this specific instance of the issue.



86
# File 'lib/buby/scan_issue.rb', line 86

def getIssueDetail; @idetail; end

#getIssueNameString

This method returns the name of the issue type.



41
# File 'lib/buby/scan_issue.rb', line 41

def getIssueName; @name; end

#getIssueTypeFixnum

This method returns a numeric identifier of the issue type. See the Burp Scanner help documentation for a listing of all the issue types.



48
# File 'lib/buby/scan_issue.rb', line 48

def getIssueType; @type; end

#getRemediationBackgroundString

This method returns a background description of the remediation for this type of issue.



78
# File 'lib/buby/scan_issue.rb', line 78

def getRemediationBackground; @rbackground; end

#getRemediationDetailObject

This method returns detailed information about the remediation for this specific instance of the issue.



94
# File 'lib/buby/scan_issue.rb', line 94

def getRemediationDetail; @rdetail; end

#getSeverityString

This method returns the issue severity level.



56
# File 'lib/buby/scan_issue.rb', line 56

def getSeverity; @severity; end

#getUrlJava::JavaNet::URL

This method returns the URL for which the issue was generated.



35
# File 'lib/buby/scan_issue.rb', line 35

def getUrl; Java::JavaNet::URL.new @uri.to_s; end