|
|
@ -495,11 +495,15 @@ class WindowsChromeCookieDecryptor(ChromeCookieDecryptor):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def _extract_safari_cookies(profile, logger):
|
|
|
|
def _extract_safari_cookies(profile, logger):
|
|
|
|
if profile is not None:
|
|
|
|
|
|
|
|
logger.error('safari does not support profiles')
|
|
|
|
|
|
|
|
if sys.platform != 'darwin':
|
|
|
|
if sys.platform != 'darwin':
|
|
|
|
raise ValueError(f'unsupported platform: {sys.platform}')
|
|
|
|
raise ValueError(f'unsupported platform: {sys.platform}')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if profile:
|
|
|
|
|
|
|
|
cookies_path = os.path.expanduser(profile)
|
|
|
|
|
|
|
|
if not os.path.isfile(cookies_path):
|
|
|
|
|
|
|
|
raise FileNotFoundError('custom safari cookies database not found')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
else:
|
|
|
|
cookies_path = os.path.expanduser('~/Library/Cookies/Cookies.binarycookies')
|
|
|
|
cookies_path = os.path.expanduser('~/Library/Cookies/Cookies.binarycookies')
|
|
|
|
|
|
|
|
|
|
|
|
if not os.path.isfile(cookies_path):
|
|
|
|
if not os.path.isfile(cookies_path):
|
|
|
|