Class: ZAPv2

Inherits:
ZAP
  • Object
show all
Defined in:
lib/zap/zapv2.rb,
lib/zap/v2apis/hud.rb,
lib/zap/v2apis/pnh.rb,
lib/zap/v2apis/core.rb,
lib/zap/v2apis/exim.rb,
lib/zap/v2apis/soap.rb,
lib/zap/v2apis/acsrf.rb,
lib/zap/v2apis/alert.rb,
lib/zap/v2apis/ascan.rb,
lib/zap/v2apis/break.rb,
lib/zap/v2apis/pscan.rb,
lib/zap/v2apis/stats.rb,
lib/zap/v2apis/users.rb,
lib/zap/v2apis/client.rb,
lib/zap/v2apis/params.rb,
lib/zap/v2apis/retest.rb,
lib/zap/v2apis/reveal.rb,
lib/zap/v2apis/script.rb,
lib/zap/v2apis/search.rb,
lib/zap/v2apis/spider.rb,
lib/zap/v2apis/context.rb,
lib/zap/v2apis/graphql.rb,
lib/zap/v2apis/network.rb,
lib/zap/v2apis/openapi.rb,
lib/zap/v2apis/postman.rb,
lib/zap/v2apis/reports.rb,
lib/zap/v2apis/revisit.rb,
lib/zap/v2apis/keyboard.rb,
lib/zap/v2apis/replacer.rb,
lib/zap/v2apis/selenium.rb,
lib/zap/v2apis/_template.rb,
lib/zap/v2apis/websocket.rb,
lib/zap/v2apis/automation.rb,
lib/zap/v2apis/autoupdate.rb,
lib/zap/v2apis/wappalyzer.rb,
lib/zap/v2apis/ajax_spider.rb,
lib/zap/v2apis/forced_user.rb,
lib/zap/v2apis/import_urls.rb,
lib/zap/v2apis/rule_config.rb,
lib/zap/v2apis/alert_filter.rb,
lib/zap/v2apis/authorization.rb,
lib/zap/v2apis/http_sessions.rb,
lib/zap/v2apis/local_proxies.rb,
lib/zap/v2apis/access_control.rb,
lib/zap/v2apis/authentication.rb,
lib/zap/v2apis/quickstartlaunch.rb,
lib/zap/v2apis/session_management.rb

Defined Under Namespace

Classes: AccessControl, Acsrf, AjaxSpider, Alert, AlertFilter, Ascan, Authentication, Authorization, Automation, Autoupdate, Break, Client, Context, Core, Exim, ForcedUser, GraphQL, HTTPSessions, HUD, ImportURLs, Keyboard, LocalProxies, Network, OpenAPI, Params, PnH, Postman, Pscan, QuickStartLaunch, Replacer, Reports, Retest, Reveal, Revisit, RuleConfig, Script, Search, Selenium, SessionManagement, Soap, Spider, Stats, Template, Users, Wappalyzer, Websocket

Constant Summary

Constants inherited from ZAP

ZAP::API_KEY_DEFAULT

Instance Attribute Summary collapse

Attributes inherited from ZAP

#api

Instance Method Summary collapse

Constructor Details

#initialize(endpoint: 'http://localhost:8080', apikey: API_KEY_DEFAULT) ⇒ ZAPv2

Returns a new instance of ZAPv2.



53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# File 'lib/zap/zapv2.rb', line 53

