aboutsummaryrefslogtreecommitdiff
path: root/Out-EncodedCommand.ps1
AgeCommit message (Collapse)AuthorFilesLines
2013-01-20Created a ScriptModification module.bitform1-182/+0
* All scripts used to prepare and/or modify payload scripts were added to the ScriptModification module. * Added Remove-Comments - Strips comments and extra whitespace from a script. * Encrypt-Script was named to Out-EncryptedScript in order to conform to proper PowerShell verbs.
2013-01-19Removed ValueFromPipeline from the Path param.bitform1-2/+2
That parameter attribute doesn't make sense in this context.
2013-01-19Improved Prepare-Payload (now Out-EncodedCommand)bitform1-0/+182
* Renamed Prepare-Payload to Out-EncodedCommand in order to conform to a standard cmdlet verb. * Fixed bug in PowerShell v2 * Defaults to full base-64 encoding unless it exceeds the cmd.exe character limit. Otherwise, it will default to partial base-64 encoding in an effort to save space. Thanks @Carlos_Perez for the idea! * User will be prompted if the cmd.exe character limit is exceeded. * Command-line output uses truncated arguments in order to save space. Thanks @obscuresec!