$resultado = "" $expre = "1..5 | % {notepad}" for($i=0; $i -lt $expre.Length; $i=$i +1) { [String]$resultado = [String]$resultado + '[Char]'+ [Int]$expre[$i][0] + '+' } $resultado[0..($resultado.Length-2)] -join "" | iex | iex
Ejercicios de PowerShell: convertir una expresión en código ASCII y ejecutarla con Invoke-Expression (PowerShell, Ofuscación)
Except where otherwise noted, Jesusninoc by Jesús N. is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.