def initialize(endpoint: 'http://localhost:8080', apikey: API_KEY_DEFAULT)
  super endpoint: endpoint, apikey: apikey

  @access_control = AccessControl.new @api_client
  @acsrf = Acsrf.new @api_client
  @ajax_spider = AjaxSpider.new @api_client
  @alert = Alert.new @api_client
  @alert_filter = AlertFilter.new @api_client
  @ascan = Ascan.new @api_client
  @authentication = Authentication.new @api_client
  @authorization = Authorization.new @api_client
  @automation = Automation.new @api_client
  @autoupdate = Autoupdate.new @api_client
  @break = Break.new @api_client
  @client = Client.new @api_client
  @context = Context.new @api_client
  @core = Core.new @api_client
  @exim = Exim.new @api_client
  @forced_user = ForcedUser.new @api_client
  @graphql = GraphQL.new @api_client
  @http_sessions = HTTPSessions.new @api_client
  @hud = HUD.new @api_client
  @import_urls = ImportURLs.new @api_client
  @keyboard = Keyboard.new @api_client
  @local_proxies = LocalProxies.new @api_client
  @network = Network.new @api_client
  @openapi = OpenAPI.new @api_client
  @params = Params.new @api_client
  @pnh = PnH.new @api_client
  @postman = Postman.new @api_client
  @pscan = Pscan.new @api_client
  @quickstartlaunch = QuickStartLaunch.new @api_client
  @replacer = Replacer.new @api_client
  @reports = Reports.new @api_client
  @retest = Retest.new @api_client
  @reveal = Reveal.new @api_client
  @revisit = Revisit.new @api_client
  @rule_config = RuleConfig.new @api_client
  @script = Script.new @api_client
  @search = Search.new @api_client
  @selenium = Selenium.new @api_client
  @session_management = SessionManagement.new @api_client
  @soap = Soap.new @api_client
  @spider = Spider.new @api_client
  @stats = Stats.new @api_client
  @users = Users.new @api_client
  @wappalyzer = Wappalyzer.new @api_client
  @websocket = Websocket.new @api_client
end

Instance Attribute Details

#access_controlObject (readonly)

Returns the value of attribute access_control.



51
52
53
# File 'lib/zap/zapv2.rb', line 51

def access_control
  @access_control
end

#acsrfObject (readonly)

Returns the value of attribute acsrf.



51
52
53
# File 'lib/zap/zapv2.rb', line 51

def acsrf
  @acsrf
end

#ajax_spiderObject (readonly)

Returns the value of attribute ajax_spider.



51
52
53
# File 'lib/zap/zapv2.rb', line 51

def ajax_spider
  @ajax_spider
end

#alertObject (readonly)

Returns the value of attribute alert.



51
52
53
# File 'lib/zap/zapv2.rb', line 51

def alert
  @alert
end

#alert_filterObject (readonly)

Returns the value of attribute alert_filter.



51
52
53
# File 'lib/zap/zapv2.rb', line 51

def alert_filter
  @alert_filter
end

#ascanObject (readonly)

Returns the value of attribute ascan.



51
52
53
# File 'lib/zap/zapv2.rb', line 51

def ascan
  @ascan
end

#authenticationObject (readonly)

Returns the value of attribute authentication.



51
52
53
# File 'lib/zap/zapv2.rb', line 51

def authentication
  @authentication
end

#authorizationObject (readonly)

Returns the value of attribute authorization.



51
52
53
# File 'lib/zap/zapv2.rb', line 51

def authorization
  @authorization
end

#automationObject (readonly)

Returns the value of attribute automation.



51
52
53
# File 'lib/zap/zapv2.rb', line 51

def automation
  @automation
end

#autoupdateObject (readonly)

Returns the value of attribute autoupdate.



51
52
53
# File 'lib/zap/zapv2.rb', line 51

def autoupdate
  @autoupdate
end

#breakObject (readonly)

Returns the value of attribute break.



51
52
53
# File 'lib/zap/zapv2.rb', line 51

def break
  @break
end

#clientObject (readonly)

Returns the value of attribute client.



51
52
53
# File 'lib/zap/zapv2.rb', line 51

def client
  @client
end

#contextObject (readonly)

Returns the value of attribute context.



51
52
53
# File 'lib/zap/zapv2.rb', line 51

def context
  @context
end

#coreObject (readonly)

Returns the value of attribute core.



51
52
53
# File 'lib/zap/zapv2.rb', line 51

def core
  @core
end

#eximObject (readonly)

Returns the value of attribute exim.



51
52
53
# File 'lib/zap/zapv2.rb', line 51

def exim
  @exim
end

#forced_userObject (readonly)

Returns the value of attribute forced_user.



51
52
53
# File 'lib/zap/zapv2.rb', line 51

def forced_user
  @forced_user
end

#graphqlObject (readonly)

Returns the value of attribute graphql.



51
52
53
# File 'lib/zap/zapv2.rb', line 51

def graphql
  @graphql
end

#http_sessionsObject (readonly)

Returns the value of attribute http_sessions.



51
52
53
# File 'lib/zap/zapv2.rb', line 51

def http_sessions
  @http_sessions
end

#hudObject (readonly)

Returns the value of attribute hud.



51
52
53
# File 'lib/zap/zapv2.rb', line 51

def hud
  @hud
end

#import_urlsObject (readonly)

Returns the value of attribute import_urls.



51
52
53
# File 'lib/zap/zapv2.rb', line 51

def import_urls
  @import_urls
end

#keyboardObject (readonly)

Returns the value of attribute keyboard.



51
52
53
# File 'lib/zap/zapv2.rb', line 51

def keyboard
  @keyboard
end

#local_proxiesObject (readonly)

Returns the value of attribute local_proxies.



51
52
53
# File 'lib/zap/zapv2.rb', line 51

def local_proxies
  @local_proxies
end

#networkObject (readonly)

Returns the value of attribute network.



51
52
53
# File 'lib/zap/zapv2.rb', line 51

def network
  @network
end

#openapiObject (readonly)

Returns the value of attribute openapi.



51
52
53
# File 'lib/zap/zapv2.rb', line 51

def openapi
  @openapi
end

#paramsObject (readonly)

Returns the value of attribute params.



51
52
53
# File 'lib/zap/zapv2.rb', line 51

def params
  @params
end

#pnhObject (readonly)

Returns the value of attribute pnh.



51
52
53
# File 'lib/zap/zapv2.rb', line 51

def pnh
  @pnh
end

#postmanObject (readonly)

Returns the value of attribute postman.



51
52
53
# File 'lib/zap/zapv2.rb', line 51

def postman
  @postman
end

#pscanObject (readonly)

Returns the value of attribute pscan.



51
52
53
# File 'lib/zap/zapv2.rb', line 51

def pscan
  @pscan
end

#quickstartlaunchObject (readonly)

Returns the value of attribute quickstartlaunch.



51
52
53
# File 'lib/zap/zapv2.rb', line 51

def quickstartlaunch
  @quickstartlaunch
end

#replacerObject (readonly)

Returns the value of attribute replacer.



51
52
53
# File 'lib/zap/zapv2.rb', line 51

def replacer
  @replacer
end

#reportsObject (readonly)

Returns the value of attribute reports.



51
52
53
# File 'lib/zap/zapv2.rb', line 51

def reports
  @reports
end

#retestObject (readonly)

Returns the value of attribute retest.



51
52
53
# File 'lib/zap/zapv2.rb', line 51

def retest
  @retest
end

#revealObject (readonly)

Returns the value of attribute reveal.



51
52
53
# File 'lib/zap/zapv2.rb', line 51

def reveal
  @reveal
end

#revisitObject (readonly)

Returns the value of attribute revisit.



51
52
53
# File 'lib/zap/zapv2.rb', line 51

def revisit
  @revisit
end

#rule_configObject (readonly)

Returns the value of attribute rule_config.



51
52
53
# File 'lib/zap/zapv2.rb', line 51

def rule_config
  @rule_config
end

#scriptObject (readonly)

Returns the value of attribute script.



51
52
53
# File 'lib/zap/zapv2.rb', line 51

def script
  @script
end

#searchObject (readonly)

Returns the value of attribute search.



51
52
53
# File 'lib/zap/zapv2.rb', line 51

def search
  @search
end

#seleniumObject (readonly)

Returns the value of attribute selenium.



51
52
53
# File 'lib/zap/zapv2.rb', line 51

def selenium
  @selenium
end

#session_managementObject (readonly)

Returns the value of attribute session_management.



51
52
53
# File 'lib/zap/zapv2.rb', line 51

def session_management
  @session_management
end

#soapObject (readonly)

Returns the value of attribute soap.



51
52
53
# File 'lib/zap/zapv2.rb', line 51

def soap
  @soap
end

#spiderObject (readonly)

Returns the value of attribute spider.



51
52
53
# File 'lib/zap/zapv2.rb', line 51

def spider
  @spider
end

#statsObject (readonly)

Returns the value of attribute stats.



51
52
53
# File 'lib/zap/zapv2.rb', line 51

def stats
  @stats
end

#usersObject (readonly)

Returns the value of attribute users.



51
52
53
# File 'lib/zap/zapv2.rb', line 51

def users
  @users
end

#wappalyzerObject (readonly)

Returns the value of attribute wappalyzer.



51
52
53
# File 'lib/zap/zapv2.rb', line 51

def wappalyzer
  @wappalyzer
end

#websocketObject (readonly)

Returns the value of attribute websocket.



51
52
53
# File 'lib/zap/zapv2.rb', line 51

def websocket
  @websocket
end