From 80e635ca6bb6f90185b78483d350f4d48205d8ed Mon Sep 17 00:00:00 2001 From: silversword411 Date: Thu, 22 Aug 2024 08:31:59 -0400 Subject: [PATCH 1/3] add: fix missing scripts pic --- docs/functions/images/script_args.png | Bin 0 -> 14492 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 docs/functions/images/script_args.png diff --git a/docs/functions/images/script_args.png b/docs/functions/images/script_args.png new file mode 100644 index 0000000000000000000000000000000000000000..427ad75d230ac2ea4bea733a43a2f02bcd172873 GIT binary patch literal 14492 zcmbW8cQjmW_xFiJi5?*{dhcxzEjrOlkm!AMMi(SXMDK0%8eMb|LG*42(L$7HGinGj zqVqd)-@j+QYrX4T>sjv~oSEUAx!S(2y}zHmqn>Fh5#Fb~kAZJ#uUE$;#E@!XURJuxsSSZ;qXRdkpS zFfc?RDhjgCea-fAPimR_k3TI3^<|hcRO4M^1}Ey_Cdp`NwG!`-d5>#}y0N=i9j3wm0y=J7<2ix5KWlBJ}?)C~b8o*Awy{eDQbqN61SO+kb z!R-~o1H~G-y_VYi??col{`nUObnw5w=|A7>AXG?Pc+MhZXHt!?T6o$2cj1jS26)kTJ#OaeWZ8W0^RJG6 z{$7i{kFzythPIi7`QX^&S@X_TpglUq>6dX3TeBi^ET>_X^r|t5-=jMn7yFg8fv2lG zV^4ln{rU0wm(|<@ee(cs@12S=imUT`C<&);RgV4S`rPN^G4%Sem1J5H^;^r2L4w2* z2QrSj?jt;(p6}Ltc7gcoQ+rQqSHNaXJiip)@Ml1viULPOV#q|`P0OEor%GtNSm~As zUx+i`=bsH{js#RtR=#SG0S>jBjQ1do&vT&ZuLbVMOa7VL`DW}|E&RiG-RiX7?fPt! zO*JsvrPTpJ-0LzfdBPo@iR=7vMsHYV^)oVG-n8cPeyh76H-DY|Y~V=DY8dI{A5LB8 z3)$aY{M|AfXJ5ERwXpS^jS0AR!lj0L!O+n*MK0`bq)OD1Wv!^7G8(QtR<5L1GBrG;I7z)SCM zhIVny=68O7aU>f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documentation and examples --- docs/functions/scripting.md | 92 +++++++++++++++++++++++++++++++------ 1 file changed, 77 insertions(+), 15 deletions(-) diff --git a/docs/functions/scripting.md b/docs/functions/scripting.md index 1d624b65..b77dc4da 100644 --- a/docs/functions/scripting.md +++ b/docs/functions/scripting.md @@ -109,9 +109,25 @@ edata={{agent.hostname}} ```batch @echo off - echo %hello% - echo %foo% - echo %data% + setlocal + + rem Parameters. Batch only accepts positional params not named ones + set hello=%1 + set foo=%2 + set data=%3 + + echo Script Args + echo hello: %hello% + echo foo: %foo% + echo data: %data% + + echo. + echo Environment Vars + echo ehello: %ehello% + echo efoo: %efoo% + echo edata: %edata% + + endlocal ``` === ":material-powershell: Powershell" @@ -119,9 +135,22 @@ edata={{agent.hostname}} Script ```ps - Write-Output $env:hello - Write-Output $env:foo - Write-Output $env:data + param( + [string]$hello, + [string]$foo, + [string]$data + ) + + Write-Output "Script Args" + Write-Output "hello: $hello" + Write-Output "foo: $foo" + Write-Output "data: $data" + + Write-Output "" + Write-Output "Environment Vars" + Write-Output "ehello: $env:ehello" + Write-Output "efoo: $env:efoo" + Write-Output "edata: $env:edata" ``` === ":material-language-python: Python" @@ -132,10 +161,31 @@ edata={{agent.hostname}} #!/usr/bin/python3 import os - - print(os.getenv("hello")) - print(os.getenv("foo")) - print(os.getenv("data")) + import argparse + + #Note: named args in python require -- and = between name and value eg + # --hello=world + # --foo=bar + # --data={{agent.public_ip}} + # Parse command-line arguments + parser = argparse.ArgumentParser(description="Process some strings.") + parser.add_argument("--hello", type=str, help="Value for hello") + parser.add_argument("--foo", type=str, help="Value for foo") + parser.add_argument("--data", type=str, help="Value for data") + + args = parser.parse_args() + + # Script Args + print("Script Args") + print(f"hello: {args.hello}") + print(f"foo: {args.foo}") + print(f"data: {args.data}") + + # Environment Vars + print("\nEnvironment Vars") + print(f"ehello: {os.getenv('ehello')}") + print(f"efoo: {os.getenv('efoo')}") + print(f"edata: {os.getenv('edata')}") ``` === ":material-bash: Shell" @@ -143,11 +193,23 @@ edata={{agent.hostname}} Script ```bash - #!/usr/bin/env bash - - echo %hello% - echo %foo% - echo %data% + #!/bin/bash + + #Bash only accepts positional params not named ones + hello="$1" + foo="$2" + data="$3" + + echo "Script Args" + echo "hello: $hello" + echo "foo: $foo" + echo "data: $data" + + echo "" + echo "Environment Vars" + echo "ehello: $ehello" + echo "efoo: $efoo" + echo "edata: $edata" ```
From 43cfe319c1ca0538f6b02a841bba8f55c473f0bb Mon Sep 17 00:00:00 2001 From: silversword411 Date: Thu, 22 Aug 2024 09:26:38 -0400 Subject: [PATCH 3/3] fix: script examples --- docs/functions/scripting.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/functions/scripting.md b/docs/functions/scripting.md index b77dc4da..56edc5d1 100644 --- a/docs/functions/scripting.md +++ b/docs/functions/scripting.md @@ -82,14 +82,13 @@ and `()` indicates a default parameter if none is specified. Starting with 0.15.4 you can use environment variables to pass them too! -#### Environment Variables +#### Examples Script Arguments ``` -hello world -foo bar --data {{agent.site.client.name}} -data {{agent.public_ip}} ```