Minor fix for T1115 - Pipe Get-Clipboard output (#952)

* Update T1115.yaml

Update command for PowerShell so the contents of Get-Clipboard are actually invoked as an expression.

* Update Markdown PowerShell code snippet to reflect changes

* Pipe output of Get-Clipboard to iex in order to invoke the value of clipboard as a command

Co-authored-by: Carrie Roberts <clr2of8@gmail.com>
This commit is contained in:
axi0m
2020-04-22 11:25:25 -05:00
committed by GitHub
parent ceafbf9c62
commit cc1aced76b
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -63,7 +63,7 @@ Utilize PowerShell to echo a command to clipboard and execute it
```powershell
echo Get-Process | clip
iex Get-Clipboard
Get-Clipboard | iex
```
+1 -1
View File
@@ -29,4 +29,4 @@ atomic_tests:
elevation_required: false
command: |
echo Get-Process | clip
iex Get-Clipboard
Get-Clipboard | iex