Get the App
SLTechnology News&Howtos  ›  Network Security  › 

What tool is FSCDE?

Shulou Source: shulou.com Published: 2022-05-31 20:58:35 10月03日 Update

This article will explain what kind of tool FSCDE is for you in detail. The editor thinks it is very practical, so I share it for you as a reference. I hope you can get something after reading this article.

FSCDE is a powerful Flask session Cookie encoding-decoding tool. Researchers can encode or decode Flask session Cookie with the help of FSCDE.

Tool dependence

1. Python2 or Python3 environment

2 、 itsdangerous

3 、 Flask

Tool installation

The vast majority of researchers can use the following commands to clone the project source code locally:

Git clone https://github.com/noraj/flask-session-cookie-manager.gitBlackArch Linux# pacman-S flask-session-cookie-manager {3je 2} GitArchLinux

The tool supports both Python2 and Python3 environments:

$git clone https://github.com/noraj/flask-session-cookie-manager.git & & cd flask-session-cookie-manager# makepkg-sic other distribution systems

In other distribution operating systems, we can also use pip or pyenv to install and configure FSCDE:

$git clone https://github.com/noraj/flask-session-cookie-manager.git & & cd flask-session-cookie-manager$ python-m venv venv$ source venv/bin/activate$ python setup.py install tool usage

Most researchers can call different versions of scripts according to their own configured Python environment, that is, Python3 corresponds to flask_session_cookie_manager3.py,Python2 environment corresponds to flask_session_cookie_manager2.py:

Usage: flask_session_cookie_manager {2pm 3} .py [- h] {encode,decode}... Flask Session Cookie Decoder/Encoder positional arguments: {encode,decode} sub-command help encode encode decode decode optional arguments:-h,-- help show this help message and exit coding implementation: usage: flask_session_cookie_manager {2Magne3} .py encode [- h]-s-t optional arguments:-h,-- help show this help message and exit-s -- secret-key Secret key-t,-- cookie-structure Session cookie structure decoding implementation: usage: flask_session_cookie_manager.py decode [- h] [- s]-c optional arguments:-h,-- help show this help message and exit-s,-- secret-key Secret key-c -- cookie-value Session cookie value tool uses sample coding sample $python {2 encode 3} flask_session_cookie_manager {2 camera 3} .py encode-s'. {y] tR&sp&77RdO~u3@XAh#TalD@Oh~yOF_51H (QV}) K | GHT ^ d'- t'{"number": "326410031505", "username": "admin"} 'eyJudW1iZXIiOnsiIGIiOiJNekkyTkRFd01ETXhOVEExIn0sInVzZXJuYW1lIjp7IiBiIjoiWVdSdGFXND0ifX0.DE2iRA.ig5KSlnmsDH4uhDpmsFRPupB5Vw

Note: the session Cookie structure must be a valid Python dictionary.

Decoding example

Use the key:

$python {2 eyJudW1iZXIiOnsiIGIiOiJNekkyTkRFd01ETXhOVEExIn0sInVzZXJuYW1lIjp7IiBiIjoiWVdSdGFXND0ifX0.DE2iRA.ig5KSlnmsDH4uhDpmsFRPupB5Vw' 3} flask_session_cookie_manager {2J 3} .py decode-c 'eyJudW1iZXIiOnsiIGIiOiJNekkyTkRFd01ETXhOVEExIn0sInVzZXJuYW1lIjp7IiBiIjoiWVdSdGFXND0ifX0.DE2iRA.ig5KSlnmsDH4uhDpmsFRPupB5Vw'-s'. {y] tR&sp&77RdO~u3@XAh#TalD@Oh~yOF_51H (QV}; K | ght ^ d'{upright username: 'admin', uplink numbering:' 326410031505'}

Do not use the key:

$python {2jue 3} flask_session_cookie_manager {2jue 3} .py decode-c 'eyJudW1iZXIiOnsiIGIiOiJNekkyTkRFd01ETXhOVEExIn0sInVzZXJuYW1lIjp7IiBiIjoiWVdSdGFXND0ifX0.DE2iRA.ig5KSlnmsDH4uhDpmsFRPupB5Vw' {"number": {"b": "MzI2NDEwMDMxNTA1"}, "username": {"b": "YWRtaW4="}} this article ends here. I hope the above content can be of some help to you, so that you can learn more knowledge, if you think the article is good. Please share it for more people to see.

Tags: Tools environment coding people researchers articles research keys more systems distribution help configuration different good practical powerful effective operating system matters Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn Redmi MariaDB Microsoft OPPO Reno