Парсер cookies FF/CH из sqlite в HTTP Netscape и JSON.
Доброго времени суток.
Требуется написать парсер cookies браузера FireFox и Chrome из бд sqlite в текстовый формат – HTTP Netscape и JSON.
На каком языке он будет написан не имеет значение, преимущественно на Python/C/C#/C++
Работать должен следующим образом:
В папку с программой/скриптом я кладу базу с названием: Cookies или cookies.sqlite (регистр не должен иметь значения).
Запускаю программу/скрипт на выходе получаю 2 txt файла с названием netscape.cookies.txt и json.cookies.txt
Расматрю варианты реализации только одного из форматов HTTP Netscape или JSON.
Реализация JSON:
Так как в FireFox и Chrome разные имена таблиц, при парсинге и конвертации в формат JSON требуется привести к единому виду:
[
{
"domain": "example.com",
"name": "key1",
"expirationDate": 1508508051,
"path": "/",
"value": "value1"
},
{
"domain": "example.com",
"name": "key2",
"expirationDate": 1508508051,
"path": "/",
"value": "value2"
}
]
Остальные значения таблиц не важны, но могут присутствовать или же можно убрать их вовсе, оставив только те данные которые указаны в примере.
В Chrome таблица encrypted_value зашифрована. Методы расшифровки я встречал в google.com
Ниже приведу линк на реализацию расшифровки на Python:
https://gist.github.com/DakuTree/428e5b737306937628f2944fbfdc4ffc
Готов обсуждать разные варианты реализации.
-
могу реализовать на python. Нужно больше подробностей и образец файла cookies
-
Учитывая алгоритм шифрования Хрома, с которым я знаком, возникает логичный вопрос - файл куков был создан хромом на ПК, где будет обрабатываться файл программой или нет?
-
Current freelance projects in the category Web Programming
Creation or adjustment of a website on OpenCartHello everyone! Preliminary situation for understanding: I ordered the development of a website from Templatemonsters. I agreed on the technical specifications in advance and purchased a template from them. In the end, the deadlines were not met, and they wrote that they could… Web Programming, Online Stores & E-commerce ∙ 4 hours 38 minutes back ∙ 9 proposals |
Development of an AI mobile application for children's fairy talesLooking for an experienced developer or team to create a mobile application with artificial intelligence that will generate short, kind, and age-appropriate fairy tales for children. A simple, beautiful, and safe product where a parent can create a personal bedtime story for… AI & Machine Learning, Web Programming ∙ 5 hours 40 minutes back ∙ 19 proposals |
Betting needs to create a bookmaker! WITH EXPERIENCEIt is necessary to develop a betting platform / bookmaker product based on a ready-made template. The main task is to adapt the template for a full-fledged bookmaker office: connect parsing of sports events and odds, implement a user personal account, balance, bets, transaction… Python, Web Programming ∙ 5 hours 46 minutes back ∙ 16 proposals |
Translator for WordPress.Need to translate a WordPress site with WooCommerce into 30 languages. A plugin for convenient automatic translation. To avoid clicking through each page for translations and each product. To make exceptions for certain phrases. To be able to edit the translation. Automatic… Web Programming, Website Development ∙ 6 hours 17 minutes back ∙ 13 proposals |
Edits for the website on OpencartThe site veselkatm.com.ua on OpenCart Version 3.0.3.8 1) Complete the cart Implement delivery methods: - Ukrposhta - Nova Poshta Install and configure modules so that everything works correctly Implement payment methods: - Cash on delivery - Bank transfer - Card payment… Content Management Systems, Web Programming ∙ 9 hours 16 minutes back ∙ 39 proposals |