Jan-24-2019, 09:20 AM
Hallo,
this code to read Cookies from FireFox runs without error, but without result. In the console it shows cookies.
Thank you
regards
this code to read Cookies from FireFox runs without error, but without result. In the console it shows cookies.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
import sqlite3 import os cookies = 'c:\\users\\xxx\\AppData\\Roaming\\Mozilla\\Firefox\\Profiles\\xxx.default\\cookies.sqlite' try : conn = sqlite3.connect(cookies) c = conn.cursor() c.execute( "select host, name, value from moz_cookies" ) for row in c: host = str (row[ 0 ]) name = str (row[ 1 ]) value = str (row[ 2 ]) print (host + ': ' + name + ': ' + value) except Exception as e: if 'encrypted' in str (e): print ( 'encrypted' ) |
regards