- https://www.jesusninoc.com/2017/03/04/convertir-un-numero-decimal-a-binario/
- https://www.jesusninoc.com/2017/05/25/convertir-un-numero-binario-a-decimal/
- https://www.jesusninoc.com/2017/01/25/convertir-a-binario-las-direcciones-mac-de-los-dispositivos-de-red/
echo "obase=2;3" | bc
- https://www.jesusninoc.com/2015/10/05/convert-base64-to-string/
- https://www.jesusninoc.com/2016/11/23/ejecutar-powershell-como-administrador-en-base64/
[System.Convert]::ToBase64String([System.Text.Encoding]::UTF8.GetBytes('ls *.txt | %{$_;gc $_ | Select-String "seña"}')) | clip
$decimal = 32
[Convert]::ToString($decimal, 2)
$bit = 3
$decimal = $decimal -bor [Math]::Pow(2, $bit)
[Convert]::ToString($decimal, 2)
#Convertir a Braille
$outFile = "Braille" + (Get-Date -UFormat %Y%m%d_%H%M%S) + ".jpg"
Set-Content -Path $outFile -Value (New-WebServiceProxy -uri "https://www.webservicex.net/braille.asmx?WSDL").BrailleText('hi',80) -Encoding Byte
#El script en Base64 es ((iwr "http://bit.ly/2CbfGrg").AllElements | Where class -eq "crayon-pre" | %{$_.innerText}) | iex
Start-Process -FilePath powershell.exe -ArgumentList ('-encodedcommand KAAoAGkAdwByACAAIgBoAHQAdABwADoALwAvAGIAaQB0AC4AbAB5AC8AMgBDAGIAZgBHAHIAZwAiACkALgBBAGwAbABFAGwAZQBtAGUAbgB0AHMAIAB8ACAAVwBoAGUAcgBlACAAYwBsAGEAcwBzACAALQBlAHEAIAAiAGMAcgBhAHkAbwBuAC
0AcAByAGUAIgAgAHwAIAAlAHsAJABfAC4AaQBuAG4AZQByAFQAZQB4AHQAfQApACAAfAAgAGkAZQB4AA==')
#Detectar una cadena en un fichero
ls *.txt | %{$_;gc $_ | Select-String "seña"}