SHARE
TWEET

GlobalVarExample.zst

a guest Jun 18th, 2019 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. {
  2.   "about": "This is a Zest script. For more details about Zest visit https://developer.mozilla.org/en-US/docs/Zest",
  3.   "zestVersion": "0.8",
  4.   "title": "GlobalVarExampleForZest",
  5.   "description": "",
  6.   "prefix": "",
  7.   "type": "StandAlone",
  8.   "parameters": {
  9.     "tokenStart": "{{",
  10.     "tokenEnd": "}}",
  11.     "tokens": {},
  12.     "elementType": "ZestVariables"
  13.   },
  14.   "statements": [
  15.     {
  16.       "string": "NameGlobalVar",
  17.       "variableName": "myZestVar",
  18.       "index": 1,
  19.       "enabled": true,
  20.       "elementType": "ZestAssignString"
  21.     },
  22.     {
  23.       "string": "ValueGlobalVar",
  24.       "variableName": "myZestValue",
  25.       "index": 2,
  26.       "enabled": true,
  27.       "elementType": "ZestAssignString"
  28.     },
  29.     {
  30.       "variableName": "",
  31.       "script": "C:\\Users\\rasokatj\\Desktop\\ZAP-Sessions\\ZAP-Scripts\\set_global_var.js",
  32.       "parameters": [
  33.         [
  34.           "name",
  35.           "{{myZestVar}}"
  36.         ],
  37.         [
  38.           "value",
  39.           "{{myZestValue}}"
  40.         ]
  41.       ],
  42.       "index": 3,
  43.       "enabled": true,
  44.       "elementType": "ZestActionInvoke"
  45.     },
  46.     {
  47.       "message": "Saved value \"{{myZestValue}}\" to global var \"{{myZestVar}}\"",
  48.       "index": 4,
  49.       "enabled": true,
  50.       "elementType": "ZestActionPrint"
  51.     },
  52.     {
  53.       "variableName": "scriptVar",
  54.       "script": "C:\\Users\\rasokatj\\Desktop\\ZAP-Sessions\\ZAP-Scripts\\get_global_var.js",
  55.       "parameters": [
  56.         [
  57.           "name",
  58.           "{{myZestVar}}"
  59.         ]
  60.       ],
  61.       "index": 5,
  62.       "enabled": true,
  63.       "elementType": "ZestActionInvoke"
  64.     },
  65.     {
  66.       "message": "Global var \"{{myZestVar}}\" has value \"{{scriptVar}}\"",
  67.       "index": 6,
  68.       "enabled": true,
  69.       "elementType": "ZestActionPrint"
  70.     }
  71.   ],
  72.   "authentication": [],
  73.   "index": 0,
  74.   "enabled": true,
  75.   "elementType": "ZestScript"
  76. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top