1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-03 22:15:42 +02:00

flask-unsign: add page (#16708)

* flask-unsign: add page

* Update pages/common/flask-unsign.md

Co-authored-by: Fazle Arefin <fazlearefin@users.noreply.github.com>

* Update pages/common/flask-unsign.md

Co-authored-by: Fazle Arefin <fazlearefin@users.noreply.github.com>

* Update pages/common/flask-unsign.md

Co-authored-by: Fazle Arefin <fazlearefin@users.noreply.github.com>

* Update pages/common/flask-unsign.md

Co-authored-by: Fazle Arefin <fazlearefin@users.noreply.github.com>

---------

Co-authored-by: Fazle Arefin <fazlearefin@users.noreply.github.com>
This commit is contained in:
Machiavelli 2025-06-02 05:40:25 +03:00 committed by GitHub
parent 0439e28114
commit 537a8a111f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -0,0 +1,32 @@
# flask-unsign
> A tool to brute-force, decode and craft `Flask` session cookies.
> More information: <https://github.com/Paradoxis/Flask-Unsign>.
- Decode a Flask session cookie:
`flask-unsign {{[-d|--decode]}} {{[-c|--cookie]}} {{cookie}}`
- Decode a session cookie fetched from a URL which returns a `Set-Cookie` header:
`flask-unsign {{[-d|--decode]}} --server {{URL}}`
- Brute-force a secret key using the default flask-unsign-wordlist (requires `flask-unsign-wordlist`):
`flask-unsign {{[-u|--unsign]}} {{[-c|--cookie]}} {{cookie}}`
- Brute-force a secret key with a custom wordlist (use `--no-literal-eval` for unquoted entries):
`flask-unsign {{[-u|--unsign]}} {{[-c|--cookie]}} {{cookie}} {{[-w|--wordlist]}} {{path/to/wordlist.txt}}`
- Sign a new session cookie with a secret key:
`flask-unsign {{[-s|--sign]}} {{[-c|--cookie]}} {{"{'logged_in': False}"}} {{[-S|--secret]}} {{secret}}`
- Sign a session cookie using legacy timestamp (useful for old versions):
`flask-unsign {{[-s|--sign]}} {{[-c|--cookie]}} {{"{'logged_in': False}"}} {{[-S|--secret]}} {{secret}} {{[-l|--legacy]}}`
- Brute-force a session cookie with custom threads and no literal evaluation:
`flask-unsign {{[-u|--unsign]}} {{[-c|--cookie]}} {{cookie}} {{[-w|--wordlist]}} {{path/to/wordlist.txt}} {{[-t|--threads]}} {{threads}} {{[-nE|--no-literal-eval]}}`