<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Script Console on ZAP</title>
    <link>/docs/desktop/addons/script-console/</link>
    <description>Recent content in Script Console on ZAP</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <atom:link href="/docs/desktop/addons/script-console/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Scripts Automation Framework Support</title>
      <link>/docs/desktop/addons/script-console/automation/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/docs/desktop/addons/script-console/automation/</guid>
      <description>&lt;h1 id=&#34;scripts-automation-framework-support&#34;&gt;Scripts Automation Framework Support&lt;/h1&gt;&#xA;&lt;p&gt;This add-on supports the Automation Framework.&lt;/p&gt;&#xA;&#xA;&lt;h2 id=&#34;job-script&#34;&gt;Job: script &lt;a class=&#34;header-link&#34; href=&#34;#job-script&#34;&gt;&lt;svg class=&#34;fill-current o-60 hover-accent-color-light&#34; height=&#34;22px&#34; viewBox=&#34;0 0 24 24&#34; width=&#34;22px&#34; xmlns=&#34;http://www.w3.org/2000/svg&#34;&gt;&lt;path d=&#34;M0 0h24v24H0z&#34; fill=&#34;none&#34;/&gt;&lt;path d=&#34;M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z&#34; fill=&#34;currentColor&#34;/&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;p&gt;The script job allows you to execute various actions with scripts:&lt;/p&gt;</description>
    </item>
    <item>
      <title>Script Console Tab</title>
      <link>/docs/desktop/addons/script-console/console/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/docs/desktop/addons/script-console/console/</guid>
      <description>&lt;h1 id=&#34;script-console-tab&#34;&gt;Script Console Tab&lt;/h1&gt;&#xA;&lt;p&gt;The Scripts Console allows you to write scripts which run within ZAP.&lt;/p&gt;&#xA;&lt;p&gt;It is made up of:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;A toolbar&lt;/li&gt;&#xA;&lt;li&gt;A text area (top) in which you can write your scripts&lt;/li&gt;&#xA;&lt;li&gt;An output text area (bottom) for debug and error messages, with &amp;ldquo;print&amp;rdquo; statements.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;To create a new script or to load or switch scripts see the &lt;a href=&#34;/docs/desktop/addons/script-console/tree/&#34;&gt;The Scripts &amp;rsquo;tree&amp;rsquo; tab&lt;/a&gt;.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Script Console Options</title>
      <link>/docs/desktop/addons/script-console/options/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/docs/desktop/addons/script-console/options/</guid>
      <description>&lt;h1 id=&#34;script-console-options&#34;&gt;Script Console Options&lt;/h1&gt;&#xA;&#xA;&lt;h2 id=&#34;when-the-script-in-the-console-changes-on-disk&#34;&gt;When the Script in the Console Changes on Disk &lt;a class=&#34;header-link&#34; href=&#34;#when-the-script-in-the-console-changes-on-disk&#34;&gt;&lt;svg class=&#34;fill-current o-60 hover-accent-color-light&#34; height=&#34;22px&#34; viewBox=&#34;0 0 24 24&#34; width=&#34;22px&#34; xmlns=&#34;http://www.w3.org/2000/svg&#34;&gt;&lt;path d=&#34;M0 0h24v24H0z&#34; fill=&#34;none&#34;/&gt;&lt;path d=&#34;M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z&#34; fill=&#34;currentColor&#34;/&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;p&gt;This setting allows you to configure the default behaviour when a script open in the Script Console changes on disk,&#xA;for example if it was updated in another code editor. There are three options to choose from:&lt;/p&gt;</description>
    </item>
    <item>
      <title>Script Scan Rules</title>
      <link>/docs/desktop/addons/script-console/scanrules/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/docs/desktop/addons/script-console/scanrules/</guid>
      <description>&lt;h1 id=&#34;script-scan-rules&#34;&gt;Script Scan Rules&lt;/h1&gt;&#xA;&lt;p&gt;Active and Passive Scripts that implement the &lt;code&gt;getMetadata&lt;/code&gt; function are treated as first-class scan rules by ZAP. An example implementation of this function in a script would look like:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;function getMetadata() {&#xA;&#x9;return ScanRuleMetadata.fromYaml(`&#xA;id: 12345&#xA;name: Active Vulnerability Title&#xA;description: Full description&#xA;solution: The solution&#xA;references:&#xA;  - Reference 1&#xA;  - Reference 2&#xA;category: INJECTION  # info_gather, browser, server, misc, injection&#xA;risk: INFO  # info, low, medium, high&#xA;confidence: LOW  # false_positive, low, medium, high, user_confirmed&#xA;cweId: 0&#xA;wascId: 0&#xA;alertTags:&#xA;  name1: value1&#xA;  name2: value2&#xA;otherInfo: Any other Info&#xA;status: alpha&#xA;alertRefOverrides:&#xA;  12345-1:&#xA;    name: Alert Reference 1&#xA;&#xA;`);&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The metadata function is evaluated upon saving the script, which is exposed as a scan rule if the metadata is valid.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Scripts tree tab</title>
      <link>/docs/desktop/addons/script-console/tree/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/docs/desktop/addons/script-console/tree/</guid>
      <description>&lt;h1 id=&#34;scripts-tree-tab&#34;&gt;Scripts tree tab&lt;/h1&gt;&#xA;&lt;p&gt;The Scripts tree tab shows you all of the scripts you currently have loaded organized by type.&lt;/p&gt;&#xA;&lt;p&gt;It also shows you which templates you have available - these cannot be run directly, you use them to create new scripts.&lt;/p&gt;&#xA;&lt;p&gt;It also allows you to add new scripts, load, save and remove them.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
