Skip to content

Commit

Permalink
Added module for Kalypso Media Launcher
Browse files Browse the repository at this point in the history
  • Loading branch information
tautology0 committed Oct 21, 2015
1 parent dc41423 commit fd989da
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Windows/src/LaZagne/config/manageModules.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
from softwares.databases.dbvis import Dbvisualizer
# games
from softwares.games.roguestale import RoguesTale
from softwares.games.kalypsomedia import KalypsoMedia

def get_categories():
category = {
Expand All @@ -56,7 +57,8 @@ def get_modules():
Filezilla(),
FtpNavigator(),
IE(),
Jitsi(),
Jitsi(),
KalypsoMedia(),
Mozilla(),
Network(),
Opera(),
Expand Down
50 changes: 50 additions & 0 deletions Windows/src/LaZagne/softwares/games/kalypsomedia.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
import os, re, base64
from config.constant import *
from config.write_output import print_output, print_debug
from config.header import Header
from config.moduleInfo import ModuleInfo
import ConfigParser

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

# xorstring(s, k)
# xors the two strings
def xorstring(self, s, k):
return "".join(chr(ord(x) ^ ord(y)) for x, y in zip(s,k))

def run(self):
# print title
Header().title_info('Kalypso Media Launcher')
creds = []
key = 'lwSDFSG34WE8znDSmvtwGSDF438nvtzVnt4IUv89'

if 'APPDATA' in os.environ:
inifile = os.environ['APPDATA'] + '\\Kalypso Media\\Launcher\\launcher.ini'
else:
print_debug('ERROR', 'The APPDATA environment variable is not defined.')
return

# The actual user details are stored in *.userdata files
if not os.path.exists(inifile):
print_debug('ERROR', 'The Kalypso Media Launcher doesn\'t appear to be installed.')
return

config = ConfigParser.ConfigParser()
config.read(inifile)
values = {}

values['Login'] = config.get('styx user','login')

# get the encoded password
cookedpw = base64.b64decode(config.get('styx user','password'));
values['Password'] = self.xorstring(cookedpw, key)

creds.append(values)

print_output("Kalypso Media Launcher", creds)



0 comments on commit fd989da

Please sign in to comment.