
The source code is provided to show the following:
- This is a flask web application
- A session key is generated and used when a user logs in.
- The signing key is redacted.
Start by opening up your console and copying the value of the session key.

Create a new text file called key.txt and paste your session key value in for safe keeping!

Depending on your distribution you may need to setup a Python virtual environment. We can contain the Python libraries we install to this folder by running the following commands:
python3 -m venv my_env
source my_env/bin/activate
You’ll notice that your shell now show (my_env) as the preface

Now we can install the flask-unsign utility using pip3
pip3 install flask-unsign

Copy the rockyou.txt wordlist to your present working directory.
- We’ll use this to crack the signing key.
cp /usr/share/wordlists/rockyou.txt.gz $(pwd)
gunzip rockyou.txt
Now we can use flask-unsign to attempt to crack the signing key for our session cookie.