From 7b435c1e5961d6899df2e2cf496a4d0c30b6b571 Mon Sep 17 00:00:00 2001 From: rdavydov <15850461+rdavydov@users.noreply.github.com> Date: Sun, 30 Oct 2022 13:57:52 +0300 Subject: [PATCH] script to view contents of a cookie file --- pickle_view.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 pickle_view.py diff --git a/pickle_view.py b/pickle_view.py new file mode 100644 index 0000000..b77a577 --- /dev/null +++ b/pickle_view.py @@ -0,0 +1,13 @@ +#!/usr/bin/env python + +# Simple script to view contents of a cookie file stored in a pickle format + +import pickle +import sys + +if __name__ == '__main__': + argv = sys.argv + if len(argv) <= 1: + print("Specify a pickle file as a parameter, e.g. cookies/user.pkl") + else: + print(pickle.load(open(argv[1], 'rb'))) \ No newline at end of file