Skip to content
KitploitKITPLOIT
ツールブログ
提出
ツールブログ
提出

ハッキング、侵入テスト、サイバーセキュリティツールをあなたのセキュリティアーセナルに!

Kitploitはハッキング、サイバーセキュリティ、ペネトレーションテストのツールディレクトリです。最新のプロジェクトアップデートを見つけて、脆弱性の発見、システム分析、テストの自動化、セキュリティの強化を行いましょう。

··フィード·お問い合わせ·プライバシー·© 2026 Kitploit

ツールディレクトリ

カテゴリ

すべてのカテゴリを見る
Loading categories
flask-session-cookie-manager — 🍪 Flask セッションクッキー デコーダー/エンコーダー | Kitploit
ツール/GitHubGitHub/noraj/flask-session-cookie-manager
暗号化/復号化ツールウェブセキュリティペネトレーションテスト
GitHubnoraj/flask-session-cookie-manager

flask-session-cookie-manager

🍪 Flask セッションクッキー デコーダー/エンコーダー

リポジトリを見るウェブサイト
77293151年前Kitploit レビュー済み

人気

すべて見る →

コミュニティで最も使われているツールを見つけましょう。

すべてのツールを探索

ツールコレクションを閲覧

すべてのツールを見る →
共有

Flaskセッションクッキーデコーダ/エンコーダ

Build Status Build Status Rawsec's CyberSecurity Inventory GitHub top language GitHub license

原作者 : Wilson Sumanang

修正・改良者 : Alexandre ZANNI

saruberoz.github.io からのインポート

依存関係

  • Python 2 または Python 3
  • itsdangerous
  • Flask

インストール

パッケージ

Packaging status

BlackArch Linux

root@kitploit:~
pacman -S flask-session-cookie-manager{3,2}

Git

ArchLinux

Python3 と Python2 の両方:

root@kitploit:~
git clone https://github.com/noraj/flask-session-cookie-manager.git && cd flask-session-cookie-manager
makepkg -sic

その他のディストリビューション

パッケージマネージャを使って適宜インストールするか、仮想環境で pip を使用するか、pyenv を使用してください。

例:

root@kitploit:~
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 -m pip install .

使用方法

Python 3 では flask_session_cookie_manager3.py を、Python 2 では flask_session_cookie_manager2.py を使用してください。

root@kitploit:~
usage: flask_session_cookie_manager{2,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

エンコード

root@kitploit:~
usage: flask_session_cookie_manager{2,3}.py encode [-h] -s <string> -t <string>

optional arguments:
  -h, --help            show this help message and exit
  -s <string>, --secret-key <string>
                        Secret key
  -t <string>, --cookie-structure <string>
                        Session cookie structure

デコード

root@kitploit:~
usage: flask_session_cookie_manager{2,3}.py decode [-h] [-s <string>] -c <string>

optional arguments:
  -h, --help            show this help message and exit
  -s <string>, --secret-key <string>
                        Secret key
  -c <string>, --cookie-value <string>
                        Session cookie value

例

エンコード

root@kitploit:~
$ python{2,3} flask_session_cookie_manager{2,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

注意: セッションクッキーの構造は有効なPython辞書でなければなりません。

デコード

秘密鍵あり:

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

秘密鍵なし(出力は見にくくなります):

root@kitploit:~
$ python{2,3} flask_session_cookie_manager{2,3}.py decode -c 'eyJudW1iZXIiOnsiIGIiOiJNekkyTkRFd01ETXhOVEExIn0sInVzZXJuYW1lIjp7IiBiIjoiWVdSdGFXND0ifX0.DE2iRA.ig5KSlnmsDH4uhDpmsFRPupB5Vw'
{"number":{" b":"MzI2NDEwMDMxNTA1"},"username":{" b":"YWRtaW4="}}
ツールをダウンロード