aboutsummaryrefslogtreecommitdiff
path: root/CodeExecution
diff options
context:
space:
mode:
authorMatt Graeber <mattgraeber@gmail.com>2015-12-16 08:50:34 -0800
committerMatt Graeber <mattgraeber@gmail.com>2015-12-16 08:50:34 -0800
commitfdcdeab7020e5c18be1c12a4526f90b2c0cdb6bb (patch)
tree5307703a7bb2fb36e5c9d91fa95c1f65baee3401 /CodeExecution
parentfef09e6cc1371cc51fa94c087299d00929f19d91 (diff)
downloadPowerSploit-fdcdeab7020e5c18be1c12a4526f90b2c0cdb6bb.tar.gz
PowerSploit-fdcdeab7020e5c18be1c12a4526f90b2c0cdb6bb.zip
Fixed Invoke-WmiCommand credential popup issue
Easy fix to issue #97
Diffstat (limited to 'CodeExecution')
-rw-r--r--CodeExecution/Invoke-WmiCommand.ps12
1 files changed, 1 insertions, 1 deletions
diff --git a/CodeExecution/Invoke-WmiCommand.ps1 b/CodeExecution/Invoke-WmiCommand.ps1
index 80bed86..c15d478 100644
--- a/CodeExecution/Invoke-WmiCommand.ps1
+++ b/CodeExecution/Invoke-WmiCommand.ps1
@@ -185,7 +185,7 @@ the output of your payload back. :P
[Management.Automation.PSCredential]
[Management.Automation.CredentialAttribute()]
- $Credential,
+ $Credential = [Management.Automation.PSCredential]::Empty,
[Management.ImpersonationLevel]
$Impersonation,