script to view contents of a cookie file
This commit is contained in:
13
pickle_view.py
Normal file
13
pickle_view.py
Normal 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')))
|
||||||
Reference in New Issue
Block a user