Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
projectdiscovery
GitHub Repository: projectdiscovery/nuclei
Path: blob/dev/integration_tests/protocols/code/pwsh-echo.yaml
2848 views
1
id: pw-echo
2
3
info:
4
name: PowerShell Echo Test
5
author: pdteam
6
severity: info
7
description: Tests PowerShell execution with an echo-like operation.
8
tags: test,powershell,echo
9
10
self-contained: true
11
12
code:
13
- engine:
14
- pwsh
15
- powershell
16
- powershell.exe
17
args:
18
- -ExecutionPolicy
19
- Bypass
20
pattern: "*.ps1"
21
source: |
22
Write-Output "test-output-success"
23
24
matchers:
25
- type: word
26
words:
27
- "test-output-success"
28