Skip to content

Commit fdcdeab

Browse files
author
Matt Graeber
committed
Fixed Invoke-WmiCommand credential popup issue
Easy fix to issue PowerShellMafia#97
1 parent fef09e6 commit fdcdeab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CodeExecution/Invoke-WmiCommand.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ the output of your payload back. :P
185185

186186
[Management.Automation.PSCredential]
187187
[Management.Automation.CredentialAttribute()]
188-
$Credential,
188+
$Credential = [Management.Automation.PSCredential]::Empty,
189189

190190
[Management.ImpersonationLevel]
191191
$Impersonation,

0 commit comments

Comments
 (0)