script to view contents of a cookie file

This commit is contained in:
rdavydov
2022-10-30 13:57:52 +03:00
parent 894993bae1
commit 7b435c1e59

13
pickle_view.py Normal file
View File

@@ -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')))