image.png

The source code is provided to show the following:

Start by opening up your console and copying the value of the session key.

image.png

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

image.png

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

image.png

Now we can install the flask-unsign utility using pip3

pip3 install flask-unsign

image.png

Copy the rockyou.txt wordlist to your present working directory.

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.