diff --git a/CookieDecrypter.py b/CookieDecrypter.py index 21e95d2..8768265 100644 --- a/CookieDecrypter.py +++ b/CookieDecrypter.py @@ -8,13 +8,13 @@ import os, sys, re file = open(sys.argv[1], "r") result = get_keys() -for line in file: - if re.search("SessionID", line): - if result: - for i in result: - try: - value = decrypt(i[0], line.split('=')[1]) - print (Colours.GREEN + "Success with Key %s - %s" % (i[0],value)) - except: - print (Colours.RED + "Failed with Key %s" % i[0]) +if result: + for line in file: + if re.search("SessionID", line): + for i in result: + try: + value = decrypt(i[0], line.split('=')[1]) + print (Colours.GREEN + "Success with Key %s - %s" % (i[0],value)) + except: + print (Colours.RED + "Failed with Key %s" % i[0])