Skip to content

Commit

Permalink
Added Galcon Fusion module and fixed up interface a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
tautology0 committed Oct 22, 2015
1 parent fd989da commit db7d55d
Show file tree
Hide file tree
Showing 4 changed files with 63 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Windows/src/LaZagne/config/manageModules.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
# games
from softwares.games.roguestale import RoguesTale
from softwares.games.kalypsomedia import KalypsoMedia
from softwares.games.galconfusion import GalconFusion

def get_categories():
category = {
Expand All @@ -57,6 +58,7 @@ def get_modules():
Filezilla(),
FtpNavigator(),
IE(),
GalconFusion(),
Jitsi(),
KalypsoMedia(),
Mozilla(),
Expand Down
59 changes: 59 additions & 0 deletions Windows/src/LaZagne/softwares/games/galconfusion.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
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 GalconFusion(ModuleInfo):
def __init__(self):
options = {'command': '-g', 'action': 'store_true', 'dest': 'galconfusion', 'help': 'galconfusion'}
ModuleInfo.__init__(self, 'galconfusion', 'games', options)

def run(self):
# print title
Header().title_info('Galcon Fusion')
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]
userdata = steampath + '\\userdata'

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

# Now look for Galcon Fusion in every user
files = os.listdir(userdata)

for file in files:
filepath = userdata + '\\' + file + '\\44200\\remote\\galcon.cfg'
if not os.path.exists(filepath):
continue

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

values['Login'] = data[4:0x23]
values['Password'] = data[0x24:0x43]
creds.append(values)

print_output("Galcon Fusion", creds)


2 changes: 1 addition & 1 deletion Windows/src/LaZagne/softwares/games/kalypsomedia.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

class KalypsoMedia(ModuleInfo):
def __init__(self):
options = {'command': '-kalypsomedia', 'action': 'store_true', 'dest': 'kalypsomedia', 'help': 'kalypsomedia'}
options = {'command': '-k', 'action': 'store_true', 'dest': 'kalypsomedia', 'help': 'kalypsomedia'}
ModuleInfo.__init__(self, 'kalypsomedia', 'games', options)

# xorstring(s, k)
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': '-f', 'action': 'store_true', 'dest': 'roguestale', 'help': 'roguestale'}
options = {'command': '-r', 'action': 'store_true', 'dest': 'roguestale', 'help': 'roguestale'}
ModuleInfo.__init__(self, 'roguestale', 'games', options)

def run(self):
Expand Down

0 comments on commit db7d55d

Please sign in to comment.