Skip to content

six-two/mkdocs-variable-randomizer-plugin

Repository files navigation

MkDocs Variable Randomizer Plugin

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.

Installation

pip install mkdocs_variable_randomizer_plugin

Usage

Add the plogin to your mkdocs.yml:

plugins:
- search
- variable_randomizer

Prefix all variables that you want to have random names with rand_. So for example if your code says:

$message = "abc"
Write-Host $message

Change it to:

$rand_message = "abc"
Write-Host $rand_message

Now 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 $UEtWeCI

The variable names will change every time you reload the web page in your browser.

About

Randomize specific variable names in code snippets each time you load the page

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages