aboutsummaryrefslogtreecommitdiff
path: root/CodeExecution/Invoke-WmiCommand.ps1
diff options
context:
space:
mode:
authorHarmJ0y <will@harmj0y.net>2016-12-14 17:50:37 -0500
committerHarmJ0y <will@harmj0y.net>2016-12-14 17:50:37 -0500
commit1980f403ee78234eae4d93b50890d02f827a099f (patch)
tree2fec2850aae270130931f92385b5e5bdb57c1b4f /CodeExecution/Invoke-WmiCommand.ps1
parent7cdaa3c2d6afbaaaf10804435e873e14698f40b9 (diff)
downloadPowerSploit-1980f403ee78234eae4d93b50890d02f827a099f.tar.gz
PowerSploit-1980f403ee78234eae4d93b50890d02f827a099f.zip
For ./CodeExecution/ :
-PSScriptAnalyzering -Tweaking of synopsis blocks in order to support platyPS -Code standardization -Generated docs
Diffstat (limited to 'CodeExecution/Invoke-WmiCommand.ps1')
-rw-r--r--CodeExecution/Invoke-WmiCommand.ps111
1 files changed, 7 insertions, 4 deletions
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 )]