125aa43072
This adds sempervictus's PowerShell post module, along with a default post module one can use for quick testing (for expected results, see the screencap Gist at https://gist.github.com/6011cb87b01e970deca8 [Closes #403] Squashed commit of the following: commit c6b5a6aac1dc8781c67b611289d7710129592e83 Author: Tod Beardsley <todb@metasploit.com> Date: Mon May 21 14:43:48 2012 -0500 Minor tweaks to language commit ef088e135cd7b0ccb514a3011889154661d5bd09 Merge: 0a05455 1e14211 Author: Tod Beardsley <todb@metasploit.com> Date: Mon May 21 14:34:27 2012 -0500 Merge remote branch 'todb/default-powershell' into Pull403 commit 0a0545558604c53d4648e3314ca8963ff9b225a7 Author: Tod Beardsley <todb@metasploit.com> Date: Mon May 21 14:33:33 2012 -0500 Reverting unrelated telnet fix While I'm sure it's great, it needs to be tested. commit 1e1421102b44a4c60c6eb9b442227075e959d7c6 Author: Tod Beardsley <todb@metasploit.com> Date: Mon May 21 14:14:09 2012 -0500 Adds a default path to a script for exec_powershell.rb commit 9978787f44896d06744d50febf4344111edcd7b1 Author: Tod Beardsley <todb@metasploit.com> Date: Mon May 21 14:06:46 2012 -0500 Adds a new default powershell script commit25b605949fAuthor: RageLtMan <rageltman [at] sempervictus> Date: Mon May 21 14:15:15 2012 -0400 Synchronized SVIT version of lib...powershell.rb to github. Adds timeout option, check for script encoding, etc. Added post/windows/manage/powershell folder with script execution module. Other modules which can be placed here would be WinRM meterp exec, PS persistence, etc commitc4a7fd932fMerge:21b31f136207ebAuthor: RageLtMan <rageltman [at] sempervictus> Date: Mon May 21 14:07:26 2012 -0400 msfvenom formatting merge conflict fix commit36207eb21eMerge:c77eb034772c12Author: RageLtMan <rageltman [at] sempervictus> Date: Mon May 21 14:06:07 2012 -0400 Merge branch 'master' of https://github.com/rapid7/metasploit-framework commit21b31f10c5Merge:81a7d62c77eb03Author: RageLtMan <rageltman [at] sempervictus> Date: Fri May 18 12:57:52 2012 -0400 Merge branch 'master' into powershell commitc77eb03ca4Merge:89d5af752183aaAuthor: RageLtMan <rageltman [at] sempervictus> Date: Fri May 18 12:57:21 2012 -0400 Merge branch 'master' of https://github.com/rapid7/metasploit-framework commit89d5af7ab2Author: RageLtMan <rageltman [at] sempervictus> Date: Fri Mar 2 01:28:02 2012 -0500 Banner encoding fix when running against dd-wrt on ruby 1.9.3 commit81a7d62c6dAuthor: RageLtMan <rageltman [at] sempervictus> Date: Tue Mar 20 20:19:13 2012 -0400 powershell for msfvenom commit672c7bc37eMerge:3e86dc4ed542e2Author: RageLtMan <rageltman [at] sempervictus> Date: Tue Mar 20 20:08:12 2012 -0400 exe.rb merge cleanup commit3e86dc4c40Author: RageLtMan <rageltman [at] sempervictus> Date: Tue Mar 20 20:06:03 2012 -0400 psh encoder cleanup commitf619ed477fAuthor: RageLtMan <rageltman@sempervictus.com> Date: Sun Feb 5 13:35:11 2012 -0500 method call fix for psh-net encoder commit7b035e6da0Author: RageLtMan <rageltman@sempervictus.com> Date: Fri Feb 3 18:53:54 2012 -0500 PS encoders: .net and architecture dependent native (psh-net, psh) commit7a2749bf26Merge:32730b9f89853dAuthor: RageLtMan <rageltman@sempervictus.com> Date: Fri Feb 3 18:38:03 2012 -0500 Merge branch 'master' into powershell commit32730b96beMerge:e69fcd1f6a6963Author: RageLtMan <rageltman@sempervictus.com> Date: Wed Jan 25 10:33:17 2012 -0500 Merge branch 'master' of https://github.com/rapid7/metasploit-framework into powershell commite69fcd1a83Author: RageLtMan <rageltman@sempervictus.com> Date: Wed Jan 25 07:59:38 2012 -0500 msfvenom psh addition commit9a5d8ead7eAuthor: RageLtMan <rageltman@sempervictus.com> Date: Wed Jan 25 07:29:38 2012 -0500 Proper author reference commit9fd8ac75a8Author: RageLtMan <rageltman@sempervictus.com> Date: Tue Jan 24 19:07:30 2012 -0500 Fix script handling commitfa363dfe96Author: RageLtMan <rageltman@sempervictus.com> Date: Tue Jan 24 17:31:09 2012 -0500 added Msf::Post::Windows::Powershell, reworked post module to use mixin commite078d15b54Author: RageLtMan <rageltman@sempervictus.com> Date: Mon Jan 23 13:42:35 2012 -0500 vprint_good change commit355f8bb19aAuthor: RageLtMan <rageltman@sempervictus.com> Date: Mon Jan 23 12:50:51 2012 -0500 exec powershell module commit5f95094449Author: RageLtMan <rageltman@sempervictus.com> Date: Mon Jan 23 12:45:41 2012 -0500 powershell encoder support - Redmine Feature #6049
3 lines
66 B
PowerShell
3 lines
66 B
PowerShell
$someText = "Hello from Metasploit!" ; $someText > "C:\flag.txt"
|
|
|