In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >
Share
Shulou(Shulou.com)05/31 Report--
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.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.