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

Популярное

Смотреть все →

Откройте для себя самые используемые инструменты нашего сообщества.

Изучить все инструменты

Просмотрите нашу коллекцию инструментов

Смотреть все инструменты →
Поделиться

Декодировщик/Кодировщик сессионных cookie 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 .

Использование

Используйте flask_session_cookie_manager3.py с Python 3 и flask_session_cookie_manager2.py с Python 2.

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

Примечание: структура сессионной cookie должна быть корректным словарём 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="}}
Скачать инструмент