Skip to content

Commit

Permalink
Added turba module
Browse files Browse the repository at this point in the history
  • Loading branch information
tautology0 committed Oct 22, 2015
1 parent db7d55d commit f8d9967
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Windows/src/LaZagne/config/manageModules.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
from softwares.games.roguestale import RoguesTale
from softwares.games.kalypsomedia import KalypsoMedia
from softwares.games.galconfusion import GalconFusion
from softwares.games.turba import Turba

def get_categories():
category = {
Expand Down Expand Up @@ -72,7 +73,8 @@ def get_modules():
Secrets(),
Skype(),
SQLDeveloper(),
Squirrel(),
Squirrel(),
Turba(),
Wifi(),
WifiPass(),
WinSCP()
Expand Down
2 changes: 1 addition & 1 deletion Windows/src/LaZagne/softwares/games/roguestale.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

class RoguesTale(ModuleInfo):
def __init__(self):
options = {'command': '-r', 'action': 'store_true', 'dest': 'roguestale', 'help': 'roguestale'}
options = {'command': '-r', 'action': 'store_true', 'dest': 'roguestale', 'help': 'Extract Rogue\'s Tale SHA1 password hashes.'}
ModuleInfo.__init__(self, 'roguestale', 'games', options)

def run(self):
Expand Down
58 changes: 58 additions & 0 deletions Windows/src/LaZagne/softwares/games/turba.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
import os
from _winreg import HKEY_CURRENT_USER, OpenKey, QueryValueEx
from config.constant import *
from config.write_output import print_output, print_debug
from config.header import Header
from config.moduleInfo import ModuleInfo

class Turba(ModuleInfo):
def __init__(self):
options = {'command': '-t', 'action': 'store_true', 'dest': 'turba', 'help': 'turba'}
ModuleInfo.__init__(self, 'turba', 'games', options)

def run(self):
# print title
Header().title_info('Turba')
creds = []

# Find the location of steam - to make it easier we're going to use a try block
# 'cos I'm lazy
try:
with OpenKey(HKEY_CURRENT_USER, 'Software\Valve\Steam') as key:
results=QueryValueEx(key, 'SteamPath')
except:
print_debug('ERROR', 'Steam does not appear to be installed.')
return

if not results:
print_debug('ERROR', 'Steam does not appear to be installed.')
return

steampath=results[0]
steamapps = steampath + '\\SteamApps\common'

# Check that we have a SteamApps directory
if not os.path.exists(steamapps):
print_debug('ERROR', 'Steam doesn\'t have a SteamApps directory.')
return

filepath = steamapps + '\\Turba\\Assets\\Settings.bin'

if not os.path.exists(filepath):
print_debug('ERROR', 'Turba doesn\'t appear to be installed.')
return

# If we're here we should have a valid config file file
with open(filepath, mode='rb') as filepath:
# We've found a config file, now extract the creds
data = filepath.read()
values = {}

chunk=data[0x1b:].split('\x0a')
values['Login'] = chunk[0]
values['Password'] = chunk[1]
creds.append(values)

print_output("Turba", creds)


0 comments on commit f8d9967

Please sign in to comment.