2019-01-02 21:10:01 +00:00
|
|
|
#!/usr/bin/python
|
|
|
|
|
2019-03-10 17:11:22 +00:00
|
|
|
from Colours import Colours
|
|
|
|
from Core import decrypt
|
|
|
|
from DB import get_keys
|
2019-01-02 21:10:01 +00:00
|
|
|
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])
|
|
|
|
|