Method: Buby::Implants::ScannerInsertionPoint#getPayloadOffsets
- Defined in:
- lib/buby/implants/scanner_insertion_point.rb
#getPayloadOffsets(payload) ⇒ Array<Fixnum>?
This method is used to determine the offsets of the payload value within the request, when it is placed into the insertion point. Scan checks may invoke this method when reporting issues, so as to highlight the relevant part of the request within the UI.
60 61 62 63 |
# File 'lib/buby/implants/scanner_insertion_point.rb', line 60 def getPayloadOffsets(payload) payload = payload.to_java_bytes if payload.respond_to? :to_java_bytes __getPayloadOffsets(payload) end |