Sha256: 6d833cb479faec1c389b0995dc7e92d786c41536c85bea57121b426e80e7f34b
Contents?: true
Size: 728 Bytes
Versions: 7
Compression:
Stored size: 728 Bytes
Contents
module OwaspZap class Spider def initialize(params = {}) #TODO #handle it @base = params[:base] @target = params[:target] end def start #http://localhost:8080/JSON/spider/action/scan/?zapapiformat=JSON&url= url = Addressable::URI.parse "#{@base}/spider/action/scan/" url.query_values = {:zapapiformat=>"JSON",:url=>@target} RestClient::get url.normalize.to_str end def stop RestClient::get "#{@base}/spider/action/stop/?zapapiformat=JSON" end def status RestClient::get "#{@base}/spider/view/status/?zapapiformat=JSON" end end end
Version data entries
7 entries across 7 versions & 1 rubygems