Example Usage
$ viewgen -h
usage: viewgen [-h] [--webconfig WEBCONFIG] [-m MODIFIER]
               [--viewstateuserkey VIEWSTATEUSERKEY] [-c COMMAND] [--decode]
               [--guess] [--check] [--vkey VKEY] [--valg VALG] [--dkey DKEY]
               [--dalg DALG] [-u] [-e] [-f FILE] [--version]
               [payload]

viewgen is a ViewState tool capable of generating both signed and encrypted
payloads with leaked validation keys or web.config files

positional arguments:
  payload               ViewState payload (base 64 encoded)

options:
  -h, --help            show this help message and exit
  --webconfig WEBCONFIG
                        automatically load keys and algorithms from a
                        web.config file
  -m MODIFIER, --modifier MODIFIER
                        VIEWSTATEGENERATOR value
  --viewstateuserkey VIEWSTATEUSERKEY
                        ViewStateUserKey CSRF value
  -c COMMAND, --command COMMAND
                        command to execute
  --decode              decode a ViewState payload
  --guess               guess signature and encryption mode for a given
                        payload
  --check               check if modifier and keys are correct for a