Mzap::Client
Constants
ACCESS_API = "/JSON/core/action/accessUrl/"
AJAX_SPIDER_API = "/JSON/ajaxSpider/action/scan/"
AJAX_SPIDER_STOP = "/JSON/ajaxSpider/action/stop/"
AJAX_STATUS = "/JSON/ajaxSpider/view/status/"
ALERTS_SUMMARY_API = "/JSON/alert/view/alertsSummary/"
ASCAN_API = "/JSON/ascan/action/scan/"
ASCAN_STATUS = "/JSON/ascan/view/status/"
ASCAN_STOP = "/JSON/ascan/action/stopAllScans/"
ERROR_STATUSES = {"error", "failed", "failure", "aborted"}
HTML_REPORT_API = "/OTHER/core/other/htmlreport/"
PDF_REPORT_API = "/OTHER/core/other/pdfreport/"
PSCAN_RECORDS_TO_SCAN = "/JSON/pscan/view/recordsToScan/"
REPORT_GENERATE_API = "/JSON/reports/action/generate/"
REPORT_TITLE = "mzap report"
RISK_LEVELS = {"informational" => 0, "low" => 1, "medium" => 2, "high" => 3}
RUNNING_STATUSES = {"running", "inprogress", "in_progress", "started", "busy"}
SPIDER_API = "/JSON/spider/action/scan/"
SPIDER_STATUS = "/JSON/spider/view/status/"
SPIDER_STOP = "/JSON/spider/action/stopAllScans/"
TEMPLATE_HTML = "traditional-html"
TEMPLATE_JSON = "traditional-json"
TEMPLATE_MD = "traditional-md"
TEMPLATE_PDF = "traditional-pdf"
Instance methods
active_scan(urls : String, *, apis : String, options : Options, reporter : Reporter = Reporter.new) : Bool
Sourceajax_spider(urls : String, *, apis : String, options : Options, reporter : Reporter = Reporter.new) : Bool
Sourcepassive_scan(apis : String, *, options : Options, reporter : Reporter = Reporter.new) : Bool
Sourcerun(urls : String, apis : String, scan_type : String, options : Options, reporter : Reporter = Reporter.new) : Bool
Sourcespider(urls : String, *, apis : String, options : Options, reporter : Reporter = Reporter.new) : Bool
Sourcestop_active_scan(apis : String, *, options : Options, reporter : Reporter = Reporter.new) : Nil
Sourcestop_ajax_spider(apis : String, *, options : Options, reporter : Reporter = Reporter.new) : Nil
Sourcestop_spider(apis : String, *, options : Options, reporter : Reporter = Reporter.new) : Nil
Source