From 1980f403ee78234eae4d93b50890d02f827a099f Mon Sep 17 00:00:00 2001 From: HarmJ0y Date: Wed, 14 Dec 2016 17:50:37 -0500 Subject: For ./CodeExecution/ : -PSScriptAnalyzering -Tweaking of synopsis blocks in order to support platyPS -Code standardization -Generated docs --- CodeExecution/Invoke-WmiCommand.ps1 | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'CodeExecution/Invoke-WmiCommand.ps1') diff --git a/CodeExecution/Invoke-WmiCommand.ps1 b/CodeExecution/Invoke-WmiCommand.ps1 index 0c06424..9f03f9b 100644 --- a/CodeExecution/Invoke-WmiCommand.ps1 +++ b/CodeExecution/Invoke-WmiCommand.ps1 @@ -5,10 +5,10 @@ function Invoke-WmiCommand { Executes a PowerShell ScriptBlock on a target computer using WMI as a pure C2 channel. -Author: Matthew Graeber -License: BSD 3-Clause -Required Dependencies: None -Optional Dependencies: None +Author: Matthew Graeber +License: BSD 3-Clause +Required Dependencies: None +Optional Dependencies: None .DESCRIPTION @@ -149,6 +149,9 @@ Write-Host in your scripts though, you probably don't deserve to get the output of your payload back. :P #> + [Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSAvoidUsingWMICmdlet', '')] + [Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSShouldProcess', '')] + [Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSAvoidUsingInvokeExpression', '')] [CmdletBinding()] Param ( [Parameter( Mandatory = $True )] -- cgit v1.2.3