aboutsummaryrefslogtreecommitdiff
path: root/Inject-Shellcode.ps1
AgeCommit message (Collapse)AuthorFilesLines
2012-09-11Improved Metasploit payload support for 32/64-bitbitform1-1/+37
Updated Inject-Shellcode. If running a 32-bit Metasploit payload from 64-bit PowerShell, it will prompt the user to execute the payload from 32-bit PowerShell. This fix was in response to Chris Gate's feature request: http://carnal0wnage.attackresearch.com/2012/05/powershell-shellcode-metasploit-x64.html Note, there are some side effects: 1) It takes about one minute to initialize and execute the payload in the 32-bit process. This is because the execution essentially emulates copying and pasting its contents into the child process. 2) You will see some output artifacts of the script running in the child PowerShell process. I couldn't think of a good way to rectify these problems without dropping the contents of the script to disk, which would not be desireable.
2012-08-20Updated Inject-Shellcode and style guidebitform1-186/+406
New Features/Changes: - Dramatically simplified parameters. Removed redundancies and named parameter sets more appropriately - Added 'Shellcode' parameter. Now, you can optionally specify shellcode as a byte array rather than having to copy and paste shellcode into the $Shellcode32 and/or $Shellcode64 variables - Added 'Payload' parameter. Naming is now consistant with Metasploit payloads. Currently, only 'windows/meterpreter/reverse_http' and 'windows/meterpreter/reverse_https' payloads are supported. - Inject-Shellcode will now prompt the user to continue the 'dangerous' action unless the -Force switch is provided. Hopefully, this will prevent some people from carrying out stupid/regrettable actions. - Added the 'ListMetasploitPayloads' switch to display the Metasploit payloads supported by Inject-Shellcode Bug fixes/Miscellaneous: - Added UserAgent parameter to help documentation - Code is much more readable now - Changed internal helper functions to 'local' scope - Now using proper error handling versus Write-Warning statements - Added a subtle warning to the built-in shellcode...
2012-06-26Changed licensing to BSD 3-Clausebitform1-1/+1
Fixed some spelling errors in README. Added additional usage information
2012-06-07Converted all ps1 files from UTF-16 BE to Asciibitform1-0/+0
PowerShell ISE saves to UTF-16 BE by default. git doesn't diff this properly. Diffs should now display properly.
2012-06-07Added reverse HTTP[S] meterpreter payloadsbitform1-0/+0
2012-05-26Complete rewrite of Powersyringebitform1-0/+0