ronin-rb/ronin-payloads

Replace `powershell/encode` encoder with a `powershell/hex_encode` encoder

Closed this issue · 1 comments

The powershell/encode encoder does not actually do anything. It should be replaced with a powershell/hex_encode encoder which hex encodes each character of the PowerShell command string and evaluates it using Invoke-Expression.

dir -> Invoke-Expression "$([char]0x64)$([char]0x69)$([char]0x72)"

Implemented by 95f6726.