Merge pull request #22 from b4ggio-su/master

Cookie Decrypter
chunking
Ben Turner 2019-01-03 22:05:27 +00:00 committed by GitHub
commit bbc5213cfc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 32 additions and 1 deletions

20
CookieDecrypter.py Normal file
View File

@ -0,0 +1,20 @@
#!/usr/bin/python
from DB import *
from Colours import *
from Core import *
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])

13
DB.py
View File

@ -621,4 +621,15 @@ def get_newtasks(randomuri):
if result:
return result
else:
return None
return None
def get_keys():
conn = sqlite3.connect(DB)
conn.row_factory = sqlite3.Row
c = conn.cursor()
result = c.execute("SELECT EncKey FROM C2Server")
result = c.fetchall()
if result:
return result
else:
return None

0
test.txt Normal file
View File