Sha256: 85e88a3aa608127b17baead29d09fd176e9a2db6b9f00b214e2a655608962080
Contents?: true
Size: 652 Bytes
Versions: 4
Compression:
Stored size: 652 Bytes
Contents
module OwaspZap class Alert def initialize(params = {}) #handle params @base = params[:base] @target = params[:target] end # # the API has an option to give an offset (start) and the amount of alerts (count) as parameter def view #http://localhost:8080/JSON/core/view/alerts/?zapapiformat=JSON&baseurl=http%3A%2F%2F192.168.1.113&start=&count= url = Addressable::URI.parse "#{@base}/core/view/alerts/" url.query_values = {:zapapiformat=>"JSON",:baseurl=>@target} RestClient::get url.normalize.to_str end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
owasp_zap-0.0.7 | lib/owasp_zap/alert.rb |
owasp_zap-0.0.6 | lib/owasp_zap/alert.rb |
owasp_zap-0.0.5 | lib/owasp_zap/alert.rb |
owasp_zap-0.0.1 | lib/owasp_zap/alert.rb |