Skip to content

Commit

Permalink
Added Games category and Rogue's Tale module
Browse files Browse the repository at this point in the history
  • Loading branch information
tautology0 committed Oct 21, 2015
1 parent 6e24e7c commit ec76ed9
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Windows/src/LaZagne/config/manageModules.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
from softwares.databases.sqldeveloper import SQLDeveloper
from softwares.databases.squirrel import Squirrel
from softwares.databases.dbvis import Dbvisualizer
# games
from softwares.games.roguestale import RoguesTale

def get_categories():
category = {
Expand All @@ -39,7 +41,8 @@ def get_categories():
'mails': {'help': 'Email clients supported'},
'wifi': {'help': 'Wifi'},
'browsers': {'help': 'Web browsers supported'},
'windows': {'help': 'Windows credentials (credential manager, etc.)'}
'windows': {'help': 'Windows credentials (credential manager, etc.)'},
'games': {'help': 'Games etc.'}
}
return category

Expand All @@ -60,6 +63,7 @@ def get_modules():
Outlook(),
Pidgin(),
Puttycm(),
RoguesTale(),
Tortoise(),
Secrets(),
Skype(),
Expand Down
Empty file.
52 changes: 52 additions & 0 deletions Windows/src/LaZagne/softwares/games/roguestale.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
import xml.etree.cElementTree as ET
import os, re
from config.constant import *
from config.write_output import print_output, print_debug
from config.header import Header
from config.moduleInfo import ModuleInfo

class RoguesTale(ModuleInfo):
def __init__(self):
options = {'command': '-f', 'action': 'store_true', 'dest': 'roguestale', 'help': 'roguestale'}
ModuleInfo.__init__(self, 'roguestale', 'games', options)

def run(self):
# print title
Header().title_info('Rogue\'s Tale')
creds = []

if 'USERPROFILE' in os.environ:
directory = os.environ['USERPROFILE'] + '\\Documents\\Rogue\'s Tale\\users'
else:
print_debug('ERROR', 'The USERPROFILE environment variable is not defined.')
return

# The actual user details are stored in *.userdata files
if not os.path.exists(directory):
print_debug('ERROR', 'Rogue\'s Tale appears to not be installed.')
return

files = os.listdir(directory)

for file in files:
if re.match('.*\.userdata',file):
# We've found a user file, now extract the hash and username
values = {}

xmlfile = directory + '\\' + file
tree=ET.ElementTree(file=xmlfile)
root=tree.getroot()

# Double check to make sure that the file is valid
if root.tag != 'user':
print_debug('Profile ' + file + ' does not appear to be valid')
continue

# Now save it to credentials
values['Login'] = root.attrib['username']
values['Hash'] = root.attrib['password']
creds.append(values)

print_output("Rogue's Tale", creds)


0 comments on commit ec76ed9

Please sign in to comment.