Basically the idea is to use random variable names in code snippets. This can for example be used to make code snippets that are harder to fingerprint, thus useful for offensive code like AMSI bypasses.
pip install mkdocs_variable_randomizer_pluginAdd the plogin to your mkdocs.yml:
plugins:
- search
- variable_randomizerPrefix all variables that you want to have random names with rand_.
So for example if your code says:
$message = "abc"
Write-Host $messageChange it to:
$rand_message = "abc"
Write-Host $rand_messageNow when you build the page with mkdocs serve and visit the website, the listing should have random variable names like this:
$UEtWeCI = "abc"
Write-Host $UEtWeCIThe variable names will change every time you reload the web page in your browser.